fix: 修改计划管控更名bug

This commit is contained in:
wxyclub
2023-11-20 08:59:03 +08:00
parent 318127cf14
commit 31a775e2d0
2 changed files with 25 additions and 18 deletions
@@ -1484,7 +1484,8 @@ public class WorkFlowController extends BaseController {
String s = ""; String s = "";
if (StringUtils.isBlank(prcName) || StringUtils.isBlank(json) || StringUtils.isBlank(sort)) { if (StringUtils.isBlank(prcName) || StringUtils.isBlank(json) || StringUtils.isBlank(sort)) {
return Result.error("参数为空"); return Result.error("参数为空");
} else { }
else {
prcName = sort + "-" + prcName + "-计划立项"; prcName = sort + "-" + prcName + "-计划立项";
} }
JSONObject jsonObject = JSON.parseObject(json); JSONObject jsonObject = JSON.parseObject(json);
@@ -1515,7 +1516,11 @@ public class WorkFlowController extends BaseController {
} }
} }
}else { }else {
if ("4".equals(jsonObject.getString("type")) || "3".equals(jsonObject.getString("type"))) {
s = workFlowFeignClient.endPrcName(prcName, esId); s = workFlowFeignClient.endPrcName(prcName, esId);
if (StringUtils.isBlank(s)) {
return Result.error();
}
String[] split = s.split("-"); String[] split = s.split("-");
List<String> asList = Arrays.asList(split); List<String> asList = Arrays.asList(split);
if(split[0].equals("成功")){ if(split[0].equals("成功")){
@@ -1537,6 +1542,7 @@ public class WorkFlowController extends BaseController {
return Result.error(); return Result.error();
} }
} }
}
return Result.success(); return Result.success();
} }
@@ -154,6 +154,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
addInterceptor.excludePathPatterns("/api/OtConvert/convertFileToFileId"); addInterceptor.excludePathPatterns("/api/OtConvert/convertFileToFileId");
addInterceptor.excludePathPatterns("/api/att/attFile/downloadFileForSarNew"); addInterceptor.excludePathPatterns("/api/att/attFile/downloadFileForSarNew");
addInterceptor.excludePathPatterns("/api/att/attFile/downloadFileForSarNewOnlyOffice");
addInterceptor.excludePathPatterns("/api/att/attFile/downloadFileForSarWaterMarkNew"); addInterceptor.excludePathPatterns("/api/att/attFile/downloadFileForSarWaterMarkNew");
addInterceptor.excludePathPatterns("/api/att/attFile/uploadNew"); addInterceptor.excludePathPatterns("/api/att/attFile/uploadNew");
addInterceptor.excludePathPatterns("/api/lawss/sarBussionessStand/importSarBussionessStandFile"); addInterceptor.excludePathPatterns("/api/lawss/sarBussionessStand/importSarBussionessStandFile");