Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work_service
Project
Project
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
licc
work_service
Commits
b7270b0c
Commit
b7270b0c
authored
Mar 30, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
e04b6a84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
WorkDeptMapper.xml
...nergy-mapper/src/main/resources/mapper/WorkDeptMapper.xml
+1
-1
WorkProjectMapper.xml
...gy-mapper/src/main/resources/mapper/WorkProjectMapper.xml
+1
-0
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+1
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkDeptMapper.xml
View file @
b7270b0c
...
...
@@ -106,7 +106,7 @@ select d.id 'dept_id',d.dept_name,p.id 'project_id',p.project_name
from work_dept d LEFT JOIN work_project p on d.id = p.dept_id
<where>
<if
test=
"userId !=null"
>
p.manager_id = #{userId}
AND
p.manager_id = #{userId}
</if>
<if
test=
"deptId !=null"
>
OR p.dept_id = #{deptId}
...
...
wisenergy-mapper/src/main/resources/mapper/WorkProjectMapper.xml
View file @
b7270b0c
...
...
@@ -298,6 +298,7 @@
LEFT JOIN work_dept d ON d.id = u.dept_id
LEFT JOIN work_type t ON p.type = t.id
<where>
p.is_conclusion = 1
<if
test=
"userId !=null"
>
AND p.manager_id = #{userId}
</if>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
b7270b0c
...
...
@@ -1337,7 +1337,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
// 判断新增的工单变更是否为空
private
void
OrderChangeVoIsNull
(
OrderChangeVo
vo
,
Boolean
workIdIsNeed
)
{
System
.
out
.
println
(
vo
);
if
(
null
==
vo
||
null
==
vo
.
getOperatorId
()
||
null
==
vo
.
getWorkDay
()
||
null
==
vo
.
getWorkTime
()
||
StringUtils
.
is
Blank
(
vo
.
getDes
())
||
StringUtils
.
isBlank
(
vo
.
getChangeReason
()))
{
if
(
null
==
vo
||
null
==
vo
.
getOperatorId
()
||
null
==
vo
.
getWorkDay
()
||
null
==
vo
.
getWorkTime
()
||
StringUtils
.
is
Empty
(
vo
.
getDes
())
||
StringUtils
.
isEmpty
(
vo
.
getChangeReason
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
if
(!
UserRoleLevelUtils
.
isManagerLevel
(
vo
.
getOperatorId
(),
LevelEnum
.
WORKORDER_CHANGEMANAGEMENT
.
getLevelName
()))
{
...
...
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