From d0666401f17ec0de2b56cd38c4e2fa39e725a051 Mon Sep 17 00:00:00 2001 From: Leon <3066758958@qq.com> Date: Wed, 25 Aug 2021 10:39:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AB=E6=96=99=E4=BF=AE=E6=94=B9=EF=BC=9A?= =?UTF-8?q?=E8=A3=85=E9=85=8D=E5=8F=AA=E5=8F=AB=E8=BE=85=E6=96=99=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA9=E7=9A=84=EF=BC=8C=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=8F=AB=E5=8E=9F=E6=9D=90=E6=96=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dispatch/src/main/resources/mapper/CallItemMapper.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dispatch/src/main/resources/mapper/CallItemMapper.xml b/dispatch/src/main/resources/mapper/CallItemMapper.xml index c187ec91..11d56627 100644 --- a/dispatch/src/main/resources/mapper/CallItemMapper.xml +++ b/dispatch/src/main/resources/mapper/CallItemMapper.xml @@ -612,13 +612,17 @@ SC.QTY*BC.QTY ISSUE_QTY, SC.QTY*BC.QTY-NVL(ZCI.REQUIRED_QTY,0) REQUIRED_QTY, ZSD.PLANNED_START_DATE REQUIRED_DATE_TIME, ZCI.HANDLE, ZCI.CALL_TYPE FROM Z_SFC_DISPATCH ZSD INNER JOIN SFC SC ON SC.SITE = ZSD.SITE AND SC.SFC = ZSD.SFC + INNER JOIN SHOP_ORDER SO ON SO.HANDLE = SC.SHOP_ORDER_BO + INNER JOIN CUSTOM_FIELDS CF ON CF.HANDLE = SO.HANDLE AND CF.ATTRIBUTE = 'FACTORY' INNER JOIN SFC_BOM SB ON SB.SFC_BO = SC.HANDLE INNER JOIN BOM_COMPONENT BC ON BC.BOM_BO = SB.BOM_BO INNER JOIN ITEM CP ON CP.HANDLE = BC.COMPONENT_GBO + LEFT JOIN CUSTOM_FIELDS CS ON CS.HANDLE = CP.HANDLE AND CS.ATTRIBUTE = 'ACCESSORY_TYPE' INNER JOIN BOM_OPERATION BO ON BO.BOM_COMPONENT_BO = BC.HANDLE AND BO.OPERATION_BO = 'OperationBO:'||SC.SITE||','||ZSD.OPERATION||',#' INNER JOIN CUSTOM_FIELDS CF ON CF.HANDLE = BC.HANDLE AND CF."ATTRIBUTE" = 'STEP_ID' AND CF.VALUE = ZSD.STEP_ID LEFT JOIN Z_CALL_ITEM ZCI ON ZCI.SFC_DISPATCH_BO = ZSD.HANDLE AND ZCI.COMPONENT_BO = CP.HANDLE AND ZCI.STEP_ID = ZSD.STEP_ID - WHERE ZSD.HANDLE IN + WHERE ( (CF.VALUE ='6100' AND CS.VALUE = '9') OR (CF.VALUE = '6106' OR CP.MATERIAL_TYPE='ROH') ) + AND ZSD.HANDLE IN #{item.handle}