Commit ce1327c2 by liuyang

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

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