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

修改应用版本更新

parent 76775986
...@@ -180,7 +180,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti ...@@ -180,7 +180,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
} }
//部署路径是否存在 如果不存在 创建目录, //部署路径是否存在 如果不存在 创建目录,
//文件构成目录 /home/publish/app/common //文件构成目录 /home/publish/app/common
String disPath = "/home/publish/app/common"; String disPath = "/home/publish/app";
//判断目标目录是否存在 如果存在 这删除 //判断目标目录是否存在 如果存在 这删除
if (FileUtil.isDirectory(disPath)) { if (FileUtil.isDirectory(disPath)) {
...@@ -394,8 +394,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti ...@@ -394,8 +394,8 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
String originFilePath = appEntity.getFilePath(); String originFilePath = appEntity.getFilePath();
String filePath = entity.getFilePath(); String filePath = entity.getFilePath();
String fileName = entity.getFileName(); String fileName = entity.getFileName();
entity.setFilePath(null); //entity.setFilePath(null);
entity.setFileName(null); //entity.setFileName(null);
//判断如果应用下架,通知自助服务终端 //判断如果应用下架,通知自助服务终端
if (entity.getShelves() == YesNoEnum.NO.getValue()) { if (entity.getShelves() == YesNoEnum.NO.getValue()) {
...@@ -411,7 +411,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti ...@@ -411,7 +411,7 @@ public class AppServiceImpl extends AbstractCRUDCacheServiceImpl<AppDao, AppEnti
entity.setFilePath(filePath); entity.setFilePath(filePath);
this.updateAfter(entity, context); this.updateAfter(entity, context);
//判断只有附件地址不等时候,才更新版本 //判断只有附件地址不等时候,才更新版本
if (!ObjectUtils.isEmpty(originFilePath) && !originFilePath.equals(filePath)) { if (!ObjectUtils.isEmpty(filePath) && !filePath.equals(originFilePath)) {
AppVersionQuery appVersionQuery = new AppVersionQuery(); AppVersionQuery appVersionQuery = new AppVersionQuery();
appVersionQuery.setAppId(entity.getId()); appVersionQuery.setAppId(entity.getId());
List<OrderCol> orderColList = new ArrayList<>(); List<OrderCol> orderColList = new ArrayList<>();
......
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