Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
9c91c7e7
Commit
9c91c7e7
authored
Jan 30, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
c819a8e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+3
-0
WorkCollectController.java
...nergy/web/admin/controller/app/WorkCollectController.java
+14
-0
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
9c91c7e7
...
...
@@ -732,6 +732,8 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INCOMPLETE_WORK_ORDER_INFORMATION
);
}
if
(
null
==
dto
.
getWorkTime
()
||
0
==
dto
.
getWorkTime
())
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
TIME_NOT_IS_NULL
);
}
...
...
@@ -747,6 +749,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
if
(
1
==
dto
.
getType
()
||
2
==
dto
.
getType
())
{
if
(
null
==
dto
.
getProjectId
())
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
NO_JOIN_EVERY_PROJECT_PLASE_JION
);
}
for
(
ProjectTypeEnum
value
:
ProjectTypeEnum
.
values
())
{
if
(
value
.
getReviewer
()
==
2
)
{
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/WorkCollectController.java
View file @
9c91c7e7
...
...
@@ -2,9 +2,12 @@ package cn.wisenergy.web.admin.controller.app;
import
cn.wisenergy.common.utils.DateUtil
;
import
cn.wisenergy.common.utils.exception.Result
;
import
cn.wisenergy.model.app.WorkSubmitAdopt
;
import
cn.wisenergy.model.app.WorkType
;
import
cn.wisenergy.model.dto.CalendarDto
;
import
cn.wisenergy.model.dto.SubtotalDto
;
import
cn.wisenergy.service.WorkCollectService
;
import
cn.wisenergy.service.WorkSubmitAdoptService
;
import
cn.wisenergy.web.admin.controller.common.BaseController
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -29,6 +32,9 @@ public class WorkCollectController extends BaseController {
@Autowired
private
WorkCollectService
workCollectService
;
@Autowired
private
WorkSubmitAdoptService
workSubmitAdoptService
;
@ApiOperation
(
value
=
"日历->月详细"
,
notes
=
"日历展示"
,
httpMethod
=
"GET"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"用户id"
,
dataType
=
"int"
,
required
=
true
),
...
...
@@ -56,4 +62,12 @@ public class WorkCollectController extends BaseController {
}
@ApiOperation
(
value
=
"获取系统默认数据"
,
notes
=
"获取系统默认数据"
,
httpMethod
=
"GET"
)
@GetMapping
(
value
=
"/getAuto"
)
public
Result
<
WorkType
>
getAuto
()
{
log
.
info
(
"WorkCollectController[]getAuto);"
);
WorkSubmitAdopt
auto
=
workSubmitAdoptService
.
getById
(
1
);
return
getResult
(
auto
);
}
}
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