|
|
|
@ -1335,7 +1335,8 @@ |
|
|
|
isnull(dbo.joint_name(a.site, a.bu_no, a.inspection_no, 'responsible'), '') as responsiblePersonName, |
|
|
|
a.pass_qty, |
|
|
|
a.not_pass_qty, |
|
|
|
a.batch_qualified_qty |
|
|
|
a.batch_qualified_qty, |
|
|
|
a.document_no |
|
|
|
FROM qc_fqc_record as a |
|
|
|
left join part as d on a.site = d.site and a.bu_no = d.bu_no and a.part_no = d.partNo |
|
|
|
left join sys_user as u on a.inspector_no = u.username |
|
|
|
@ -1398,6 +1399,9 @@ |
|
|
|
<if test = "query.spec != null and query.spec != ''"> |
|
|
|
AND d.spec LIKE '%' + #{query.spec} + '%' |
|
|
|
</if> |
|
|
|
<if test = "query.documentNo != null and query.documentNo != ''"> |
|
|
|
AND a.document_no LIKE '%' + #{query.documentNo} + '%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
CASE WHEN a.state = '待检验' THEN 1 |
|
|
|
|