Преглед изворни кода

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

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) { public void reduceRemainInventory(Long id, Integer remainInventory, Integer number) {
int num = wxCouponMapper.reduceRemainInventory(id, remainInventory, number); int num = wxCouponMapper.reduceRemainInventory(id, remainInventory, number);
if (num == 0) { 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) { public void backRemainInventory(Long id, Integer remainInventory, Integer number) {
int num = wxCouponMapper.backRemainInventory(id, remainInventory, number); int num = wxCouponMapper.backRemainInventory(id, remainInventory, number);
if (num == 0) { if (num == 0) {
throw new MallinkException(ErrorCode.ORDER_IS_FAIL);
throw new MallinkException(ErrorCode.REMAIN_BACK_FAIL);
} }
} }
} }

Loading…
Откажи
Сачувај