From da13bea76b64183790ab17775f04d43d8c7f6607 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 26 十二月 2025 14:36:44 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/HalfBarcodeMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/HalfBarcodeMapper.xml b/src/main/resources/mapper/HalfBarcodeMapper.xml
index a373715..58cd05f 100644
--- a/src/main/resources/mapper/HalfBarcodeMapper.xml
+++ b/src/main/resources/mapper/HalfBarcodeMapper.xml
@@ -10,6 +10,19 @@
<result column="specs" property="specs" />
</resultMap>
+
+ <sql id="PageCondition">
+ <if test="zpallet != null and zpallet != '' ">
+ and zpallet like '%' + #{zpallet} + '%'
+ </if>
+ <if test="specs !=null and specs!='' ">
+ and zpallet like #{specs} + '%'
+ </if>
+ <if test="price!=null and price!='' ">
+ and price like '%' + #{price} + '%'
+ </if>
+ </sql>
+
<update id="half" parameterType="com.zy.asrs.entity.HalfBarcode">
UPDATE cust_half_barcode
<set>
@@ -22,4 +35,10 @@
</set>
WHERE zpallet = #{zpallet}
</update>
+ <select id="getList" resultType="com.zy.asrs.entity.HalfBarcode">
+ select zpallet,sum(1) as anfme from cust_matnr_barcode
+ where 1=1
+ <include refid="PageCondition"></include>
+ group by zpallet
+ </select>
</mapper>
--
Gitblit v1.9.1