change - 补打条码存打印名称

master
yinq 8 months ago
parent fc32d1eddd
commit d2e6cb0f20

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