|
|
|
@@ -1022,12 +1022,16 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
@Override |
|
|
|
@Transactional(isolation=Isolation.SERIALIZABLE, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
public ResultData setPrice(WxCoupon record) { |
|
|
|
Integer count = wxCouponMapper.setPrice(record.getId(), record.getTenantId(), record.getPrice(),record.getSubsidyNum()); |
|
|
|
Integer count = wxCouponMapper.setPrice(record); |
|
|
|
if (null == count || count <= 0 ) { |
|
|
|
return new ResultData(Result.ERROR,"设置失败"); |
|
|
|
} |
|
|
|
//设置卡密price |
|
|
|
couponPasswordMapper.setPrice(record.getTenantId(), null,record.getId(), record.getPrice()); |
|
|
|
WxCouponPassword couponPassword = new WxCouponPassword(); |
|
|
|
couponPassword.updateTenantInfo(record); |
|
|
|
couponPassword.setCouponId(record.getId()); |
|
|
|
couponPassword.setPrice(record.getPrice()); |
|
|
|
couponPasswordMapper.setPrice(couponPassword); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
|