Commit 928790b2 by 邓实川 Committed by chenzg

添加子账号时判断是否已是管理员,合同证照提醒短信模板变更

parent d041da79
...@@ -19,7 +19,9 @@ public enum PinType { ...@@ -19,7 +19,9 @@ public enum PinType {
CHANGE_PASSWORD("SMS_178485360", "修改密码"), CHANGE_PASSWORD("SMS_178485360", "修改密码"),
CHANGE_INFORMATION("SMS_178485359", "信息变更"), CHANGE_INFORMATION("SMS_178485359", "信息变更"),
REMIND("SMS_180347486", "短信提醒"); // REMIND("SMS_180347486", "短信提醒");
REMIND("SMS_193517459", "短信提醒");
private final String code; private final String code;
......
...@@ -71,6 +71,9 @@ public class Auth { ...@@ -71,6 +71,9 @@ public class Auth {
Integer empNum = userBean.getEmpNum(); Integer empNum = userBean.getEmpNum();
QyzxEmpEntAsso qyzxEmpEntAsso = selectMain(orgCode, empNum); QyzxEmpEntAsso qyzxEmpEntAsso = selectMain(orgCode, empNum);
if (qyzxEmpEntAsso != null) { if (qyzxEmpEntAsso != null) {
if (qyzxEmpEntAsso.getUserType() == SysRoleType.U_TYPE_ADMIN.getType()
|| qyzxEmpEntAsso.getUserType() == SysRoleType.U_TYPE_C_ADMIN.getType())
return ResultUtil.error("当前用户已是管理员");
Integer num = QyzxEmpEntAsso.builder().build() Integer num = QyzxEmpEntAsso.builder().build()
.selectCount(new LambdaQueryWrapper<QyzxEmpEntAsso>().eq(QyzxEmpEntAsso::getOrgCode, orgCode) .selectCount(new LambdaQueryWrapper<QyzxEmpEntAsso>().eq(QyzxEmpEntAsso::getOrgCode, orgCode)
.eq(QyzxEmpEntAsso::getUserType, SysRoleType.U_TYPE_C_ADMIN.getType())); .eq(QyzxEmpEntAsso::getUserType, SysRoleType.U_TYPE_C_ADMIN.getType()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment