Parcourir la source

对接管理后台

dengsixing il y a 4 mois
Parent
commit
d505546ed2

+ 2 - 2
src/main/java/com/fdkankan/openApi/service/system/impl/AccountServiceImpl.java

@@ -277,13 +277,13 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
         }
         account.setUpdaterId(accountDTO.getUpdaterId());
         account.setUpdateTime(new Date());
-        account.setTbStatus(TbStatus.DELETE.code());
         this.updateById(account);
+        this.removeById(account.getId());
 
         UserAuthInfo userAuthInfo = userAuthService.findByAccountId(account.getId());
         userAuthInfo.setUpdaterId(account.getUpdaterId());
         userAuthInfo.setUpdateTime(new Date());
-        userAuthInfo.setTbStatus(TbStatus.DELETE.code());
         userAuthService.updateById(userAuthInfo);
+        userAuthService.removeById(userAuthInfo.getId());
     }
 }