|
|
|
@ -570,7 +570,7 @@
|
|
|
|
|
<!--根据sfcBo,查询当前条码的打印信息-->
|
|
|
|
|
<select id="findSfcPrintInfoBySfc" resultType="com.foreverwin.mesnac.common.dto.LabelPrintDto">
|
|
|
|
|
SELECT IM.ITEM , I.ITEM_BO PRINTER, S.SFC, IT.DESCRIPTION ITEM_DESCRIPTION, ZSD.SHOP_ORDER,
|
|
|
|
|
I.QTY_ON_HAND QTY ,ZSD.BLANKING_SIZE , CF.VALUE DRAWING_REVISION
|
|
|
|
|
I.QTY_ON_HAND QTY ,ZSD.BLANKING_SIZE , CF.VALUE DRAWING_REVISION ,CASE WHEN CFA.VALUE = '9' THEN 'true' ELSE 'false' END MAIN_PART
|
|
|
|
|
FROM INVENTORY I
|
|
|
|
|
LEFT JOIN SFC S ON I.INVENTORY_CONTEXT_GBO = S.HANDLE
|
|
|
|
|
LEFT JOIN
|
|
|
|
@ -579,6 +579,7 @@
|
|
|
|
|
LEFT JOIN ITEM IM ON IM.HANDLE = I.ITEM_BO
|
|
|
|
|
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = IM.HANDLE AND IT.LOCALE = 'zh'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CF ON CF.HANDLE = I.ITEM_BO AND CF."ATTRIBUTE" = 'DRAWING_REVISION'
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS CFA ON CFA.HANDLE = I.ITEM_BO AND CFA."ATTRIBUTE" = 'ACCESSORY_TYPE'
|
|
|
|
|
WHERE S.SFC = #{sfc} AND I.SITE = #{site}
|
|
|
|
|
</select>
|
|
|
|
|
<!--自定义sql-->
|
|
|
|
|