From 28bf6e5a47b7235d829b5f1021cfbec1cb1811d6 Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期三, 03 八月 2022 16:29:38 +0800
Subject: [PATCH] changes

---
 dao/src/main/resources/mapper/PoleMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dao/src/main/resources/mapper/PoleMapper.xml b/dao/src/main/resources/mapper/PoleMapper.xml
index 7e7b07f..c9169df 100644
--- a/dao/src/main/resources/mapper/PoleMapper.xml
+++ b/dao/src/main/resources/mapper/PoleMapper.xml
@@ -9,6 +9,7 @@
         <result property="poleCode" column="pole_code" jdbcType="BIGINT"/>
         <result property="poleName" column="pole_name" jdbcType="VARCHAR"/>
         <result property="deviceType" column="device_type" jdbcType="INTEGER"/>
+        <result property="centre" column="centre" jdbcType="INTEGER"/>
         <result property="userId" column="user_id" jdbcType="BIGINT"/>
         <result property="clientId" column="client_id" jdbcType="BIGINT"/>
         <result property="province" column="province" jdbcType="VARCHAR"/>
@@ -51,7 +52,8 @@
             </if>
             <if test="keyword != null and keyword != ''">
                 AND ( t1.pole_name LIKE CONCAT(CONCAT('%', #{keyword}), '%')
-                OR t1.device_code LIKE CONCAT(CONCAT('%', #{keyword}), '%'))
+                OR t1.device_code LIKE CONCAT(CONCAT('%', #{keyword}), '%')
+                OR t1.centre LIKE CONCAT(CONCAT('%', #{keyword}), '%'))
             </if>
             <if test="isTrue != null and isTrue == 1">
                 AND t1.device_type = -1
@@ -68,6 +70,9 @@
             <if test="bingStates != null and bingStates == 1 ">
                 AND t1.user_id = -1
             </if>
+            <if test="center != null and center != ''">
+                AND t1.centre = #{center}
+            </if>
         </where>
         GROUP BY t1.id
         <if test="orderBy != null">

--
Gitblit v1.9.3