From 44c14fe845ea66e64e2bb3e8bcd172f4a0840747 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期五, 30 一月 2026 19:07:14 +0800
Subject: [PATCH] pda组托搜索按编号和名称查询
---
src/main/resources/mapper/BasDevpMapper.xml | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/BasDevpMapper.xml b/src/main/resources/mapper/BasDevpMapper.xml
index 0546242..a6f1c5e 100644
--- a/src/main/resources/mapper/BasDevpMapper.xml
+++ b/src/main/resources/mapper/BasDevpMapper.xml
@@ -29,6 +29,9 @@
<result column="area" property="area" />
<result column="in_ok" property="inOk" />
<result column="out_ok" property="outOk" />
+ <result column="loc_type1" property="locType1" />
+ <result column="loc_type2" property="locType2" />
+ <result column="loc_type3" property="locType3" />
<result column="modi_user" property="modiUser" />
<result column="modi_time" property="modiTime" />
<result column="appe_user" property="appeUser" />
@@ -48,7 +51,7 @@
left join asr_sta_desc asd on abd.dev_no = asd.stn_no
where 1=1
and asd.type_no = #{typeNo}
- and abd.in_enable = 'Y'
+ -- and abd.in_enable = 'Y'
group by abd.dev_no
</select>
@@ -59,8 +62,19 @@
left join asr_sta_desc asd on abd.dev_no = asd.stn_no
where 1=1
and asd.type_no = #{typeNo}
- and abd.out_enable = 'Y'
+ -- and abd.out_enable = 'Y'
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