瀏覽代碼

商户注券->更新错误提示

release_toaliyun_real
Burce 6 年之前
父節點
當前提交
4d8d084d57
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

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

@@ -649,7 +649,7 @@ import java.util.stream.Collectors;
public void reduceRemainInventory(Long id, Integer remainInventory, Integer number) {
int num = wxCouponMapper.reduceRemainInventory(id, remainInventory, number);
if (num == 0) {
throw new MallinkException(ErrorCode.ORDER_IS_FAIL);
throw new MallinkException(ErrorCode.ORDER_SAVE_ERR);
}
}

@@ -658,7 +658,7 @@ import java.util.stream.Collectors;
public void backRemainInventory(Long id, Integer remainInventory, Integer number) {
int num = wxCouponMapper.backRemainInventory(id, remainInventory, number);
if (num == 0) {
throw new MallinkException(ErrorCode.ORDER_IS_FAIL);
throw new MallinkException(ErrorCode.REMAIN_BACK_FAIL);
}
}
}

Loading…
取消
儲存