From 775524110885e27fe860be1feb156ca78b5040b2 Mon Sep 17 00:00:00 2001 From: zhangnaisong <2434969829@qq.com> Date: 星期六, 06 七月 2024 14:10:57 +0800 Subject: [PATCH] 电子围栏分页查询修改提交 --- ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml index 67e4371..73dbb28 100644 --- a/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml +++ b/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml @@ -20,6 +20,7 @@ <if test="wallName != null and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if> <if test="wallPoi != null and wallPoi != ''"> and wall_poi = #{wallPoi}</if> </where> + order by wall_name </select> <select id="selectArdTankWallById" parameterType="String" resultMap="ArdTankWallResult"> @@ -64,4 +65,20 @@ <select id="getAllArdTankWall" resultMap="ArdTankWallResult"> select * from ard_tank_wall order by wall_name </select> + + <select id="getArdTankWallByLockId" resultType="java.util.Map" parameterType="java.lang.String"> + select atw.id as "wallId",atw.wall_name as "wallName",atw.wall_poi as "wallPoi", + atwl.process_type as "processType",case process_type when '-1' then '鍏冲姩浣�' + when '0' then '鏃犲姩浣�' when '1' then '寮�鍔ㄤ綔' end as process + from ard_tank_wall_lock atwl + inner join ard_tank_wall atw on atwl.wall_id = atw.id + where atwl.lock_id = #{id} + </select> + + <select id="selectArdTankWallTotal" parameterType="java.lang.String" resultType="java.lang.Long"> + select count(*) from ard_tank_wall atw + <where> + <if test="wallName != null and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if> + </where> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3