|
|
|
@ -1397,9 +1397,7 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
END as textValue |
|
|
|
FROM qc_ipqc_record as a |
|
|
|
LEFT JOIN qc_ipqc_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join WorkCenterResource as r on a.site = r.site and a.resource_id = r.resourceID |
|
|
|
|