Browse Source

# 修改站点数据填报时推送站点至FDP bug

zhongwei
haungxing 1 year ago
parent
commit
8cc71cee5f
  1. 7
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/StationConstants.java
  2. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

7
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/StationConstants.java

@ -15,6 +15,13 @@ public interface StationConstants {
String HZ3000_OTHER = "5";
/*==============================================================================================*/
/*==============================================================================================*/
/**数据填报**/
String FILL = "1";
/**数据采集**/
String GATHER = "0";
/*==============================================================================================*/
String STATION_VIDEO_TYPE_CODE = "vedio_address_type";
//自动添加或修改机构数据

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

@ -97,7 +97,7 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn
throw new ServiceException("创建/修改站点信息失败!");
});
// 如果设备数据来源未选定其他 则进行站点初始化操作
if (!StationConstants.HZ3000_OTHER.equals(req.getDataSource())) {
if (!(StationConstants.FILL.equals(req.getDataOrigin()) || StationConstants.HZ3000_OTHER.equals(req.getDataSource()))) {
new Thread(() -> questionClient.submitStationInfo(req.getCode(), ""), "智能诊断站点推送").start();
new Thread(() -> this.instanceProject(req), "新建项目").start();
}

Loading…
Cancel
Save