Commit cc3ed4a6 authored by 赵啸非's avatar 赵啸非

更新资源部署

parent 145183b0
...@@ -80,9 +80,11 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D ...@@ -80,9 +80,11 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
String path = GlobalSysInfo.getParamValue(Constant.DISTRIBUTE_PATH, "/home/publish/app/homeDeviceUrl"); String path = GlobalSysInfo.getParamValue(Constant.DISTRIBUTE_PATH, "/home/publish/app/homeDeviceUrl");
String siteCode = distributeEntity.getSiteCode(); String siteCode = distributeEntity.getSiteCode();
Long siteId = distributeEntity.getSiteId();
String code = distributeEntity.getProductCode(); String code = distributeEntity.getProductCode();
String imageRe = distributeEntity.getImageResolutionValue(); String imageRe = distributeEntity.getImageResolutionValue();
String disPath = path + "/" + siteCode + "/" + code + "/" + imageRe;
String disPath = path + "/" + siteId + "/" + code + "/" + imageRe;
//判断目标目录是否存在 如果存在 这删除 //判断目标目录是否存在 如果存在 这删除
if (FileUtil.isDirectory(disPath)) { if (FileUtil.isDirectory(disPath)) {
FileUtil.del(disPath); FileUtil.del(disPath);
...@@ -129,7 +131,6 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D ...@@ -129,7 +131,6 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
} }
//查询同类资源,变更为非默认值后 再更新 //查询同类资源,变更为非默认值后 再更新
DeviceModuleDistributeQuery query = new DeviceModuleDistributeQuery(); DeviceModuleDistributeQuery query = new DeviceModuleDistributeQuery();
...@@ -185,6 +186,7 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D ...@@ -185,6 +186,7 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
moduleDistributeEntity.setSiteCode(sitePdu.getSiteCode()); moduleDistributeEntity.setSiteCode(sitePdu.getSiteCode());
moduleDistributeEntity.setDistributeFilePath(""); moduleDistributeEntity.setDistributeFilePath("");
moduleDistributeEntity.setDistribute(YesNoEnum.NO.getValue()); moduleDistributeEntity.setDistribute(YesNoEnum.NO.getValue());
moduleDistributeEntity.setSelected(YesNoEnum.NO.getValue());
this.save(moduleDistributeEntity, context); this.save(moduleDistributeEntity, context);
} }
} }
......
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