From d29a869c264c8d9c4c663bbe93942697f618646b Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Wed, 19 Oct 2022 17:47:42 +0800 Subject: [PATCH] permission --- .../services/permission/PermissionDistributeService.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/permission/PermissionDistributeService.java b/src/main/java/club/joylink/rtss/services/permission/PermissionDistributeService.java index 9ccb21421..ade62ec39 100644 --- a/src/main/java/club/joylink/rtss/services/permission/PermissionDistributeService.java +++ b/src/main/java/club/joylink/rtss/services/permission/PermissionDistributeService.java @@ -115,9 +115,6 @@ public class PermissionDistributeService { PermissionSubject updateSubject = new PermissionSubject(); updateSubject.setId(permissionSubject.getId()); updateSubject.setRemains(permissionSubject.getRemains()-pd.getAmount()); - if(updateSubject.getRemains()<=0){ - updateSubject.setStatus(PermissionSubjectStatusEnum.InValid.name()); - } this.permissionSubjectDAO.updateByPrimaryKeySelective(updateSubject); } // @@ -239,9 +236,6 @@ public class PermissionDistributeService { PermissionDistribute updateDistribute = new PermissionDistribute(); updateDistribute.setId(permissionDistribute.getId()); updateDistribute.setRemains(permissionDistribute.getRemains() - permissionSubject.getAmount()); - if (updateDistribute.getRemains() <= 0) { - updateDistribute.setStatus(PermissionDistributeStatusEnum.InValid.getValue()); - } this.permissionDistributeDAO.updateByPrimaryKeySelective(updateDistribute); // return permissionSubjectId;