Browse Source

相机台账管理分页修改

gao.qiang 1 year ago
parent
commit
5e90766c3a

+ 4 - 0
business-service/src/main/java/com/ozs/entity/vo/BaseCameraManagementVo.java

@@ -69,4 +69,8 @@ public class BaseCameraManagementVo extends PageVo implements Serializable {
     private Integer online;
     
     private Integer enableOrNot;
+
+    private  String  stationName;
+
+    private String cameraCode;
 }

+ 6 - 0
business-service/src/main/resources/mapper/BaseCameraManagementMapper.xml

@@ -9,6 +9,12 @@
             <if test="railwayCode != null and railwayCode != ''">
                 and railway_code = #{railwayCode}
             </if>
+            <if test="cameraCode != null and cameraCode != ''">
+                and camera_code = #{cameraCode}
+            </if>
+            <if test="stationName != null and stationName !=''">
+                and station_name like CONCAT('%', #{stationName}, '%')
+            </if>
             <if test="lineDir != null and lineDir != 0">
                 and line_dir = #{lineDir}
             </if>