瀏覽代碼

相机树开发

gao.qiang 3 月之前
父節點
當前提交
272c1a335d

+ 1 - 1
business-service/src/main/java/com/ozs/service/utils/PublishCallback.java

@@ -36,7 +36,7 @@ public class PublishCallback implements MqttCallback {
         logger.error("连接断开,原因:" + cause);
         try {
             logger.error("------connectionLost-------");
-            publishClient.reconnect();
+            PublishClient.reconnect();
         } catch (Exception e) {
             logger.error("重连失败:" + e);
         }

+ 1 - 1
business-service/src/main/java/com/ozs/service/utils/PublishClient.java

@@ -287,7 +287,7 @@ public class PublishClient {
         }
     }
 
-    public  void reconnect() throws MqttException {
+    public static void reconnect() throws MqttException {
         log.error("尝试重连...");
         if (client != null) {
             try {

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

@@ -175,7 +175,7 @@
                 and ca.line_dir =#{lineDir}
             </if>
             <if test="railwayType != null and railwayType != 0">
-                and ca.railway_type =#{railwayType}
+                and ra.railway_type =#{railwayType}
             </if>
             <if test="deptId != null and deptId != 0">
                 and ca.dept_id =#{deptId}