Commit 66181b61 by wangweidong

霍煤宏骏

parent 2636d781
......@@ -155,6 +155,31 @@
</select>
<select id="selectByItemDeviate" resultType="com.patzn.cloud.service.hmhj.vo.EntrustSampleItemVO">
SELECT i.id,i.name,i.agreed_value,i.test_value,i.standard,s.code AS "sampleCode",
i.group_name,i.standard,s.name AS "sampleName",e.client,e.code AS "entrustCode",
d.method_code,d.reason,d.method_desc,d.applyer,d.apply_time , d.checker ,d.check_time,d.back_reason
FROM
entrust_sample_item i
JOIN entrust_sample s ON i.entrust_sample_id = s.ID
JOIN entrust e ON s.entrust_id = e.id
JOIN item_deviate d ON i.id = d.item_id
WHERE i.deleted = 0 AND s.deleted = 0 AND d.deleted = 0 AND e.deleted = 0
<if test="null!=vo.status">
AND i.status = #{vo.status}
</if>
<if test="null!=vo.status">
AND d.status = #{vo.status}
</if>
ORDER BY s.code , i.name
</select>
<select id="selectVOListByIds" resultType="com.patzn.cloud.service.hmhj.vo.EntrustSampleItemVO">
SELECT i.id,i.name,i.entrust_sample_id,s.entrust_id,i.agreed_value,i.test_value,i.standard,s.code AS "sampleCode"
FROM
......
INSERT INTO "public"."sys_resource" ("id", "system_id", "pid", "name", "type", "code", "uri", "icon", "remark", "status", "sort", "ctime", "ename") VALUES (1370665666617450498, 1356148880450674689, 1358324885470748673, '原始记录模板管理', 0, 'records_temp', '/hmhj/aptitude_manage/records_temp', 'pt-config', NULL, 1, 1, '2021-03-13 17:18:55.315', NULL);
INSERT INTO "public"."sys_resource" ("id", "system_id", "pid", "name", "type", "code", "uri", "icon", "remark", "status", "sort", "ctime", "ename") VALUES (1370665666617450498, 1356148880450674689, 1358324885470748673, '原始记录模板管理', 0, 'records_temp', '/hmhj/aptitude_manage/records_temp', 'pt-config', NULL, 1, 1, '2021-03-13 17:18:55.315', NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment