|
|
|
@ -7,6 +7,7 @@ import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ManagerMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.OrgMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.SysCustomerServiceMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientConfigService;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.notice.core.MailService;
|
|
|
|
@ -22,6 +23,7 @@ import au.com.royalpay.payment.tools.env.RequestEnvironment;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
|
|
|
|
|
import au.com.royalpay.payment.tools.locale.LocaleSupport;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import au.com.royalpay.payment.tools.utils.PasswordUtils;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
@ -74,6 +76,8 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientConfigService clientConfigService;
|
|
|
|
|
@Resource
|
|
|
|
|
private SysCustomerServiceMapper sysCustomerServiceMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionClientModulesService permissionClientModulesService;
|
|
|
|
|
private ApplicationEventPublisher publisher;
|
|
|
|
|
private static final List<String> tags = new ArrayList<>();
|
|
|
|
@ -114,6 +118,10 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
manager.put("available_func_names", funcNames);
|
|
|
|
|
manager.put("modules", modules.values());
|
|
|
|
|
manager.put("module_names", modules.keySet());
|
|
|
|
|
if((manager.getIntValue("role")& ManagerRole.SERVANT.getMask())>0){
|
|
|
|
|
JSONObject cs = sysCustomerServiceMapper.findByManagerId(accountId);
|
|
|
|
|
manager.put("onoff",cs.getBoolean("onoff"));
|
|
|
|
|
}
|
|
|
|
|
return manager;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -429,5 +437,4 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
account.put("is_password_expired", 0);
|
|
|
|
|
clientAccountMapper.update(account);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|