|
|
|
@ -41,6 +41,7 @@
|
|
|
|
|
<result column="DISPATCH_QTY" property="dispatchQty" />
|
|
|
|
|
<result column="RESOURCE_TYPE" property="resourceType" />
|
|
|
|
|
<result column="BLANKING_SIZE" property="blankingSize" />
|
|
|
|
|
<result column="RESOURCE_DESCRIPTION" property="resourceDescription" />
|
|
|
|
|
<result column="OPERATION_DESCRIPTION" property="operationDescription" />
|
|
|
|
|
<result column="PLANNED_START_DATE" property="plannedStartDate" />
|
|
|
|
|
<result column="REMARK" property="remark" />
|
|
|
|
@ -881,10 +882,11 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="finsIssueItemListToResource" resultMap="FullResultMap">
|
|
|
|
|
SELECT VIP.SITE, VIP.WORK_ORDER, VIP.CALL_TYPE, VIP.ITEM_GROUP, VIP.ITEM_BO, VIP.ITEM, VIP.ITEM_DESCRIPTION, VIP.REQUIRED_QTY, VIP.BLANKING_SIZE, VIP.RESRCE, SIP.SOURCE_RESOURCE
|
|
|
|
|
SELECT VIP.SITE, VIP.WORK_ORDER, VIP.CALL_TYPE, VIP.ITEM_GROUP, VIP.ITEM_BO, VIP.ITEM, VIP.ITEM_DESCRIPTION, VIP.REQUIRED_QTY, VIP.BLANKING_SIZE, VIP.RESRCE, VIP.RESOURCE_DESCRIPTION, SIP.SOURCE_RESOURCE
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT L.SITE, CF.VALUE WORK_ORDER, L.CALL_TYPE, IG.ITEM_GROUP, CP.HANDLE ITEM_BO, CP.ITEM, CT.DESCRIPTION ITEM_DESCRIPTION, SUM(L.REQUIRED_QTY)-SUM(NVL(L.ISSUE_QTY,0)) REQUIRED_QTY, W.BLANKING_SIZE, W.RESRCE
|
|
|
|
|
SELECT L.SITE, CF.VALUE WORK_ORDER, L.CALL_TYPE, IG.ITEM_GROUP, CP.HANDLE ITEM_BO, CP.ITEM, CT.DESCRIPTION ITEM_DESCRIPTION, SUM(L.REQUIRED_QTY)-SUM(NVL(L.ISSUE_QTY,0)) REQUIRED_QTY, W.BLANKING_SIZE, W.RESRCE, RS.DESCRIPTION RESOURCE_DESCRIPTION
|
|
|
|
|
FROM Z_CALL_ITEM L
|
|
|
|
|
INNER JOIN RESRCE RS ON L.SITE = RS.SITE AND L.RESRCE = RS.RESRCE
|
|
|
|
|
INNER JOIN Z_SFC_DISPATCH W ON L.SFC_DISPATCH_BO = W.HANDLE
|
|
|
|
|
INNER JOIN ITEM CP ON CP.HANDLE = L.COMPONENT_BO
|
|
|
|
|
LEFT JOIN ITEM_T CT ON CT.ITEM_BO = CP.HANDLE AND CT.LOCALE = 'zh'
|
|
|
|
@ -911,7 +913,7 @@
|
|
|
|
|
<if test="requiredToDT != null">
|
|
|
|
|
AND L.REQUIRED_DATE_TIME <= #{requiredToDT}
|
|
|
|
|
</if>
|
|
|
|
|
GROUP BY L.SITE, CF.VALUE, L.CALL_TYPE, IG.ITEM_GROUP, CP.HANDLE, CP.ITEM, CT.DESCRIPTION, W.BLANKING_SIZE, W.RESRCE
|
|
|
|
|
GROUP BY L.SITE, CF.VALUE, L.CALL_TYPE, IG.ITEM_GROUP, CP.HANDLE, CP.ITEM, CT.DESCRIPTION, W.BLANKING_SIZE, W.RESRCE, RS.DESCRIPTION
|
|
|
|
|
) VIP
|
|
|
|
|
LEFT JOIN (
|
|
|
|
|
SELECT L.SITE, L.ITEM_BO, ZD.RESRCE SOURCE_RESOURCE
|
|
|
|
|