소스 검색

fix 放开变更代充次数为0操作

zoujiajian 8 달 전
부모
커밋
cc5fef13dc
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      netflix-web/src/main/java/com/cyksj/web/controller/manage/group/CmsGroupRelationController.java

+ 0 - 3
netflix-web/src/main/java/com/cyksj/web/controller/manage/group/CmsGroupRelationController.java

@@ -318,9 +318,6 @@ public class CmsGroupRelationController {
         GroupsRelation relation = groupsRelationMapper.selectById(relationId);
         if (relation.getRechargeNum() != null) {
             Integer rechargeRemainNum = relation.getRechargeRemainNum();
-            if (rechargeRemainNum == 0 && num < 0) {
-                throw BusinessRuntimeException.getInstance("剩余代充次数为0");
-            }
             Integer subAfterNum = rechargeRemainNum - num;
             if (subAfterNum < 0) {
                 throw BusinessRuntimeException.getInstance("扣除次数不能为负数");