流程 数组越位

This commit is contained in:
gaojiabao
2023-05-15 17:27:59 +08:00
parent 1352111b2f
commit 57b3f33610
@@ -1365,8 +1365,9 @@ public class WorkFlowController extends BaseController {
}else {
s = workFlowFeignClient.endPrcName(prcName, esId);
String[] split = s.split("-");
List<String> asList = Arrays.asList(split);
if(split[0].equals("成功")){
if(StringUtils.isNotBlank(split[1])){
if(asList.size()>1){
EndPrcName endPrcName = new EndPrcName();
Map<String, String> objectObjectMap = new HashMap<>();
objectObjectMap.put("ids",split[1]);
@@ -1376,7 +1377,10 @@ public class WorkFlowController extends BaseController {
endPrcName.setIsNot("1");
return Result.success(endPrcName);
}
return Result.success();
EndPrcName endPrcName = new EndPrcName();
endPrcName.setIsNot("2");
endPrcName.setIds("xxx");
return Result.success(endPrcName);
}else {
return Result.error();
}