优化查询日志 #123

Merged
qtz merged 2 commits from qtz1 into dev 2024-03-18 02:02:11 +00:00
Showing only changes of commit a64aa29a4e - Show all commits
@@ -3771,6 +3771,13 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
}
}
}else {
caseAttach = MsCaseAttach.builder()
.caseAppliId(application.getId())
.annexName(orgFileName+".docx")
.annexPath(resultFilePath.replace(RuoYiConfig.getProfile(),Constants.RESOURCE_PREFIX))
.annexType(annexType)
.build();
}
//保存到附件表里,先删除之前的在保存
if(caseAttach != null) {
@@ -3791,10 +3798,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
if (file.exists()) {
// 调用onlyoffice
try {
onlyOfficeUrl= onlyOfficeUrl+ "?caseId="+caseId;
Map<String, Object> params = new HashMap<>();
params.put("file", file);
String postResult = HttpUtil.post(onlyOfficeUrl, params);
String postResult = HttpUtil.post(onlyOfficeUrl+ "/"+String.valueOf(caseId), params);
if(StrUtil.isNotEmpty(postResult)){
// 转为jsonArray
JSONArray jsonArray = JSONArray.parseArray(postResult);