From b424d6493efb60cb8d93a2e16526086da1fc2ea9 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 01 四月 2025 16:08:11 +0800
Subject: [PATCH] *
---
src/main/resources/mapper/LocDetlMapper.xml | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 4fb3cbf..6a11c33 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -48,22 +48,22 @@
<sql id="stockOutCondition">
<if test="loc_no!=null and loc_no!='' ">
- and a.loc_no like '%' + #{loc_no} + '%'
+ and a."loc_no" like '%' + #{loc_no} + '%'
</if>
<if test="matNo!=null and matNo!='' ">
- and a.matnr like '%' + #{matNo} + '%'
+ and a."matnr" like '%' + #{matNo} + '%'
</if>
<if test="matName!=null and matName!='' ">
- and a.maktx like '%' + #{matName} + '%'
+ and a."maktx" like '%' + #{matName} + '%'
</if>
<if test="anfme!=null and anfme!='' ">
- and a.anfme like '%' + #{anfme} + '%'
+ and a."anfme" like '%' + #{anfme} + '%'
</if>
<if test="altme!=null and altme!='' ">
- and a.altme like '%' + #{altme} + '%'
+ and a."altme" like '%' + #{altme} + '%'
</if>
<if test="startTime!=null and endTime!=null">
- and a.modi_time between #{startTime} and #{endTime}
+ and a."modi_time" between #{startTime} and #{endTime}
</if>
</sql>
@@ -71,12 +71,12 @@
select * from
(
select
- ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row,
+ ROW_NUMBER() over (order by a."appe_time",a."matnr",a."loc_no") as row,
a.*
- from asr_loc_detl a
- left join asr_loc_mast b on a.loc_no = b.loc_no
+ from "SOURCE"."asr_loc_detl" a
+ left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no"
where 1=1
- and b.loc_sts = 'F'
+ and b."loc_sts" = 'F'
<include refid="stockOutCondition"></include>
) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
</select>
@@ -84,10 +84,10 @@
<select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
select
count(1)
- from asr_loc_detl a
- left join asr_loc_mast b on a.loc_no = b.loc_no
+ from "SOURCE"."asr_loc_detl" a
+ left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no"
where 1=1
- and b.loc_sts = 'F'
+ and b."loc_sts" = 'F'
<include refid="stockOutCondition"></include>
</select>
</mapper>
--
Gitblit v1.9.1