From b1012d23b8ae65e45902900c687bf68f39840ac2 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 17 十一月 2025 09:24:37 +0800
Subject: [PATCH] 高并发下库位抢占导致的数据错乱
---
src/main/resources/mapper/WrkDetlLogMapper.xml | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/main/resources/mapper/WrkDetlLogMapper.xml b/src/main/resources/mapper/WrkDetlLogMapper.xml
index 86dbba8..4699a11 100644
--- a/src/main/resources/mapper/WrkDetlLogMapper.xml
+++ b/src/main/resources/mapper/WrkDetlLogMapper.xml
@@ -29,6 +29,7 @@
<result column="safe_qty" property="safeQty"/>
<result column="weight" property="weight"/>
<result column="length" property="length"/>
+ <result column="man_length" property="manLength"/>
<result column="volume" property="volume"/>
<result column="three_code" property="threeCode"/>
<result column="supp" property="supp"/>
@@ -48,14 +49,14 @@
<result column="standby1" property="standby1" />
<result column="standby2" property="standby2" />
<result column="standby3" property="standby3" />
+ <result column="box_type1" property="boxType1" />
+ <result column="box_type2" property="boxType2" />
+ <result column="box_type3" property="boxType3" />
</resultMap>
<sql id="batchSeq">
<if test="wrkNo != null and wrkNo != ''">
and a.wrk_no = #{wrkNo}
- </if>
- <if test="anfme != null and anfme != ''">
- and a.anfme = #{anfme}
</if>
<if test="modiTimeStart != null ">
<if test="modiTimeEnd != null ">
@@ -65,17 +66,23 @@
<if test="orderNo != null and orderNo != ''">
and a.order_no like concat('%',#{orderNo},'%')
</if>
- <if test="batch != null and batch != ''">
- and a.batch like concat('%',#{batch},'%')
+ <if test="maktx != null and maktx != ''">
+ and a.maktx like concat('%',#{maktx},'%')
</if>
- <if test="matnr != null and matnr != ''">
- and a.matnr like concat('%',#{matnr},'%')
+ <if test="model != null and model != ''">
+ and a.model = #{model}
+ </if>
+ <if test="volume != null and volume != ''">
+ and a.volume = #{volume}
</if>
<if test="zpallet != null and zpallet != ''">
and a.zpallet like concat('%',#{zpallet},'%')
</if>
- <if test="specs != null and specs != ''">
- and a.specs like concat('%',#{specs},'%')
+ <if test="ioType != null">
+ and b.io_type = #{ioType}
+ </if>
+ <if test="wrkSts != null">
+ and b.wrk_sts = #{wrkSts}
</if>
</sql>
--
Gitblit v1.9.1