浏览代码

//update activity

release_toaliyun_real
xhxu 4 年前
父节点
当前提交
17632dc957
共有 2 个文件被更改,包括 2 次插入 和 2 次删除
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java
  2. +1
    -1
      mallinkService/src/main/resources/mapper/WxActivityMapper.xml

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java 查看文件

@@ -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(),"请先释放原有库存");
}



+ 1
- 1
mallinkService/src/main/resources/mapper/WxActivityMapper.xml 查看文件

@@ -150,7 +150,7 @@
</update>

<delete id="deleteById" parameterType="Long">
update wx_activity set is_del = 1, update_date=now() where id = #{id}
update wx_activity set is_del = 1, update_time=now() where id = #{id}
</delete>




正在加载...
取消
保存