From 207823b94f5627fae49d29b51b5ce7186a70c8e0 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期六, 04 一月 2025 09:59:48 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/OrderDetlMapper.xml | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index 42dd341..e2c662b 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -45,6 +45,11 @@
<result column="update_by" property="updateBy" />
<result column="update_time" property="updateTime" />
<result column="memo" property="memo" />
+ <result column="owner" property="owner" />
+ <result column="payment" property="payment" />
+ <result column="uuid" property="uuid" />
+ <result column="source_loc_name" property="sourceLocName" />
+ <result column="target_loc_name" property="targetLocName" />
</resultMap>
@@ -68,7 +73,7 @@
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
- <if test="batch!=null">
+ <if test="batch!=null and batch!=''">
and batch = #{batch}
</if>
</select>
@@ -138,7 +143,7 @@
<update id="increase">
update man_order_detl
- set qty = qty + #{qty}
+ set work_qty = work_qty + #{workQty}
where 1=1
and order_id = #{orderId}
and matnr = #{matnr}
@@ -154,7 +159,7 @@
<update id="decrease">
update man_order_detl
- set work_qty = work_qty - #{qty}
+ set work_qty = work_qty - #{workQty}
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
--
Gitblit v1.9.1