فهرست منبع

【CHG】区间模糊查询

ZhaoMn 4 سال پیش
والد
کامیت
155d60c9f1

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BaseStationMapper.xml

@@ -160,7 +160,7 @@
         and  t.line_id=#{lineId}
       </if>
       <if test="stationName!=null and stationName!=''">
-        and  t.station_name=#{stationName}
+        and  t.station_name like concat('%', #{stationName}, '%')
       </if>
       <if test="stationType!=null and stationType!=''">
         and  t.station_type=#{stationType}
@@ -189,7 +189,7 @@
         and  t.line_id=#{lineId}
       </if>
       <if test="stationName!=null and stationName!=''">
-        and  t.station_name=#{stationName}
+        and  t.station_name like concat('%', #{stationName}, '%')
       </if>
       <if test="stationType!=null and stationType!=''">
         and  t.station_type=#{stationType}

+ 3 - 3
railway-business/src/main/resources/mapper/baseinfo/BaseSubstationMapper.xml

@@ -198,19 +198,19 @@
         and t.dept_id=#{deptId}
       </if>
       <if test="deptName!=null and deptName!=''">
-        and v.dept_name=#{deptName}
+        and v.dept_name like concat('%', #{deptName}, '%')
       </if>
       <if test="lineId!=null and lineId!=''">
         and t.line_id=#{lineId}
       </if>
       <if test="lineName!=null and lineName!=''">
-        and v.line_name=#{lineName}
+        and v.line_name like concat('%', #{lineName}, '%')
       </if>
       <if test="workArea!=null and workArea!=''">
         and t.work_area=#{workArea}
       </if>
       <if test="substationName!=null and substationName!=''">
-        and t.substation_name=#{substationName}
+        and t.substation_name like concat('%', #{substationName}, '%')
       </if>
       <if test="orderNum!=null and orderNum!=''">
         and t.order_num=#{orderNum}

+ 0 - 3
railway-business/src/main/resources/mapper/baseinfo/BusBlqMapper.xml

@@ -723,9 +723,6 @@
       <if test="dydj!=null and dydj!=''">
         and t.dydj=#{dydj}
       </if>
-      <if test="remark!=null and remark!=''">
-        and t.remark=#{remark}
-      </if>
       <if test="sccj!=null and sccj!=''">
         and t.sccj=#{sccj}
       </if>