From bf465beb883aaa88e452b04f13a18f50f40b1354 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期一, 14 十一月 2022 13:53:47 +0800 Subject: [PATCH] 卡口管理调整 --- ycl-platform/src/main/resources/mapper/equipment/EquipmentBayonetMapper.xml | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/equipment/EquipmentBayonetMapper.xml b/ycl-platform/src/main/resources/mapper/equipment/EquipmentBayonetMapper.xml index eb398d3..9848aff 100644 --- a/ycl-platform/src/main/resources/mapper/equipment/EquipmentBayonetMapper.xml +++ b/ycl-platform/src/main/resources/mapper/equipment/EquipmentBayonetMapper.xml @@ -18,4 +18,30 @@ id, bayonet_name, longitude, latitude, ip_address, port, description </sql> + <select id="selectEquipmentPage" resultType="com.ycl.vo.equipment.EquipmentBayonetVO"> + SELECT + t1.id, + t1.bayonet_name, + t1.description, + t1.ip_address, + t1.latitude, + t1.longitude, + t1.`port`, + t2.`name` as frontEndType, + t3.`name` as inOutCityType, + t4.region_name as belongArea + FROM + `ums_equipment_bayonet` t1 + LEFT JOIN + ums_data_dictionary t2 on t1.front_end_type=t2.id + LEFT JOIN + ums_data_dictionary t3 on t1.in_out_city_type=t3.id + LEFT JOIN + ums_sccg_region t4 on t4.id=t1.belong_area + <where> + <if test="bayonetName !=null and bayonetName !='' "> + bayonet_name like CONCAT('%',#{bayonetName},'%') + </if> + </where> + </select> </mapper> -- Gitblit v1.8.0