|
|
|
@ -66,12 +66,15 @@
|
|
|
|
|
PB.MATERIAL_CODE,
|
|
|
|
|
PB.MATERIAL_NAME,
|
|
|
|
|
PB.MATERIAL_BARCODE,
|
|
|
|
|
PB.PRINT_BARTYPE,
|
|
|
|
|
OI.PRINT_NAME,
|
|
|
|
|
NVL(MIN(PS.IS_PRINT), 1) IS_PRINT
|
|
|
|
|
FROM BASE_ORDERINFO OI
|
|
|
|
|
JOIN C##AUCMA_SCADA.PRINT_BARCODE PB ON PB.ORDER_CODE = OI.ORDER_CODE
|
|
|
|
|
LEFT JOIN C##AUCMA_SCADA.PRINT_SUPPLEMENTBARCODE PS ON PS.MATERIAL_BARCODE = PB.MATERIAL_BARCODE
|
|
|
|
|
WHERE PB.MATERIAL_BARCODE = #{boxCode}
|
|
|
|
|
GROUP BY PB.ORDER_CODE, PB.MATERIAL_CODE, PB.MATERIAL_NAME, PB.MATERIAL_BARCODE
|
|
|
|
|
GROUP BY PB.ORDER_CODE, PB.MATERIAL_CODE, PB.MATERIAL_NAME, PB.MATERIAL_BARCODE, PB.PRINT_BARTYPE,
|
|
|
|
|
OI.PRINT_NAME
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<update id="unbindBarCode">
|
|
|
|
|