|
|
|
@ -834,7 +834,7 @@
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateCallItemStatusByHandle">
|
|
|
|
|
UPDATE Z_CALL_ITEM SET CALL_STATUS = #{status}, MODIFY_USER = #{user}, MODIFIED_DATE_TIME = #{dateTime}
|
|
|
|
|
UPDATE Z_CALL_ITEM SET STATUS = #{status}, MODIFY_USER = #{user}, MODIFIED_DATE_TIME = #{dateTime}
|
|
|
|
|
WHERE HANDLE IN
|
|
|
|
|
<foreach item="item" collection="list" separator="," open="(" close=")" index="">
|
|
|
|
|
#{item}
|
|
|
|
@ -979,7 +979,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findCallItemInfoList" resultMap="FullResultMap">
|
|
|
|
|
SELECT CI.HANDLE ,CI.RESRCE ,CF.VALUE SHOP_ORDER ,CI.REQUIRED_QTY , CI.CALL_STATUS,
|
|
|
|
|
SELECT CI.HANDLE ,CI.RESRCE ,CF.VALUE SHOP_ORDER ,CI.REQUIRED_QTY , CI.STATUS,
|
|
|
|
|
B.BOM AS ITEM, B.DESCRIPTION ITEM_DESCRIPTION ,
|
|
|
|
|
SD.WORK_CENTER , WCT.DESCRIPTION AS WORK_CENTER_DESCRIPTION, SD.BLANKING_SIZE, SD.REMARK, SD.PLANNED_START_DATE,
|
|
|
|
|
I.ITEM AS COMPONENT ,IT.DESCRIPTION AS COMPONENT_DESCRIPTION
|
|
|
|
@ -1016,18 +1016,15 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="findRefreshCallItemPda" resultMap="FullResultMap">
|
|
|
|
|
SELECT CI.HANDLE ,CI.SFC ,CI.COMPONENT_BO ,BC.QTY REQUIRED_QTY, CF.VALUE STEP_ID
|
|
|
|
|
--BC.BOM_BO , CI.STEP_ID ,
|
|
|
|
|
FROM Z_CALL_ITEM CI
|
|
|
|
|
LEFT JOIN SFC S ON S.SFC = CI.SFC
|
|
|
|
|
LEFT JOIN SFC_BOM SB ON SB.SFC_BO = S.HANDLE
|
|
|
|
|
LEFT JOIN BOM_COMPONENT BC ON BC.BOM_BO = SB.BOM_BO AND BC.COMPONENT_GBO = CI.COMPONENT_BO
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CF ON CF.HANDLE = BC.HANDLE AND CF."ATTRIBUTE" = 'STEP_ID' AND CF.VALUE = CI.STEP_ID
|
|
|
|
|
WHERE HANDLE IN
|
|
|
|
|
(
|
|
|
|
|
<foreach item="item" index="index" collection="coll" separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
)
|
|
|
|
|
<foreach item="item" collection="list" separator="," open="(" close=")" index="">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|