优化
This commit is contained in:
@ -25,5 +25,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryOtherPageList" resultType="com.ruoyi.bgt.domain.vo.BgtMessageOtherVO">
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
wu.score,
|
||||
wu.avatar_name,
|
||||
wu.username,
|
||||
bpra.status,
|
||||
wu.type_of_work,
|
||||
bpr.recruit_name,
|
||||
fpt.task_name
|
||||
@ -48,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
order by bpra.create_time desc,bpra.status asc
|
||||
</select>
|
||||
|
||||
<select id="todayAttendanceList" resultType="com.ruoyi.bgt.domain.vo.BgtProjectRecruitApplyVO">
|
||||
|
@ -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 <= date
|
||||
(select count(1) from bgt_project_recruit_apply where entry_time <= 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>
|
||||
|
Reference in New Issue
Block a user