|
|
|
@@ -109,8 +109,8 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public WxCouponSend getById(Long id) { |
|
|
|
return wxCouponSendMapper.selectById(id); |
|
|
|
public WxCouponSend getById(Long id,String tenantId) { |
|
|
|
return wxCouponSendMapper.selectById(id,tenantId); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
@@ -217,8 +217,8 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteById(Long id) { |
|
|
|
wxCouponSendMapper.deleteById(id); |
|
|
|
public void deleteById(Long id,String tenantId) { |
|
|
|
wxCouponSendMapper.deleteById(id,tenantId); |
|
|
|
} |
|
|
|
|
|
|
|
private boolean isConditionAllowed(WxCouponSend wxCouponSend, Object param) { |
|
|
|
@@ -609,16 +609,16 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void reduceMerchantSend(Long id, Integer merchantRemain, Integer merchantSend ,Integer number) { |
|
|
|
int num = wxCouponSendMapper.reduceMerchantSend(id, merchantRemain, merchantSend,number); |
|
|
|
public void reduceMerchantSend(String tenantId,Long id, Integer merchantRemain, Integer merchantSend ,Integer number) { |
|
|
|
int num = wxCouponSendMapper.reduceMerchantSend(tenantId,id, merchantRemain, merchantSend,number); |
|
|
|
if (num == 0) { |
|
|
|
throw new MallinkException(ErrorCode.ORDER_IS_FAIL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void backMerchantRemainInventory(Long id, Integer merchantRemain, Integer merchantSend, Integer number) { |
|
|
|
int num = wxCouponSendMapper.backMerchantSend(id, merchantRemain, merchantSend,number); |
|
|
|
public void backMerchantRemainInventory(String tenantId,Long id, Integer merchantRemain, Integer merchantSend, Integer number) { |
|
|
|
int num = wxCouponSendMapper.backMerchantSend(tenantId,id, merchantRemain, merchantSend,number); |
|
|
|
if (num == 0) { |
|
|
|
throw new MallinkException(ErrorCode.ORDER_IS_FAIL); |
|
|
|
} |
|
|
|
|