Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
4a63c675
Commit
4a63c675
authored
Nov 22, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
b6f3a0a5
f47484b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
ChangeTypeServiceImpl.java
...change/biz/service/impl/change/ChangeTypeServiceImpl.java
+5
-0
ChangeConfigMapper.xml
.../src/main/resources/mybatis/mapper/ChangeConfigMapper.xml
+2
-1
ChangeConfigController.java
...yanxuan/change/web/controller/ChangeConfigController.java
+2
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/ChangeTypeServiceImpl.java
View file @
4a63c675
...
@@ -120,6 +120,11 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
...
@@ -120,6 +120,11 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
if
(
changeTypes
.
get
(
0
)
==
null
||
changeTypes
.
get
(
1
)
==
null
){
if
(
changeTypes
.
get
(
0
)
==
null
||
changeTypes
.
get
(
1
)
==
null
){
throw
ExceptionFactory
.
createParamFail
();
throw
ExceptionFactory
.
createParamFail
();
}
}
//查询一级下班是否还存在其他二级 如果不存在就删除一级 如果存在一级就不做伪删
List
<
ChangeType
>
changeTypeList
=
mapper
.
queryParent
(
changeTypes
.
get
(
0
).
getId
());
if
(
changeTypeList
.
size
()
==
2
){
changeTypes
.
remove
(
0
);
}
for
(
ChangeType
changeType
:
changeTypes
){
for
(
ChangeType
changeType
:
changeTypes
){
Example
example
=
new
Example
(
ChangeType
.
class
);
Example
example
=
new
Example
(
ChangeType
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
Example
.
Criteria
criteria
=
example
.
createCriteria
();
...
...
yanxuan-qc-change-system-dal/src/main/resources/mybatis/mapper/ChangeConfigMapper.xml
View file @
4a63c675
...
@@ -54,8 +54,9 @@
...
@@ -54,8 +54,9 @@
update_time
<![CDATA[ < ]]>
#{updateTime} and
update_time
<![CDATA[ < ]]>
#{updateTime} and
</if>
</if>
<if
test=
"changeExecDepartment != null and changeExecDepartment != ''"
>
<if
test=
"changeExecDepartment != null and changeExecDepartment != ''"
>
participate_change_exec_department like "%" #{changeExecDepartment} "%"
participate_change_exec_department like "%" #{changeExecDepartment} "%"
and
</if>
</if>
1=1
</where>
</where>
</select>
</select>
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeConfigController.java
View file @
4a63c675
...
@@ -30,6 +30,7 @@ public class ChangeConfigController {
...
@@ -30,6 +30,7 @@ public class ChangeConfigController {
@RequestParam
(
name
=
"changeExecDepartment"
,
required
=
false
)
String
changeExecDepartment
,
@RequestParam
(
name
=
"changeExecDepartment"
,
required
=
false
)
String
changeExecDepartment
,
@RequestParam
(
name
=
"parentChangeClassId"
,
required
=
false
)
Integer
parentChangeClassId
,
@RequestParam
(
name
=
"parentChangeClassId"
,
required
=
false
)
Integer
parentChangeClassId
,
@RequestParam
(
name
=
"sonChangeClassId"
,
required
=
false
)
Integer
sonChangeClassId
,
@RequestParam
(
name
=
"sonChangeClassId"
,
required
=
false
)
Integer
sonChangeClassId
,
@RequestParam
(
name
=
"changeLevel"
,
required
=
false
)
Integer
changeLevel
,
@RequestParam
(
name
=
"createTime"
,
required
=
false
)
Long
createTime
,
@RequestParam
(
name
=
"createTime"
,
required
=
false
)
Long
createTime
,
@RequestParam
(
name
=
"updateTime"
,
required
=
false
)
Long
updateTime
){
@RequestParam
(
name
=
"updateTime"
,
required
=
false
)
Long
updateTime
){
ChangeConfigQueryReq
req
=
new
ChangeConfigQueryReq
();
ChangeConfigQueryReq
req
=
new
ChangeConfigQueryReq
();
...
@@ -37,6 +38,7 @@ public class ChangeConfigController {
...
@@ -37,6 +38,7 @@ public class ChangeConfigController {
req
.
setChangeExecDepartment
(
changeExecDepartment
);
req
.
setChangeExecDepartment
(
changeExecDepartment
);
req
.
setParentChangeClassId
(
parentChangeClassId
);
req
.
setParentChangeClassId
(
parentChangeClassId
);
req
.
setSonChangeClassId
(
sonChangeClassId
);
req
.
setSonChangeClassId
(
sonChangeClassId
);
req
.
setChangeLevel
(
changeLevel
);
req
.
setCreateTime
(
createTime
);
req
.
setCreateTime
(
createTime
);
req
.
setUpdateTime
(
updateTime
);
req
.
setUpdateTime
(
updateTime
);
return
service
.
queryChanges
(
pageNum
,
pageSize
,
req
);
return
service
.
queryChanges
(
pageNum
,
pageSize
,
req
);
...
...
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