修改对接接口

This commit is contained in:
高嵩
2024-03-28 15:22:31 +08:00
parent c7ba8fe4f3
commit 69bd351c1e
@@ -463,7 +463,28 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
String drafts = json.getString("drafts"); String drafts = json.getString("drafts");
String model = "model_qb"; String model = "model_qb";
// 查询历史信息:1 是 2 否
String queryType = json.getString("queryType");
if (StringUtils.equals(CommonConstant.ONLIOFFICE_QUERY_TYPE_1,queryType)) {
OnlineFileLog onlineFileLog = onlineFileLogDao.selectById(fileId);
if(ObjectUtils.isNotEmpty(onlineFileLog)){
resultSb.append(onlyOfficeEditorUrl);
resultSb.append("fileId=").append(onlineFileLog.getHisId()).append("&");
resultSb.append("oldFileName=").append(onlineFileLog.getFileName()).append("&");
resultSb.append("fileType=").append("docx").append("&");
resultSb.append("attId=").append(onlineFileLog.getAttFileId()).append("&");
resultSb.append("filePath=").append(onlineFileLog.getFilePath()).append("&");
resultSb.append("fileName=").append(onlineFileLog.getFileName()).append("&");
resultSb.append("userName=").append(userName).append("&");
resultSb.append("standCode=").append(serialNumber).append("&");
resultSb.append("standName=").append(standName).append("&");
resultSb.append("draftingDepartment=").append(estDepart).append("&");
resultSb.append("draftsman=").append(drafts).append("&");
resultSb.append("replaceStand=").append(replaceStand);
}else{
log.error("onlineFileLog为空,fileId="+fileId);
}
} else if (StringUtils.equals(CommonConstant.ONLIOFFICE_QUERY_TYPE_2,queryType)) {
BusProcessModelHis bpmHis = this.baseMapper.selectById(fileId); BusProcessModelHis bpmHis = this.baseMapper.selectById(fileId);
if (ObjectUtils.isNotEmpty(bpmHis)) { if (ObjectUtils.isNotEmpty(bpmHis)) {
resultSb.append(onlyOfficeEditorUrl); resultSb.append(onlyOfficeEditorUrl);
@@ -555,7 +576,7 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
throw new JeroBootException("操作失败,请联系管理员!"); throw new JeroBootException("操作失败,请联系管理员!");
} }
} }
}
return resultSb.toString(); return resultSb.toString();
} }