Browse Source

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

release_toaliyun_real
Burce 6 years ago
parent
commit
4d8d084d57
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -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…
Cancel
Save