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
7bcece8d
Commit
7bcece8d
authored
Mar 30, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
b7270b0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
WorkOrderChangeLogDto.java
...in/java/cn/wisenergy/model/dto/WorkOrderChangeLogDto.java
+0
-1
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+2
-2
WorkTimeOrderController.java
...rgy/web/admin/controller/app/WorkTimeOrderController.java
+0
-3
No files found.
wisenergy-model/src/main/java/cn/wisenergy/model/dto/WorkOrderChangeLogDto.java
View file @
7bcece8d
...
...
@@ -19,7 +19,6 @@ public class WorkOrderChangeLogDto {
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
name
=
"changeDate"
,
value
=
"变更日期"
)
private
Date
changeDate
;
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
7bcece8d
...
...
@@ -532,7 +532,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
@Override
public
Boolean
rejectById
(
Integer
reviewerId
,
Integer
id
,
String
reason
)
{
log
.
info
(
"WorkOrderServiceImpl[]rejectById[]input.param.reviewerId:{},id:{},reason:{}"
+
reviewerId
,
id
,
reason
);
if
(
null
==
reviewerId
||
null
==
id
||
StringUtils
.
is
Empty
(
reason
))
{
if
(
null
==
reviewerId
||
null
==
id
||
StringUtils
.
is
Blank
(
reason
))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
// 判断当前用户是否有权限
...
...
@@ -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
Empty
(
vo
.
getDes
())
||
StringUtils
.
isEmpty
(
vo
.
getChangeReason
()))
{
if
(
null
==
vo
||
null
==
vo
.
getOperatorId
()
||
null
==
vo
.
getWorkDay
()
||
null
==
vo
.
getWorkTime
()
||
StringUtils
.
is
Blank
(
vo
.
getDes
())
||
StringUtils
.
isBlank
(
vo
.
getChangeReason
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
if
(!
UserRoleLevelUtils
.
isManagerLevel
(
vo
.
getOperatorId
(),
LevelEnum
.
WORKORDER_CHANGEMANAGEMENT
.
getLevelName
()))
{
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/WorkTimeOrderController.java
View file @
7bcece8d
...
...
@@ -137,9 +137,6 @@ public class WorkTimeOrderController extends BaseController {
@PutMapping
(
value
=
"/reject"
)
public
Result
<
Boolean
>
rejectById
(
Integer
reviewerId
,
Integer
id
,
String
reason
)
{
log
.
info
(
"WorkTimeOrderController[]rejectById[]input.param.reviewerId:{},id:{},reason:{}"
+
reviewerId
,
id
,
reason
);
if
(
null
==
reviewerId
||
null
==
id
||
StringUtils
.
isEmpty
(
reason
))
{
throw
new
CustomException
(
RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
Boolean
aBoolean
=
workTimeOrderService
.
rejectById
(
reviewerId
,
id
,
reason
);
return
getResult
(
aBoolean
);
}
...
...
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