|
|
|
@ -637,6 +637,53 @@ |
|
|
|
</where> |
|
|
|
order by project_id |
|
|
|
</select> |
|
|
|
<select id="getAllConfirmationsList" |
|
|
|
resultType="com.xujie.sys.modules.pms.data.ProjectProductionValidationDocumentData"> |
|
|
|
SELECT * FROM view_plm_toproconfirm_list_byUser |
|
|
|
<where> |
|
|
|
status != '草稿' |
|
|
|
<if test="query.projectNo != null and query.projectNo != ''"> |
|
|
|
AND ( |
|
|
|
project_no = #{query.projectNo} |
|
|
|
OR project_no IN ( |
|
|
|
SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.projectNo}, ',') |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="query.projectDesc != null and query.projectDesc != ''"> |
|
|
|
and project_desc like #{query.projectDesc} |
|
|
|
</if> |
|
|
|
<if test="query.testPartNo != null and query.testPartNo != ''"> |
|
|
|
AND ( |
|
|
|
test_part_no = #{query.testPartNo} |
|
|
|
OR test_part_no IN ( |
|
|
|
SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.testPartNo}, ',') |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="query.customerNo != null and query.customerNo != ''"> |
|
|
|
and customer_no = like #{query.customerNo} |
|
|
|
</if> |
|
|
|
<if test="query.customerDesc != null and query.customerDesc != ''"> |
|
|
|
and customer_desc = like #{query.customerDesc} |
|
|
|
</if> |
|
|
|
<if test="query.buDesc != null and query.buDesc != ''"> |
|
|
|
AND dbo.get_bu_desc ( site, bu_no ) = #{query.buDesc} |
|
|
|
</if> |
|
|
|
<if test="query.projectCategory != null and query.projectCategory != ''"> |
|
|
|
and project_category = #{query.projectCategory} |
|
|
|
</if> |
|
|
|
<if test="query.status != null and query.status != ''"> |
|
|
|
and status = #{query.status} |
|
|
|
</if> |
|
|
|
<if test="query.startDate != null "> |
|
|
|
AND build_date >= #{query.startDate} |
|
|
|
</if> |
|
|
|
<if test="query.endDate != null "> |
|
|
|
AND #{query.endDate} >= build_date |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 插入文档 --> |
|
|
|
<insert id="insertDocument" parameterType="map"> |
|
|
|
|