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
28db625c
Commit
28db625c
authored
Apr 24, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤
parent
ee86a3fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
OrderIncomeFlow.java
...ain/java/com/gogirl/domain/order/pay/OrderIncomeFlow.java
+5
-0
TakeLeaveEventMapper.java
.../infrastructure/mapper/store/oa/TakeLeaveEventMapper.java
+7
-0
TakeLeaveEventMapper.xml
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
+6
-3
No files found.
src/main/java/com/gogirl/domain/order/pay/OrderIncomeFlow.java
View file @
28db625c
package
com
.
gogirl
.
domain
.
order
.
pay
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -26,6 +28,9 @@ public class OrderIncomeFlow implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
BigDecimal
amount
;
@ApiModelProperty
(
value
=
"1-微信 2-pos机 3-现金"
)
...
...
src/main/java/com/gogirl/infrastructure/mapper/store/oa/TakeLeaveEventMapper.java
View file @
28db625c
...
...
@@ -9,5 +9,12 @@ import java.util.List;
public
interface
TakeLeaveEventMapper
extends
BaseMapper
<
TakeLeaveEvent
>
{
/**
*
* @param applyTechnicianId
* @param startTime
* @param endTime
* @return
*/
List
<
TakeLeaveEvent
>
appliedList
(
@Param
(
"applyTechnicianId"
)
Integer
applyTechnicianId
,
@Param
(
"startTime"
)
long
startTime
,
@Param
(
"endTime"
)
long
endTime
);
}
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
View file @
28db625c
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper"
>
<select
id=
"appliedList"
resultType=
"com.gogirl.domain.store.oa.TakeLeaveEvent"
>
SELECT *
from take_leave_event
where ((start_time
<
= #{endTime} and end_time
>
=
#{endTime})
or (start_time
<
= #{startTime} and start_time
>
=
#{startTime})
or (start_time
>
= #{startTime} and end_time
<
=
#{endTime}))
where ((start_time
<
#{endTime} and end_time
>
#{endTime})
or (start_time
<
#{startTime} and start_time
>
#{startTime})
or (start_time
>
#{startTime} and end_time
<
#{endTime}))
and apply_technician_id = #{applyTechnicianId}
and `status` != 3
</select>
</mapper>
\ No newline at end of file
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