소스 검색

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

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);
}
}
}

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