新加的 针对 征求意见撤回
This commit is contained in:
@@ -2326,6 +2326,22 @@ public class TodoTaskController extends BaseAction {
|
||||
@ApiOperation(value = "强制撤回", notes = "强制撤回")
|
||||
@GetMapping("/forceRecall")
|
||||
public Wrapper<String> forceRecall(String prcId) {
|
||||
QueryWrapper<BusProcessName> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq("PRC_ID",prcId);
|
||||
List<BusProcessName> busProcessNames=iBusProcessNameService.list(wrapper);
|
||||
if (!busProcessNames.isEmpty()){
|
||||
BusProcessName busProcessName=busProcessNames.get(0);
|
||||
if ("3".equals(busProcessName.getPrcType())){
|
||||
QueryWrapper<BusProcessNew> wrapper1=new QueryWrapper<>();
|
||||
wrapper1.eq("P_ID",prcId).eq("TASK_INFO","起草");
|
||||
List<BusProcessNew> list=iBusProcessNewService.list(wrapper1);
|
||||
if (!list.isEmpty()){
|
||||
JSONObject object=JSONObject.parseObject(list.get(0).getMesg());
|
||||
lawsUserInfoService.deletePublicIdea(object.getString("uniques"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
runtimeService.deleteProcessInstance(prcId, "用户强制撤回");
|
||||
if(StringUtils.isNotBlank(prcId)){
|
||||
webServiceOAService.deleteOAByPid(prcId);
|
||||
|
||||
+1
@@ -117,6 +117,7 @@ public class SRPManagerApproveAfter implements TaskListener{
|
||||
queryWrapper1.eq("TASK_ID",delegateTask.getId());
|
||||
BusProcessNew one1 = busBean.getOne(queryWrapper1);
|
||||
if(one1!=null){
|
||||
one1.setTaskInfo(delegateTask.getName());
|
||||
one1.setCommitFlag(commitFlag);
|
||||
one1.setCommitText(object.getString("commentText"));
|
||||
busBean.saveOrUpdate(one1);
|
||||
|
||||
Reference in New Issue
Block a user