|
|
|
@ -1032,6 +1032,8 @@
|
|
|
|
|
LEFT JOIN WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WC.HANDLE AND WCT.LOCALE = 'zh'
|
|
|
|
|
LEFT JOIN ITEM I ON I.HANDLE = ZCI.COMPONENT_BO
|
|
|
|
|
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = I.HANDLE AND IT.LOCALE = 'zh'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CFA ON CFA.HANDLE = I.HANDLE AND CFA."ATTRIBUTE" = 'MAT_SPEC'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CFB ON CFB.HANDLE = I.HANDLE AND CFB."ATTRIBUTE" = 'TEXTTURE'
|
|
|
|
|
LEFT JOIN ITEM_GROUP_MEMBER IGM ON IGM.ITEM_BO = ZCI.COMPONENT_BO
|
|
|
|
|
LEFT JOIN ITEM_GROUP IG ON IG.HANDLE = IGM.ITEM_GROUP_BO
|
|
|
|
|
WHERE ZCI.CALL_TYPE = 'MATERIAL' AND ZCI.STATUS = '802' AND ZCI.SITE = #{site}
|
|
|
|
@ -1050,6 +1052,12 @@
|
|
|
|
|
<if test="requiredToDT != null">
|
|
|
|
|
AND ZCI.REQUIRED_DATE_TIME <= #{requiredToDT}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="spec != null and spec != ''">
|
|
|
|
|
AND CFA.VALUE LIKE '%' || #{spec} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="texture != null and texture != ''">
|
|
|
|
|
AND CFB.VALUE LIKE '%' || #{texture} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
GROUP BY ZCI.COMPONENT_BO ,ZSD.WORK_CENTER ,WCT.DESCRIPTION ,I.ITEM ,IT.DESCRIPTION ,ZSD.BLANKING_SIZE ,IG.ITEM_GROUP
|
|
|
|
|
ORDER BY ZCI.COMPONENT_BO
|
|
|
|
|
</select>
|
|
|
|
@ -1065,6 +1073,8 @@
|
|
|
|
|
LEFT JOIN WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WC.HANDLE AND WCT.LOCALE = 'zh'
|
|
|
|
|
LEFT JOIN ITEM I ON I.HANDLE = ZCI.COMPONENT_BO
|
|
|
|
|
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = I.HANDLE AND IT.LOCALE = 'zh'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CFA ON CFA.HANDLE = I.HANDLE AND CFA."ATTRIBUTE" = 'MAT_SPEC'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CFB ON CFB.HANDLE = I.HANDLE AND CFB."ATTRIBUTE" = 'TEXTTURE'
|
|
|
|
|
LEFT JOIN ITEM_GROUP_MEMBER IGM ON IGM.ITEM_BO = ZCI.COMPONENT_BO
|
|
|
|
|
LEFT JOIN ITEM_GROUP IG ON IG.HANDLE = IGM.ITEM_GROUP_BO
|
|
|
|
|
LEFT JOIN RESRCE R ON R.RESRCE = ZCI.RESRCE AND R.SITE = ZCI.SITE
|
|
|
|
@ -1084,6 +1094,12 @@
|
|
|
|
|
<if test="requiredToDT != null">
|
|
|
|
|
AND ZCI.REQUIRED_DATE_TIME <= #{requiredToDT}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="spec != null and spec != ''">
|
|
|
|
|
AND CFA.VALUE LIKE '%' || #{spec} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="texture != null and texture != ''">
|
|
|
|
|
AND CFB.VALUE LIKE '%' || #{texture} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
GROUP BY ZCI.COMPONENT_BO ,ZSD.WORK_CENTER ,WCT.DESCRIPTION ,I.ITEM ,IT.DESCRIPTION ,ZSD.BLANKING_SIZE ,IG.ITEM_GROUP , ZCI.RESRCE, R.DESCRIPTION
|
|
|
|
|
ORDER BY ZCI.COMPONENT_BO
|
|
|
|
|
</select>
|
|
|
|
|