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
82c188ac
Commit
82c188ac
authored
Jan 28, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
c632f362
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
85 deletions
+123
-85
ProjectTypeEnum.java
...c/main/java/cn/wisenergy/model/enums/ProjectTypeEnum.java
+27
-11
StatusEnum.java
...el/src/main/java/cn/wisenergy/model/enums/StatusEnum.java
+32
-0
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+64
-74
No files found.
wisenergy-model/src/main/java/cn/wisenergy/model/enums/ProjectTypeEnum.java
View file @
82c188ac
package
cn
.
wisenergy
.
model
.
enums
;
public
enum
ProjectTypeEnum
{
PROJECT
(
1
,
"项目"
),
BUSINESS_OPPORTUNITY
(
2
,
"商机"
);
PROJECT
(
1
,
"项目"
,
1
),
BUSINESS_OPPORTUNITY
(
2
,
"商机"
,
1
),
LEAVE
(
3
,
"请假"
,
2
),
COMPENSATORY_LEAVE
(
4
,
"调休"
,
2
),
EXTERNAL_BUSINESS
(
5
,
"外部商务与技术交流"
,
3
),
INTERNAL_TRAINING
(
6
,
"内部培训、技术准备、管理"
,
3
),
OTHER_NON_PROJECTS
(
7
,
"其他非项目/商机工作"
,
3
),
private
Integer
code
;
private
String
msg
;
ProjectTypeEnum
(
Integer
code
,
String
msg
){
this
.
code
=
code
;
this
.
msg
=
msg
;
;
private
Integer
type
;
private
String
typeName
;
// 1:项目经理 2:自动审批 3:其他管理员
private
Integer
reviewer
;
ProjectTypeEnum
(
Integer
type
,
String
typeName
,
Integer
reviewer
)
{
this
.
reviewer
=
reviewer
;
this
.
type
=
type
;
this
.
typeName
=
typeName
;
}
public
Integer
getType
()
{
return
type
;
}
public
Integer
getCode
()
{
return
cod
e
;
public
String
getTypeName
()
{
return
typeNam
e
;
}
public
String
getMsg
()
{
return
msg
;
public
Integer
getReviewer
()
{
return
reviewer
;
}
}
wisenergy-model/src/main/java/cn/wisenergy/model/enums/StatusEnum.java
0 → 100644
View file @
82c188ac
package
cn
.
wisenergy
.
model
.
enums
;
/**
* @Authotr:陈奇
* @QQ1799796883
*/
public
enum
StatusEnum
{
COMPLETED
(
1
,
"已填报"
),
APPROVED
(
2
,
"已审批"
),
REJECTED
(
3
,
"被驳回"
),
RE_SUBMIT
(
4
,
"重新填报"
),
AUTOMATIC_AUDIT
(
5
,
"自动审批"
)
;
private
Integer
status
;
private
String
msg
;
StatusEnum
(
Integer
status
,
String
msg
){
this
.
status
=
status
;
this
.
msg
=
msg
;
}
public
Integer
getCode
(){
return
status
;
}
public
String
getMsg
(){
return
msg
;
}
}
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
82c188ac
This diff is collapsed.
Click to expand it.
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