From 67826a2c51bbc013db409dd1a5e29dd4ba52fd72 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期二, 20 一月 2026 09:27:47 +0800
Subject: [PATCH] 初始化

---
 src/main/resources/mapper/LocDetlMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 1ea5ec3..be9dcd9 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -152,6 +152,7 @@
         update asr_loc_detl
         set anfme = #{anfme}
         , modi_time = getdate()
+        , appe_time = getdate()
         where 1=1
         and loc_no = #{locNo}
         and matnr = #{locDetl.matnr}
@@ -244,7 +245,7 @@
         select * from
         (
         select
-        ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row,
+        ROW_NUMBER() over (order by a.modi_time, a.loc_no) as row,
         a.*
         from asr_loc_detl a
         left join asr_loc_mast b on a.loc_no = b.loc_no

--
Gitblit v1.9.1