From b84b7c38d8cd7bdaeb171b4c6b6ca67ba65d9f61 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期五, 20 三月 2026 20:15:53 +0800
Subject: [PATCH] 1.修复历史档没有源站点和目标站点 2.修复库存明细搜索栏 3.修复手动入库给出库完成任务标记

---
 src/main/resources/mapper/AppVersionMapper.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/AppVersionMapper.xml b/src/main/resources/mapper/AppVersionMapper.xml
index 2084f9b..7d77cd6 100644
--- a/src/main/resources/mapper/AppVersionMapper.xml
+++ b/src/main/resources/mapper/AppVersionMapper.xml
@@ -12,4 +12,18 @@
 
     </resultMap>
 
+    <select id="getLatestApp" resultMap="BaseResultMap">
+        select top 1 * from asr_app_version
+        where type = #{type} and latest = 1
+    </select>
+
+    <update id="updateLatest">
+        update asr_app_version
+        set latest = #{latest}
+        where 1 = 1
+        <if test="type != null || type != ''">
+            and type = #{type}
+        </if>
+    </update>
+
 </mapper>

--
Gitblit v1.9.1