bihuisong 11 months ago
parent
commit
9745b9c37b

+ 1 - 1
zhsq_qk-system/src/main/resources/mapper/system/SysCameraMapper.xml

@@ -57,7 +57,7 @@
         left join sys_police_station b on a.police_id = b.id
         <where>
             <if test="cameraName != null  and cameraName != ''">
-                and camera_name = #{cameraName}
+                and camera_name like concat('%', #{cameraName}, '%')
             </if>
             <if test="policeName != null ">and b.police_name = #{policeName}</if>
             <if test="longitude != null  and longitude != ''">