diff --git a/ruoyi-ui/src/views/project/attendance/index.vue b/ruoyi-ui/src/views/project/attendance/index.vue
index ef927d76..940c9eaf 100644
--- a/ruoyi-ui/src/views/project/attendance/index.vue
+++ b/ruoyi-ui/src/views/project/attendance/index.vue
@@ -24,6 +24,9 @@
+ -
+
+
@@ -71,18 +74,18 @@
{{ row.workerGender==1?'女':'男' }}
-
+
- {{ row.attendanceTime|formatTime }}
+ {{ row.attendanceTime|formatDateTime }}
-
+
- {{ row.attendanceOutTime|formatTime }}
+ {{ row.attendanceOutTime|formatDateTime }}
@@ -182,7 +185,8 @@ export default {
workerName:'',
deptId:null,
companyTypeId:"0",
- attendanceTime:new Date()
+ attendanceTime:new Date(),
+ attendanceOutTime:undefined
},
// 表单参数
form: {},
@@ -255,10 +259,15 @@ export default {
this.$refs.attDrawer.show();
},
/** 查询劳务实名制管理列表 */
- getList() {
+ getList() {
this.loading = true;
let postData={};
- postData.attendanceTime=this.$dt(this.queryParams.attendanceTime).format("YYYY-MM-DD");
+ if(this.queryParams.attendanceTime){
+ postData.attendanceTime=this.$dt(this.queryParams.attendanceTime).format("YYYY-MM-DD");
+ }
+ if(this.queryParams.attendanceOutTime){
+ postData.attendanceOutTime=this.$dt(this.queryParams.attendanceOutTime).format("YYYY-MM-DD");
+ }
let tmps=this.cfgList.filter(d=>d.projectId==this.queryParams.projectId && d.subDeptId==this.queryParams.deptId);
if(tmps.length>0){
postData.cfgid=tmps[0].id;
diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
index 72edfc8b..22c64e3e 100644
--- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectAttendanceDataMapper.xml
@@ -108,7 +108,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and vendors_code = #{vendorsCode}
and serverid = #{serverid}
and workerId = #{workerId}
- and ( date(attendance_time) =date(#{attendanceTime}) or date(attendance_out_time) =date(#{attendanceTime}))
+
+ and date(attendance_out_time) <=date(#{attendanceOutTime})
+
+ and date(attendance_time) >= date(#{attendanceTime})
and identification = #{identification}
and teamId = #{teamId}
and workTypeCode = #{workTypeCode}