在线编辑 发布节点 进行转换

This commit is contained in:
gaojiabao
2023-05-30 16:03:08 +08:00
parent 407bf0f7ed
commit 237af41edb
2 changed files with 16 additions and 0 deletions
@@ -4,6 +4,7 @@ package com.adc.da.workFlow.controller;
import com.adc.da.base.web.BaseController;
import com.adc.da.http.ResponseMessage;
import com.adc.da.http.Result;
import com.adc.da.slrs.OnlineFileLog.service.OnlineFileLogService;
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
import com.adc.da.workFlow.entity.GetQBZXDExcelDto;
import com.adc.da.workFlow.service.ActSarItemsBussEOService;
@@ -32,6 +33,9 @@ public class ActSarItemsBussEOController extends BaseController<ActSarItemsEO> {
@Autowired
private ActSarItemsBussEOService actSarItemsEOService;
@Autowired
private OnlineFileLogService onlineFileLogService;
// private static final Logger logger = LoggerFactory.getLogger(AttFileEOController.class);
@ApiOperation(value = "|SarBussionessStand|企标复审入库流程")
@@ -51,6 +55,15 @@ public class ActSarItemsBussEOController extends BaseController<ActSarItemsEO> {
if (StringUtils.isNotBlank(infoJson)) {
JSONObject jsonObject = JSON.parseObject(infoJson);
if(jsonObject!=null){
// 在线编辑 转换问题
Object fugBuss = jsonObject.get("FBGBUSS");
if(fugBuss!=null){
String fug = fugBuss.toString();
if(StringUtils.isNotBlank(fug)) {
String fileId = onlineFileLogService.selectOnlineFile(fug);
jsonObject.put("FBGBUSS",fileId);
}
}
Object issueTime = jsonObject.get("issueTime");
Object standSort = jsonObject.get("standSort");
if(issueTime!=null && standSort!=null){
@@ -1100,6 +1100,9 @@ public class WorkFlowController extends BaseController {
attFileEODao.updateFileInfoById(attFileEO);
logger.info("======================文件名称修改成功==============================="+standName+".docx"+"======"+"传入对象为:"+attFileEO.getOldFileName());
}
// 转码编译
//删除媒介桥梁文件
if(file.delete()){
//删除文件名称