wl
2022-11-14 bf465beb883aaa88e452b04f13a18f50f40b1354
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>