This commit is contained in:
linfso 2025-05-30 13:07:39 +08:00
parent 397af3f22c
commit 56bb8c5d22

View File

@ -97,11 +97,9 @@ public class Oms2cStaffController extends BaseController
if(oldSysOmsUser!=null){
if(oldSysOmsUser.getMainUserId()!=null ) {
if ( oldSysOmsUser.getMainUserId() != currentUser.getId()) {
if(oldSysOmsUser.getMainUserId()!=null && oldSysOmsUser.getMainUserId() > 0 ) {
return AjaxResult.error("该手机号已存在子账号");
}
}
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
user.setMainUserId(SecurityUtils.getLoginUser().getUser().getId());