|
|
@ -176,7 +176,7 @@ |
|
|
SELECT |
|
|
SELECT |
|
|
a.document_type_id, |
|
|
a.document_type_id, |
|
|
a.document_type, |
|
|
a.document_type, |
|
|
a.responsible_department, |
|
|
|
|
|
|
|
|
(SELECT role_desc FROM business_role WHERE role_no = a.responsible_department) AS responsible_department, |
|
|
a.estimated_completion_days |
|
|
a.estimated_completion_days |
|
|
FROM document_type_definition as a |
|
|
FROM document_type_definition as a |
|
|
where |
|
|
where |
|
|
@ -241,21 +241,25 @@ |
|
|
<select id="getPendingUploads" resultType="com.xujie.sys.modules.pms.data.ProofDocumentData"> |
|
|
<select id="getPendingUploads" resultType="com.xujie.sys.modules.pms.data.ProofDocumentData"> |
|
|
SELECT * FROM view_plm_toupload_list_byUser |
|
|
SELECT * FROM view_plm_toupload_list_byUser |
|
|
WHERE status != '草稿' AND uploaded_flag = 'N' AND RelatedPerson = #{userId} |
|
|
WHERE status != '草稿' AND uploaded_flag = 'N' AND RelatedPerson = #{userId} |
|
|
|
|
|
order by project_id |
|
|
</select> |
|
|
</select> |
|
|
<select id="getOverdueUploads" resultType="com.xujie.sys.modules.pms.data.ProofDocumentData"> |
|
|
<select id="getOverdueUploads" resultType="com.xujie.sys.modules.pms.data.ProofDocumentData"> |
|
|
<![CDATA[ |
|
|
<![CDATA[ |
|
|
SELECT * FROM view_plm_toupload_list_byUser |
|
|
SELECT * FROM view_plm_toupload_list_byUser |
|
|
WHERE status != '草稿' AND uploaded_flag = 'N' AND Request_date < GETDATE() AND RelatedPerson = #{userId} |
|
|
WHERE status != '草稿' AND uploaded_flag = 'N' AND Request_date < GETDATE() AND RelatedPerson = #{userId} |
|
|
|
|
|
order by project_id |
|
|
]]> |
|
|
]]> |
|
|
</select> |
|
|
</select> |
|
|
<select id="getPendingConfirmations" resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
<select id="getPendingConfirmations" resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
SELECT * FROM view_plm_toproconfirm_list_byUser |
|
|
SELECT * FROM view_plm_toproconfirm_list_byUser |
|
|
WHERE confirm_flag = 'N' AND RelatedPerson = #{userId} |
|
|
|
|
|
|
|
|
WHERE status != '草稿' AND confirm_flag = 'N' AND RelatedPerson = #{userId} |
|
|
|
|
|
order by project_id |
|
|
</select> |
|
|
</select> |
|
|
<select id="getOverdueConfirmations" resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
<select id="getOverdueConfirmations" resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
<![CDATA[ |
|
|
<![CDATA[ |
|
|
SELECT * FROM view_plm_toproconfirm_list_byUser |
|
|
SELECT * FROM view_plm_toproconfirm_list_byUser |
|
|
WHERE confirm_flag = 'N' AND wanted_confirm_date < GETDATE() AND RelatedPerson = #{userId} |
|
|
|
|
|
|
|
|
WHERE status != '草稿' AND confirm_flag = 'N' AND wanted_confirm_date < GETDATE() AND RelatedPerson = #{userId} |
|
|
|
|
|
order by project_id |
|
|
]]> |
|
|
]]> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|