Compare commits
2 Commits
d0fb34dc71
...
c12a548bd1
| Author | SHA1 | Date |
|---|---|---|
|
|
c12a548bd1 | |
|
|
71a989bb20 |
|
|
@ -390,6 +390,9 @@ public class QmsInspectionStandardControllerService {
|
|||
inspectionStandardItem.setDetectionTypeDictItemId(detectionTypeDictItemId);
|
||||
inspectionStandardItem.setSortNo(0);
|
||||
inspectionStandardItem.setName(data.getKey().getInspectionItemName());
|
||||
inspectionStandardItem.setCreateUserId(userId);
|
||||
inspectionStandardItem.setCreateUserName(userName);
|
||||
inspectionStandardItem.setCreateTime(now);
|
||||
inspectionStandardItemService.save(inspectionStandardItem);
|
||||
inspectionStandardItemContentService.saveBatch(
|
||||
data.getValue()
|
||||
|
|
|
|||
|
|
@ -149,6 +149,9 @@
|
|||
LEFT JOIN qms_incoming_inspection_task t2 ON t.related_task_id = t2.id
|
||||
<where>
|
||||
<choose>
|
||||
<when test="request.isOverdue != null">
|
||||
t.is_overdue = #{request.isOverdue}
|
||||
</when>
|
||||
<when test="request.inspectionStatus != null">
|
||||
t.inspection_status = #{request.inspectionStatus}
|
||||
</when>
|
||||
|
|
@ -157,9 +160,6 @@
|
|||
</otherwise>
|
||||
</choose>
|
||||
AND (t.inspector_id = #{inspectorId} OR t.agent_id = #{inspectorId})
|
||||
<if test="request.isOverdue != null">
|
||||
AND t.is_overdue = #{request.isOverdue}
|
||||
</if>
|
||||
<if test="request.key != null and request.key != ''">
|
||||
AND (m.material_no ilike concat('%', #{request.key}, '%')
|
||||
or m.material_desc ilike concat('%', #{request.key}, '%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue