Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
985634cb
Commit
985634cb
authored
Jun 27, 2022
by
wilse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "增加婚假"
This reverts commit
7c96dd84
.
parent
f78738f8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
36 deletions
+3
-36
ScheduleManageServiceImpl.java
...plication/order/serve/impl/ScheduleManageServiceImpl.java
+1
-1
TakeLeaveEventCmdServiceImpl.java
...cation/store/store/impl/TakeLeaveEventCmdServiceImpl.java
+0
-7
TakeLeaveEvent.java
src/main/java/com/gogirl/domain/store/oa/TakeLeaveEvent.java
+1
-27
ApplyTakeLeaveCommand.java
...n/java/com/gogirl/shared/store/ApplyTakeLeaveCommand.java
+1
-1
No files found.
src/main/java/com/gogirl/application/order/serve/impl/ScheduleManageServiceImpl.java
View file @
985634cb
...
...
@@ -189,7 +189,7 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
List
<
Period
>
takeLeavePeriodList
=
takeLeaveEventMapper
.
selectList
(
new
LambdaQueryWrapper
<
TakeLeaveEvent
>()
.
eq
(
TakeLeaveEvent:
:
getApplyTechnicianId
,
storeClassesTechnician
.
getTechnicianManage
().
getId
())
.
eq
(
TakeLeaveEvent:
:
getStatus
,
TakeLeaveEvent
.
STATUS_APPROVAL_PASS
)
.
in
(
TakeLeaveEvent:
:
getType
,
Lists
.
newArrayList
(
2
,
3
,
4
,
5
,
6
,
7
,
8
)))
.
in
(
TakeLeaveEvent:
:
getType
,
Lists
.
newArrayList
(
2
,
3
,
4
,
5
,
6
,
7
)))
.
stream
()
.
map
(
takeLeaveEvent
->
new
Period
(
takeLeaveEvent
.
getStartTime
(),
takeLeaveEvent
.
getEndTime
()))
.
collect
(
Collectors
.
toList
());
...
...
src/main/java/com/gogirl/application/store/store/impl/TakeLeaveEventCmdServiceImpl.java
View file @
985634cb
...
...
@@ -15,7 +15,6 @@ import com.gogirl.domain.store.store.StoreTechnician;
import
com.gogirl.infrastructure.common.exception.RRException
;
import
com.gogirl.infrastructure.common.util.JsonUtilByFsJson
;
import
com.gogirl.infrastructure.common.util.ListUtil
;
import
com.gogirl.infrastructure.common.util.StringUtils
;
import
com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordLogMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper
;
...
...
@@ -32,7 +31,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -71,11 +69,6 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
throw
new
RRException
(
"重复时间提交"
);
}
if
(
Arrays
.
stream
(
new
Integer
[]{
TakeLeaveEvent
.
TYPE_ILL_REST
,
TakeLeaveEvent
.
TYPE_BIRTHDAY
,
TakeLeaveEvent
.
TYPE_MARRY
})
.
anyMatch
(
x
->
x
.
equals
(
cmd
.
getType
()))
&&
StringUtils
.
isEmpty
(
cmd
.
getAnnexUrl
()))
{
throw
new
RRException
(
"附件不可为空"
);
}
TakeLeaveEvent
takeLeaveEvent
=
applyTakeLeaveCommandAssembler
.
apply
(
cmd
);
takeLeaveEvent
.
setStatus
(
TakeLeaveEvent
.
STATUS_UN_APPROVAL
);
...
...
src/main/java/com/gogirl/domain/store/oa/TakeLeaveEvent.java
View file @
985634cb
...
...
@@ -29,38 +29,12 @@ public class TakeLeaveEvent implements Serializable {
/**
* type
*/
/**
* 加班
*/
public
static
final
Integer
TYPE_OVER_TIME
=
1
;
/**
* 调休
*/
public
static
final
Integer
TYPE_ADJUST_REST
=
2
;
/**
* 事假
*/
public
static
final
Integer
TYPE_PERSONAL_REST
=
3
;
/**
* 病假
*/
public
static
final
Integer
TYPE_ILL_REST
=
4
;
/**
* 外勤
*/
public
static
final
Integer
TYPE_OUT
=
5
;
/**
* 年假
*/
public
static
final
Integer
TYPE_ANNUAL
=
6
;
/**
* 生日假
*/
public
static
final
Integer
TYPE_BIRTHDAY
=
7
;
/**
* 婚假
*/
public
static
final
Integer
TYPE_MARRY
=
8
;
public
static
final
Integer
TYPE_MARRY
=
6
;
@TableId
(
type
=
IdType
.
AUTO
)
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
...
...
src/main/java/com/gogirl/shared/store/ApplyTakeLeaveCommand.java
View file @
985634cb
...
...
@@ -19,7 +19,7 @@ public class ApplyTakeLeaveCommand implements Serializable {
@ApiModelProperty
(
"请假美甲师id"
)
private
Integer
applyTechnicianId
;
@ApiModelProperty
(
"1-加班 2-调休 3-事假 4-病假 5-外出 6-
年假 7-生日假 8-
婚假"
)
@ApiModelProperty
(
"1-加班 2-调休 3-事假 4-病假 5-外出 6-婚假"
)
private
Integer
type
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
...
...
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