Explorar o código

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

zoujiajian hai 8 meses
pai
achega
cc5fef13dc

+ 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("扣除次数不能为负数");