|
|
@ -2303,7 +2303,9 @@ |
|
|
isnull(dbo.joint_id(site, bu_no, inspection_no, 'coordination'), '') as operator, |
|
|
isnull(dbo.joint_id(site, bu_no, inspection_no, 'coordination'), '') as operator, |
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'coordination'), '') as operatorName, |
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'coordination'), '') as operatorName, |
|
|
isnull(dbo.joint_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
isnull(dbo.joint_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
|
|
|
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName, |
|
|
|
|
|
submission_remark, |
|
|
|
|
|
submission_type |
|
|
FROM qc_iqc_record |
|
|
FROM qc_iqc_record |
|
|
<where> |
|
|
<where> |
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
@ -2365,6 +2367,9 @@ |
|
|
<if test = "query.orderType != null and query.orderType != ''"> |
|
|
<if test = "query.orderType != null and query.orderType != ''"> |
|
|
AND dbo.qc_get_order_type(site, po_orderNo, po_itemNo) = #{query.orderType} |
|
|
AND dbo.qc_get_order_type(site, po_orderNo, po_itemNo) = #{query.orderType} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = "query.submissionType != null and query.submissionType != ''"> |
|
|
|
|
|
AND submission_type = #{query.submissionType} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
|