Commit ce1327c2 by liuyang

2024-08-21 设备管理附件删除调整

parent 574425e0
...@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.sb.service; ...@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.sb.service;
import com.baosight.hggp.aspect.annotation.OperationLogAnnotation; import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.core.constant.CommonConstant; import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.constant.S3Constant;
import com.baosight.hggp.core.dao.DaoUtils; import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.core.utils.Iplat4jUtils;
import com.baosight.hggp.hg.ds.domain.HGDS002; import com.baosight.hggp.hg.ds.domain.HGDS002;
import com.baosight.hggp.hg.sb.domain.HGSB099; import com.baosight.hggp.hg.sb.domain.HGSB099;
import com.baosight.hggp.util.FileUtils; import com.baosight.hggp.util.FileUtils;
...@@ -39,7 +41,7 @@ public class ServiceHGSB099 extends ServiceEPBase { ...@@ -39,7 +41,7 @@ public class ServiceHGSB099 extends ServiceEPBase {
try { try {
// 项目环境 // 项目环境
String projectEnv = ProjectInfo.getProjectEnv(); String projectEnv = ProjectInfo.getProjectEnv();
if (CommonConstant.projectEnv.RUN.equalsIgnoreCase(projectEnv)) { if (CommonConstant.FileLocation.S3.equalsIgnoreCase(S3Constant.FILE_LOCATION)) {
inInfo = super.query(inInfo, "HGSB099.queryRun", new HGSB099()); inInfo = super.query(inInfo, "HGSB099.queryRun", new HGSB099());
} else { } else {
inInfo = super.query(inInfo, "HGSB099.queryDev", new HGSB099()); inInfo = super.query(inInfo, "HGSB099.queryDev", new HGSB099());
...@@ -60,7 +62,8 @@ public class ServiceHGSB099 extends ServiceEPBase { ...@@ -60,7 +62,8 @@ public class ServiceHGSB099 extends ServiceEPBase {
hgsb099.fromMap(resultRow); hgsb099.fromMap(resultRow);
DaoUtils.update(HGSB099.DELETE, hgsb099); DaoUtils.update(HGSB099.DELETE, hgsb099);
if (!hgsb099.getDocId().isEmpty()) { if (!hgsb099.getDocId().isEmpty()) {
this.delectDoc(hgsb099.getDocId()); Iplat4jUtils.deleteFileByDocId(hgsb099.getDocId());
//this.delectDoc(hgsb099.getDocId());
} }
} }
inInfo = this.query(inInfo); inInfo = this.query(inInfo);
......
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