Merge remote-tracking branch '惠信/qms/develop' into qms/develop
This commit is contained in:
commit
4e32725dc7
|
|
@ -300,9 +300,9 @@ public class QmsIssueTicketControllerService {
|
|||
throw new NflgException(STATE.BusinessError, "PDI检测任务记录不存在");
|
||||
}
|
||||
|
||||
// 2. 校验任务状态必须为3(待流转)
|
||||
if (!Objects.equals(taskRecord.getInspectionEnable(), 3)) {
|
||||
throw new NflgException(STATE.BusinessError, "只有待流转状态的任务才能创建工单,当前状态:" + taskRecord.getInspectionEnable());
|
||||
// 2. 校验任务状态必须为3(待流转)或4(逾期)
|
||||
if (!Objects.equals(taskRecord.getInspectionEnable(), 3) && !Objects.equals(taskRecord.getInspectionEnable(), 4)) {
|
||||
throw new NflgException(STATE.BusinessError, "只有待流转或逾期状态的任务才能创建工单,当前状态:" + taskRecord.getInspectionEnable());
|
||||
}
|
||||
|
||||
// 3. 校验是否已存在工单
|
||||
|
|
@ -923,9 +923,9 @@ public class QmsIssueTicketControllerService {
|
|||
throw new NflgException(STATE.BusinessError, "PDI检测任务记录不存在");
|
||||
}
|
||||
|
||||
// 校验任务状态必须为3(待流转)
|
||||
if (!Objects.equals(taskRecord.getInspectionEnable(), 3)) {
|
||||
throw new NflgException(STATE.BusinessError, "只有待流转状态的任务才能创建工单,当前状态:" + taskRecord.getInspectionEnable());
|
||||
// 校验任务状态必须为3(待流转)或4(逾期)
|
||||
if (!Objects.equals(taskRecord.getInspectionEnable(), 3) && !Objects.equals(taskRecord.getInspectionEnable(), 4)) {
|
||||
throw new NflgException(STATE.BusinessError, "只有待流转或逾期状态的任务才能创建工单,当前状态:" + taskRecord.getInspectionEnable());
|
||||
}
|
||||
|
||||
// 校验是否已存在工单(同一taskRecordId只能创建一次工单)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public class QmsPdiInspectionResultsSearchQO {
|
|||
private String key;
|
||||
|
||||
/**
|
||||
* 任务状态(可选):0=待流转,1=质检中,2=已完成,3=待流转(逾期)
|
||||
* 任务状态(可选):0=待流转,1=质检中,2=已完成,3=待流转,4=逾期(根据overdue字段动态判断)
|
||||
*/
|
||||
private Integer inspectionEnable;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,12 @@
|
|||
)
|
||||
</if>
|
||||
<!-- 任务状态筛选 -->
|
||||
<if test="request.inspectionEnable != null">
|
||||
<if test="request.inspectionEnable != null and request.inspectionEnable != 4">
|
||||
AND t.inspection_enable = #{request.inspectionEnable}
|
||||
</if>
|
||||
<if test="request.inspectionEnable != null and request.inspectionEnable == 4">
|
||||
AND t.overdue = true
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY t.id DESC
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue