制修订 更名 删除过才发起 没删除过不发起
This commit is contained in:
+16
-7
@@ -1354,7 +1354,9 @@ public class WorkFlowController extends BaseController {
|
||||
String prcName2 = bussSort2 + "-" + esName2 + "-计划立项";
|
||||
String s1 = workFlowFeignClient.endPrcName(prcName1, esId1);
|
||||
String s2 = workFlowFeignClient.endPrcName(prcName2, esId2);
|
||||
if(s1.equals("成功") && s2.equals("成功")){
|
||||
String[] split1 = s1.split("-");
|
||||
String[] split2 = s2.split("-");
|
||||
if(split1[0].equals("成功") && split2[0].equals("成功")){
|
||||
return Result.success();
|
||||
}else {
|
||||
return Result.error();
|
||||
@@ -1362,12 +1364,19 @@ public class WorkFlowController extends BaseController {
|
||||
}
|
||||
}else {
|
||||
s = workFlowFeignClient.endPrcName(prcName, esId);
|
||||
Map<String, String> objectObjectMap = new HashMap<>();
|
||||
objectObjectMap.put("ids",esId);
|
||||
objectObjectMap.put("prcCreateUser","xxx");
|
||||
String s1 = JSONObject.toJSONString(objectObjectMap);
|
||||
if(s.equals("成功")){
|
||||
return Result.success(s1);
|
||||
String[] split = s.split("-");
|
||||
if(split[0].equals("成功")){
|
||||
if(StringUtils.isNotBlank(split[1])){
|
||||
EndPrcName endPrcName = new EndPrcName();
|
||||
Map<String, String> objectObjectMap = new HashMap<>();
|
||||
objectObjectMap.put("ids",split[1]);
|
||||
objectObjectMap.put("prcCreateUser","xxx");
|
||||
String s1 = JSONObject.toJSONString(objectObjectMap);
|
||||
endPrcName.setIds(s1);
|
||||
endPrcName.setIsNot("1");
|
||||
return Result.success(endPrcName);
|
||||
}
|
||||
return Result.success();
|
||||
}else {
|
||||
return Result.error();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.adc.da.workFlow.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class EndPrcName {
|
||||
private String ids;
|
||||
private String isNot;
|
||||
}
|
||||
Reference in New Issue
Block a user