Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
78659b91
Commit
78659b91
authored
Apr 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加打包配置文件
parent
90b9b9a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dept/model/DeptTreeSelect.java
...ava/com/mortals/xhx/module/dept/model/DeptTreeSelect.java
+5
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
...mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
+1
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dept/model/DeptTreeSelect.java
View file @
78659b91
...
...
@@ -5,6 +5,8 @@ import java.util.ArrayList;
import
com.mortals.xhx.module.dept.model.vo.DeptVo
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
lombok.Data
;
import
org.springframework.util.ObjectUtils
;
import
java.io.Serializable
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -36,7 +38,9 @@ public class DeptTreeSelect implements Serializable {
public
DeptTreeSelect
(
DeptEntity
entity
)
{
this
.
id
=
entity
.
getId
();
this
.
label
=
entity
.
getDeptName
();
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getChildren
())){
this
.
children
=
entity
.
getChildren
().
stream
().
map
(
DeptTreeSelect:
:
new
).
collect
(
Collectors
.
toList
());
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
View file @
78659b91
...
...
@@ -76,7 +76,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
)){
deptEntity
.
setDeptStatus
(
DeptStatusEnum
.
启用
.
getValue
());
deptEntity
.
setUpdateTime
(
new
Date
());
deptEntity
.
setUpdateUser
(
context
.
getUser
().
getLoginName
());
deptEntity
.
setUpdateUser
(
context
==
null
?
"admin"
:
context
.
getUser
().
getLoginName
());
DeptEntity
condition
=
new
DeptEntity
();
condition
.
setId
(
deptEntity
.
getId
());
this
.
updateBatch
(
deptEntity
,
condition
,
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