工资,日报,补卡

This commit is contained in:
zt
2025-02-22 17:22:24 +08:00
parent 10db6568fc
commit 7e423bf296
26 changed files with 837 additions and 68 deletions

View File

@ -47,5 +47,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.id DESC
</select>
<select id="appQueryPageList" resultType="com.ruoyi.bgt.domain.vo.BgtDailyClockListVO">
select wdc.id,
wdc.finish_today,
wdc.auditor_type,
wdc.dily_time,
wu.avatar_name,
wu.username
from wgz_daily_clock wdc
left join wgz_user wu on wdc.user_id = wu.user_id
where wdc.auditor_user_id = #{dto.auditorUserId}
and wdc.recruit_id in (select id from bgt_project_recruit where task_id = #{dto.taskId})
<if test="dto.username != null and dto.username != ''">
and wu.username like concat('%', #{dto.username}, '%')
</if>
<if test="dto.auditorType != null and dto.auditorType != ''">
and wdc.auditor_type = #{dto.auditorType}
</if>
<if test="dto.recruit_id != null">
and DATE(wdc.dily_time) = #{dto.dilyTime}
</if>
</select>
</mapper>

View File

@ -137,4 +137,61 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="appQueryPageList" resultMap="WgzAppApplyForPayrollSettlementListResResultMap">
SELECT
w.id,
w.task_id,
w.recruit_id,
w.user_id,
w.task_name,
w.task_address,
w.recruit_name,
w.user_name,
w.entry_time,
w.leave_time,
w.recruit_amount,
w.num,
w.working_state,
w.phone,
w.bank,
w.card_no,
w.auditor_user_id,
w.auditor_user_name,
w.auditor_type,
w.auditor_opinion,
w.auditor_time,
w.create_by,
w.create_time,
w.remark,
f.id AS file_id,
f.calculation_id,
f.type_of_attachment,
f.name,
f.type,
f.address,
f.del_flag,
f.create_by AS file_create_by,
f.create_time AS file_create_time,
f.update_by AS file_update_by,
f.update_time AS file_update_time,
f.remark AS file_remark
FROM
wgz_pay_calculation w
LEFT JOIN
wgz_pay_calculation_files f ON w.id = f.calculation_id
where w.auditor_user_id = #{dto.auditorUserId}
and a.task_id = #{dto.taskId}
<if test="dto.username != null and dto.username != ''">
and w.user_name like concat('%', #{dto.userName}, '%')
</if>
<if test="dto.auditorTypes != null and dto.auditorTypes.size() > 0">
AND bpra.auditor_type IN
<foreach collection="dto.auditorTypes" item="auditorType" open="(" separator="," close=")">
#{auditorType}
</foreach>
</if>
</select>
</mapper>

View File

@ -42,4 +42,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.id DESC
</select>
<select id="appQueryPageList" resultType="com.ruoyi.wgz.bo.res.WgzReplacementCardRecordRes">
SELECT
a.*,
b.username,
b.avatar_name,
c.username as userName
FROM
wgz_reissueacard a
LEFT JOIN bgt_user b ON (a.auditor_user_id = b.user_id and b.del_flag = 0)
LEFT JOIN wgz_user c ON (a.user_id = c.user_id and c.del_flag = 0)
WHERE
a.auditor_user_id = #{dto.auditorUserId}
and a.recruit_id in (select id from bgt_project_recruit where task_id = #{dto.taskId})
<if test="dto.auditorType != null and dto.auditorType != ''">
and w.auditor_type = #{dto.auditorType}
</if>
<if test="dto.nowTime != null">
and w.now_time = #{dto.nowTime}
</if>
ORDER BY
a.id DESC
</select>
</mapper>