change - 补打条码存打印名称

master
yinq 8 months ago
parent fc32d1eddd
commit d2e6cb0f20

@ -62,9 +62,16 @@
</select>
<select id="selectPrintBarcode" resultType="java.util.HashMap">
SELECT ORDER_CODE, MATERIAL_CODE, MATERIAL_NAME, MATERIAL_BARCODE, PRINT_TIME, PRINT_BARTYPE
FROM PRINT_BARCODE
WHERE MATERIAL_BARCODE = #{boxCode}
SELECT PB.ORDER_CODE,
PB.MATERIAL_CODE,
PB.MATERIAL_NAME,
PB.MATERIAL_BARCODE,
PB.PRINT_TIME,
PB.PRINT_BARTYPE,
OI.PRINT_NAME
FROM BASE_ORDERINFO OI
JOIN C##AUCMA_SCADA.PRINT_BARCODE PB ON PB.ORDER_CODE = OI.ORDER_CODE
WHERE PB.MATERIAL_BARCODE = #{boxCode}
</select>
<update id="unbindBarCode">
@ -81,6 +88,7 @@
<if test="MATERIAL_NAME != null">MATERIAL_NAME,</if>
<if test="MATERIAL_BARCODE != null">MATERIAL_BARCODE,</if>
<if test="PRINT_BARTYPE != null">PRINT_BARTYPE,</if>
<if test="PRINT_NAME != null">PRINT_NAME,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ORDER_CODE != null">#{ORDER_CODE},</if>
@ -88,6 +96,7 @@
<if test="MATERIAL_NAME != null">#{MATERIAL_NAME},</if>
<if test="MATERIAL_BARCODE != null">#{MATERIAL_BARCODE},</if>
<if test="PRINT_BARTYPE != null">#{PRINT_BARTYPE},</if>
<if test="PRINT_NAME != null">#{PRINT_NAME},</if>
</trim>
</insert>
</mapper>
Loading…
Cancel
Save