Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
b601b5e7
Commit
b601b5e7
authored
4 years ago
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!132
parents
2c59ea0b
3a1e8299
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
2 deletions
+61
-2
src/main/java/cn/timer/api/bean/kqmk/KqglAssoBcsz.java
+2
-2
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+0
-0
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
+10
-0
src/main/java/cn/timer/api/dto/kqmk/OriginalRecordDto.java
+23
-0
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
+26
-0
No files found.
src/main/java/cn/timer/api/bean/kqmk/KqglAssoBcsz.java
View file @
b601b5e7
...
...
@@ -114,10 +114,10 @@ public class KqglAssoBcsz extends Model<KqglAssoBcsz> {
private
Integer
isXiuxi
;
@ApiModelProperty
(
value
=
"休息开始时间 休息开始时间"
,
example
=
"101"
)
private
Lo
ng
startTime
;
private
Stri
ng
startTime
;
@ApiModelProperty
(
value
=
"休息结束时间 休息结束时间"
,
example
=
"101"
)
private
Lo
ng
endTime
;
private
Stri
ng
endTime
;
@ApiModelProperty
(
value
=
"上下班次数(1/2/3 最大值为3)"
,
example
=
"101"
)
private
Integer
sxbcs
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
b601b5e7
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
View file @
b601b5e7
...
...
@@ -2,8 +2,13 @@ package cn.timer.api.dao.kqgl;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
cn.timer.api.bean.kqgl.AttendanceDetails
;
import
cn.timer.api.bean.kqgl.PunchRecord
;
import
cn.timer.api.dto.kqmk.OriginalRecordDto
;
public
interface
PunchRecordMapper
{
int
deleteByPrimaryKey
(
Integer
id
);
...
...
@@ -31,4 +36,8 @@ public interface PunchRecordMapper {
List
<
PunchRecord
>
getMaintenancePunchCardList
(
Long
start
,
Long
end
,
Integer
userId
);
List
<
PunchRecord
>
selFuzzyOriginalAttendance
(
AttendanceDetails
attendancedetails
);
IPage
<
PunchRecord
>
QueryOriginalRecord
(
IPage
<
PunchRecord
>
page
,
@Param
(
"param"
)
OriginalRecordDto
originalrecorddto
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dto/kqmk/OriginalRecordDto.java
0 → 100644
View file @
b601b5e7
package
cn
.
timer
.
api
.
dto
.
kqmk
;
import
cn.timer.api.utils.Page
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
OriginalRecordDto
extends
Page
{
private
Integer
qyid
;
private
String
start
;
private
String
end
;
private
String
text
;
}
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
View file @
b601b5e7
...
...
@@ -32,6 +32,32 @@
id, dktime, lon, lat, address, results, user_id, type, status, sort, card_type, macname,
mac, qyid, attdate, attime, dkmxid,bcid,remarks,punchmode,punchequipment
</sql>
<select
id=
"QueryOriginalRecord"
resultMap=
"BaseResultMap"
>
select dkjl.*,
bmgw.dept,
bmgw.post,
info.`name` username
from kqgl_asso_dkjl dkjl
LEFT JOIN yggl_main_emp as info on info.emp_num = dkjl.user_id
LEFT JOIN (select m.name as post,um.name as dept,m.id as mid
from zzgl_bmgw_m m
left join zzgl_bmgw_m um on um.id = m.up_id
) as bmgw on bmgw.mid = info.bmgw_id
where dkjl.qyid = #{param.qyid}
<if
test=
"param.start != ''"
>
and dkjl.attime
>
= #{param.start}
</if>
<if
test=
"param.end != ''"
>
and dkjl.attime
<
= #{param.end}
</if>
<if
test=
"param.text != null and param.text != ''"
>
and (info.`name` like CONCAT('%',#{param.text},'%') or info.emp_num = #{param.text})
</if>
ORDER BY dkjl.id ASC
</select>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
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