日报月报

This commit is contained in:
2025-03-04 10:21:42 +08:00
parent 462460ee72
commit ff8faf7606
40 changed files with 2717 additions and 1099 deletions
@@ -65,5 +65,22 @@
<select id="selectPrdByName" resultType="com.sa.zentao.entity.ZtUser">
SELECT * from zt_user WHERE 1=1 and account=#{name}
</select>
<select id="dkList" resultType="com.sa.zentao.dao.DkInfo">
SELECT u.account,dk.date_str,staff.`name` ,min(dk_time) startDate,max(dk_time) endDate from os_system.new_dk_data dk LEFT JOIN os_system.base_staff staff on dk.staff_id = staff.id
LEFT JOIN zentao_dev.zt_user u on staff.vx_id = u.vx
WHERE 1=1 and dk.dk_time <![CDATA[>=]]> #{startDate} and dk.dk_time <![CDATA[<=]]> #{endDate}
<if test="ids != null and ids.size() > 0">
and u.account in
<foreach collection="ids" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
GROUP BY date_str,u.account
</select>
</mapper>