app考勤bug修复
This commit is contained in:
parent
8ef7d7b80b
commit
b9fab2d18f
@ -326,12 +326,12 @@
|
||||
<select id="getWorkerAttendanceMaxTime" resultType="java.lang.String">
|
||||
SELECT max(a.create_time)
|
||||
from worker_attendance a
|
||||
INNER JOIN worker_info b ON a.person_sn = b.person_sn
|
||||
INNER JOIN worker_info b ON a.person_sn = b.person_sn
|
||||
WHERE b.id = #{workerId}
|
||||
AND a.pass_type = 2
|
||||
AND a.is_statistics is null
|
||||
AND a.create_time >= CONCAT(DATE_FORMAT(NOW(), "%Y-%m-%d"), ' 00:00:00')
|
||||
and a.create_time <= CONCAT(DATE_FORMAT(NOW(), "%Y-%m-%d"), ' 23:59:59')
|
||||
AND a.pass_type = 2
|
||||
AND a.is_statistics = 0
|
||||
AND a.create_time >= CONCAT(DATE_FORMAT(NOW(), "%Y-%m-%d"), ' 00:00:00')
|
||||
and a.create_time <= CONCAT(DATE_FORMAT(NOW(), "%Y-%m-%d"), ' 23:59:59')
|
||||
</select>
|
||||
<select id="selectAttendancePersonTotalCount" resultType="java.util.Map">
|
||||
SELECT DATE_FORMAT(a.create_time, "%Y-%m-%d") dayTitle, count(DISTINCT a.person_sn) num
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user