소스 검색

//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>




불러오는 중...
취소
저장