|
|
@ -3681,6 +3681,7 @@ |
|
|
<select id="queryEamDocumentType" resultType="com.xujie.sys.modules.pms.data.EamDocumentTypeData"> |
|
|
<select id="queryEamDocumentType" resultType="com.xujie.sys.modules.pms.data.EamDocumentTypeData"> |
|
|
SELECT |
|
|
SELECT |
|
|
a.site, |
|
|
a.site, |
|
|
|
|
|
c.sitename, |
|
|
a.document_type_id, |
|
|
a.document_type_id, |
|
|
a.document_type, |
|
|
a.document_type, |
|
|
a.responsible_department, |
|
|
a.responsible_department, |
|
|
@ -3691,6 +3692,7 @@ |
|
|
a.update_by, |
|
|
a.update_by, |
|
|
b.role_desc |
|
|
b.role_desc |
|
|
FROM document_type_definition as a |
|
|
FROM document_type_definition as a |
|
|
|
|
|
LEFT JOIN site as c on a.site = c.siteid |
|
|
LEFT JOIN business_role as b on a.site = b.site and a.responsible_department = b.role_no |
|
|
LEFT JOIN business_role as b on a.site = b.site and a.responsible_department = b.role_no |
|
|
WHERE |
|
|
WHERE |
|
|
a.site in (select eas.site from eam_access_site as eas where eas.username = #{params.userName}) |
|
|
a.site in (select eas.site from eam_access_site as eas where eas.username = #{params.userName}) |
|
|
@ -3701,6 +3703,7 @@ |
|
|
<select id="eamDocumentTypeSearch" resultType="com.xujie.sys.modules.pms.data.EamDocumentTypeData"> |
|
|
<select id="eamDocumentTypeSearch" resultType="com.xujie.sys.modules.pms.data.EamDocumentTypeData"> |
|
|
SELECT |
|
|
SELECT |
|
|
a.site, |
|
|
a.site, |
|
|
|
|
|
c.sitename, |
|
|
a.document_type_id, |
|
|
a.document_type_id, |
|
|
a.document_type, |
|
|
a.document_type, |
|
|
a.responsible_department, |
|
|
a.responsible_department, |
|
|
@ -3711,9 +3714,13 @@ |
|
|
a.update_by, |
|
|
a.update_by, |
|
|
b.role_desc |
|
|
b.role_desc |
|
|
FROM document_type_definition as a |
|
|
FROM document_type_definition as a |
|
|
|
|
|
LEFT JOIN site as c on a.site = c.siteid |
|
|
LEFT JOIN business_role as b on a.site = b.site and a.responsible_department = b.role_no |
|
|
LEFT JOIN business_role as b on a.site = b.site and a.responsible_department = b.role_no |
|
|
WHERE |
|
|
WHERE |
|
|
a.site in (select eas.site from eam_access_site as eas where eas.username = #{query.userName}) |
|
|
a.site in (select eas.site from eam_access_site as eas where eas.username = #{query.userName}) |
|
|
|
|
|
<if test="query.sitename != null and query.sitename != ''"> |
|
|
|
|
|
AND UPPER(c.sitename) LIKE '%' + UPPER(#{query.sitename}) + '%' |
|
|
|
|
|
</if> |
|
|
<if test="query.documentTypeId != null and query.documentTypeId != ''"> |
|
|
<if test="query.documentTypeId != null and query.documentTypeId != ''"> |
|
|
AND UPPER(a.document_type_id) LIKE '%' + UPPER(#{query.documentTypeId}) + '%' |
|
|
AND UPPER(a.document_type_id) LIKE '%' + UPPER(#{query.documentTypeId}) + '%' |
|
|
</if> |
|
|
</if> |
|
|
|