pdi检测任务查询方法修改

This commit is contained in:
funny 2026-05-12 10:49:59 +08:00
parent dbb25ff4d1
commit 7526598c57
2 changed files with 4 additions and 7 deletions

View File

@ -29,9 +29,9 @@ public class QmsPdiInspectionResultsSearchQO {
private String taskNo; private String taskNo;
/** /**
* 任务状态可选0=质检1=质检中2=已完成3=已逾期 * 任务状态可选0=流转1=质检中2=已完成3=待流转逾期
*/ */
private Integer taskStatus; private Integer inspectionEnable;
/** /**
* 当前登录用户ID内部使用用于权限过滤 * 当前登录用户ID内部使用用于权限过滤

View File

@ -35,11 +35,8 @@
AND t.task_no = #{request.taskNo} AND t.task_no = #{request.taskNo}
</if> </if>
<!-- 任务状态筛选 --> <!-- 任务状态筛选 -->
<if test="request.taskStatus != null and request.taskStatus != 3"> <if test="request.inspectionEnable != null">
AND t.inspection_enable = #{request.taskStatus} AND t.inspection_enable = #{request.inspectionEnable}
</if>
<if test="request.taskStatus != null and request.taskStatus == 3">
AND t.overdue = true
</if> </if>
</where> </where>
ORDER BY t.id DESC ORDER BY t.id DESC