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