fix(oa): 修复工时报表查询逻辑,排除项目类别为'9'的项目数据

dev
Yangk 6 days ago
parent d5ea684d93
commit df0d7b7f96

@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) global_stats ON p.project_id = global_stats.project_id ) global_stats ON p.project_id = global_stats.project_id
<where> <where>
p.del_flag = '0' p.del_flag = '0'
AND p.project_category <> '9'
<if test="bo.projectName != null and bo.projectName != ''"> <if test="bo.projectName != null and bo.projectName != ''">
AND p.project_name LIKE concat('%', #{bo.projectName}, '%') AND p.project_name LIKE concat('%', #{bo.projectName}, '%')
</if> </if>
@ -91,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
JOIN sys_user u ON ti.user_id = u.user_id AND u.del_flag = '0' JOIN sys_user u ON ti.user_id = u.user_id AND u.del_flag = '0'
WHERE ti.timesheet_status = '3' WHERE ti.timesheet_status = '3'
AND tp.del_flag = '0' AND tp.del_flag = '0'
AND p.project_category <> '9'
<if test="deptId != null"> <if test="deptId != null">
AND ti.dept_id = #{deptId} AND ti.dept_id = #{deptId}
</if> </if>
@ -112,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
JOIN erp_timesheet_info ti ON tp.timesheet_id = ti.timesheet_id AND ti.del_flag = '0' JOIN erp_timesheet_info ti ON tp.timesheet_id = ti.timesheet_id AND ti.del_flag = '0'
WHERE ti.timesheet_status = '3' WHERE ti.timesheet_status = '3'
AND tp.del_flag = '0' AND tp.del_flag = '0'
AND p.project_category <> '9'
<if test="startTime != null and startTime != ''"> <if test="startTime != null and startTime != ''">
AND ti.start_time >= #{startTime} AND ti.start_time >= #{startTime}
</if> </if>

Loading…
Cancel
Save