Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
d40a0024
Commit
d40a0024
authored
May 23, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询存在业务的部门
parent
fb7f9bdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
base-manager/db/add.sql
base-manager/db/add.sql
+1
-0
base-manager/src/main/java/com/mortals/xhx/base/system/user/web/UserController.java
.../com/mortals/xhx/base/system/user/web/UserController.java
+2
-1
No files found.
base-manager/db/add.sql
View file @
d40a0024
...
...
@@ -348,5 +348,6 @@ PRIMARY KEY (`id`)
ALTER
TABLE
mortals_sys_dept
ADD
COLUMN
`inNum`
int
(
9
)
DEFAULT
'0'
COMMENT
'入驻事项数量'
AFTER
updateTime
;
INSERT
INTO
mortals_xhx_task
VALUES
(
null
,
'同步全部站点事项材料附件'
,
'SyncMatterTask'
,
0
,
'SyncMatterTask'
,
''
,
''
,
1
,
3600
,
'16:05'
,
''
,
'192.168.1.107'
,
'2024-05-18 16:05:00'
,
0
,
'2024-03-01 10:59:53'
,
1
,
'系统管理员'
);
base-manager/src/main/java/com/mortals/xhx/base/system/user/web/UserController.java
View file @
d40a0024
...
...
@@ -17,6 +17,7 @@ import com.mortals.xhx.common.code.UserStatus;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.Jwts
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -60,7 +61,7 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
@Override
protected
void
saveBefore
(
UserEntity
entity
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
service
.
existUser
(
entity
.
getLoginName
(),
entity
.
getId
()))
{
if
(
!
ObjectUtils
.
isEmpty
(
entity
.
getLoginName
())&&
service
.
existUser
(
entity
.
getLoginName
(),
entity
.
getId
()))
{
throw
new
AppException
(
"登录名已存在!"
);
}
super
.
saveBefore
(
entity
,
model
,
context
);
...
...
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