考勤统计与工种
This commit is contained in:
@ -30,4 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
<select id="countByTaskId" resultType="com.ruoyi.bgt.domain.vo.BgtAttendanceCountVO">
|
||||
select count(1) as reportToDutyNum,
|
||||
date,
|
||||
(select count(1) from bgt_project_recruit_apply where entry_time <= date
|
||||
and recruit_id in (select id from bgt_project_recruit where task_id = #{taskId} )) as totalNum
|
||||
from wgz_attendance
|
||||
where date between #{beginDate} and #{endDate}
|
||||
and (missed_in = 0 or missed_out = 0)
|
||||
and recruit_id in (select id from bgt_project_recruit where task_id = #{taskId} ))
|
||||
group by date
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user