Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
928790b2
Commit
928790b2
authored
Jun 23, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加子账号时判断是否已是管理员,合同证照提醒短信模板变更
parent
d041da79
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/main/java/cn/timer/api/config/enums/PinType.java
+3
-1
src/main/java/cn/timer/api/controller/qyzx/Auth.java
+3
-0
No files found.
src/main/java/cn/timer/api/config/enums/PinType.java
View file @
928790b2
...
@@ -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
;
...
...
src/main/java/cn/timer/api/controller/qyzx/Auth.java
View file @
928790b2
...
@@ -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
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment