pdi检测任务查询方法修改
This commit is contained in:
parent
dbb25ff4d1
commit
7526598c57
|
|
@ -29,9 +29,9 @@ public class QmsPdiInspectionResultsSearchQO {
|
|||
private String taskNo;
|
||||
|
||||
/**
|
||||
* 任务状态(可选):0=待质检,1=质检中,2=已完成,3=已逾期
|
||||
* 任务状态(可选):0=待流转,1=质检中,2=已完成,3=待流转(逾期)
|
||||
*/
|
||||
private Integer taskStatus;
|
||||
private Integer inspectionEnable;
|
||||
|
||||
/**
|
||||
* 当前登录用户ID(内部使用,用于权限过滤)
|
||||
|
|
|
|||
|
|
@ -35,11 +35,8 @@
|
|||
AND t.task_no = #{request.taskNo}
|
||||
</if>
|
||||
<!-- 任务状态筛选 -->
|
||||
<if test="request.taskStatus != null and request.taskStatus != 3">
|
||||
AND t.inspection_enable = #{request.taskStatus}
|
||||
</if>
|
||||
<if test="request.taskStatus != null and request.taskStatus == 3">
|
||||
AND t.overdue = true
|
||||
<if test="request.inspectionEnable != null">
|
||||
AND t.inspection_enable = #{request.inspectionEnable}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY t.id DESC
|
||||
|
|
|
|||
Loading…
Reference in New Issue