|
|
|
@ -1592,7 +1592,7 @@ |
|
|
|
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_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
FROM qc_fai_record |
|
|
|
<where> |
|
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
@ -1922,7 +1922,7 @@ |
|
|
|
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_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
FROM qc_ipqc_record |
|
|
|
<where> |
|
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
@ -2281,7 +2281,7 @@ |
|
|
|
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_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
FROM qc_iqc_record |
|
|
|
<where> |
|
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
@ -2626,7 +2626,7 @@ |
|
|
|
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_id(site, bu_no, inspection_no, 'responsible'), '') as responsiblePerson, |
|
|
|
isnull(dbo.joint_name(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
isnull(dbo.joint_name2(site, bu_no, inspection_no, 'responsible'), '') as responsiblePersonName |
|
|
|
FROM qc_fqc_record |
|
|
|
<where> |
|
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
|
@ -3515,6 +3515,23 @@ |
|
|
|
from Equipment_folder_location |
|
|
|
where site = #{site} and bu_no = #{buNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 获取责任人员列表 --> |
|
|
|
<select id="getResponsibleOperatorList" resultType="EamAdminData" parameterType="EamAdminData"> |
|
|
|
SELECT |
|
|
|
operator_id as adminID, |
|
|
|
operator_name as adminName |
|
|
|
FROM operator |
|
|
|
<where> |
|
|
|
site in (select site from eam_access_site where username = #{userName}) |
|
|
|
<if test = "adminID != null and adminID != ''"> |
|
|
|
AND operator_id LIKE '%' + #{adminID} + '%' |
|
|
|
</if> |
|
|
|
<if test = "adminName != null and adminName != ''"> |
|
|
|
AND operator_name LIKE '%' + #{adminName} + '%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|
|
|
|
|
|
|
|
|