This commit is contained in:
zt
2025-02-26 18:43:45 +08:00
parent 6ef339849e
commit 65ce01c325
29 changed files with 671 additions and 49 deletions

View File

@ -33,13 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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 &lt;= date
(select count(1) from bgt_project_recruit_apply where entry_time &lt;= date and (leave_time is null or leave_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
group by date order by date
</select>
</mapper>