From 83e0c64afb46660ea75ccb3794e34a655e1aa5fa Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期二, 15 十一月 2022 15:41:45 +0800
Subject: [PATCH] 案卷查询接口bug
---
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