From 7da744cde165889cee36b6a515ed82c1d15fb172 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期五, 06 二月 2026 10:03:37 +0800
Subject: [PATCH] LicenseManager在运行过程中被以null参数重新初始化
---
src/main/resources/mapper/BasDevpMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/BasDevpMapper.xml b/src/main/resources/mapper/BasDevpMapper.xml
index 4f6e131..a6f1c5e 100644
--- a/src/main/resources/mapper/BasDevpMapper.xml
+++ b/src/main/resources/mapper/BasDevpMapper.xml
@@ -66,4 +66,15 @@
group by abd.dev_no
</select>
+ <update id="updateInQty">
+ UPDATE asr_bas_devp
+ SET in_qty =
+ CASE
+ WHEN #{type} = 1 THEN in_qty + 1
+ WHEN #{type} = 2 AND in_qty > 0 THEN in_qty - 1
+ ELSE in_qty
+ END
+ WHERE dev_no = #{devNo}
+ </update>
+
</mapper>
--
Gitblit v1.9.1