|
|
|
@@ -685,7 +685,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
public void setChannelStock(WxCouponChannel record,Integer number) { |
|
|
|
//设置渠道库存, |
|
|
|
WxCouponChannel couponChannel = wxCouponChannelMapper.selectById(record.getId(), record.getTenantId()); |
|
|
|
if(null != couponChannel.getChannelStock() || couponChannel.getChannelStock().intValue() != 0){ |
|
|
|
if(null != couponChannel.getChannelStock() && couponChannel.getChannelStock().intValue() > 0){ |
|
|
|
throw new MallinkException(ErrorCode.REMAIN_BACK_FAIL.getCode(),"请先释放原有库存"); |
|
|
|
} |
|
|
|
|
|
|
|
|