Commit fd5ced35 authored by litengwei's avatar litengwei

app离线同步装备数据开关

parent f30baabe
...@@ -13,6 +13,7 @@ import com.yeejoin.equipmanage.mapper.EquipmentMapper; ...@@ -13,6 +13,7 @@ import com.yeejoin.equipmanage.mapper.EquipmentMapper;
import com.yeejoin.equipmanage.service.*; import com.yeejoin.equipmanage.service.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.foundation.utils.Bean; import org.typroject.tyboot.core.foundation.utils.Bean;
...@@ -24,6 +25,9 @@ import java.util.Map; ...@@ -24,6 +25,9 @@ import java.util.Map;
@Service @Service
public class DownloadFileService implements IDownloadFileService { public class DownloadFileService implements IDownloadFileService {
@Value("${auth-open-fire-equip:false}")
private String authOpen;
@Autowired @Autowired
@Lazy @Lazy
private FileUploadFactory factory; private FileUploadFactory factory;
...@@ -62,6 +66,8 @@ public class DownloadFileService implements IDownloadFileService { ...@@ -62,6 +66,8 @@ public class DownloadFileService implements IDownloadFileService {
@Override @Override
public AppDownloadVO appDownloadDatas() { public AppDownloadVO appDownloadDatas() {
// 装备离线同步开关
if(authOpen.equals("true")) {
AppDownloadVO appDownload = new AppDownloadVO(); AppDownloadVO appDownload = new AppDownloadVO();
//建筑信息 //建筑信息
...@@ -97,6 +103,8 @@ public class DownloadFileService implements IDownloadFileService { ...@@ -97,6 +103,8 @@ public class DownloadFileService implements IDownloadFileService {
return appDownload; return appDownload;
} }
return null;
}
/** /**
* 建筑树数据处理 * 建筑树数据处理
......
...@@ -115,3 +115,6 @@ redis_equip_type_count = equipTypeAndCount ...@@ -115,3 +115,6 @@ redis_equip_type_count = equipTypeAndCount
# 权限标识-物联装备 # 权限标识-物联装备
auth-key-fire-iot-equip=fire_iot-equip_info auth-key-fire-iot-equip=fire_iot-equip_info
# app离线同步装备数据开关
auth-open-fire-equip=false
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment