|
@ -115,6 +115,8 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
if (StringUtils.isNotBlank(query.getModelName())) { |
|
|
if (StringUtils.isNotBlank(query.getModelName())) { |
|
|
qw.like("modelName", query.getModelName()); |
|
|
qw.like("modelName", query.getModelName()); |
|
|
} |
|
|
} |
|
|
|
|
|
qw.eq("createBySid",query.getStaffSid()); |
|
|
|
|
|
qw.eq("useOrgSid",query.getUseOrgSid()); |
|
|
return qw; |
|
|
return qw; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -132,12 +134,14 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
SysOrganizationVo data1 = sysOrganizationVoResultBean.getData(); |
|
|
SysOrganizationVo data1 = sysOrganizationVoResultBean.getData(); |
|
|
Integer isDept = data1.getIsDept(); |
|
|
Integer isDept = data1.getIsDept(); |
|
|
String psid = data1.getPsid(); |
|
|
String psid = data1.getPsid(); |
|
|
|
|
|
if (isDept != null){ |
|
|
if (isDept == 0 && !psid.equals(0)) { |
|
|
if (isDept == 0 && !psid.equals(0)) { |
|
|
orgSidPath = s; |
|
|
orgSidPath = s; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
query.setUseOrgSid(orgSidPath); |
|
|
query.setUseOrgSid(orgSidPath); |
|
|
QueryWrapper<BaseOutsourcingApplication> qw = createQueryWrapper(query); |
|
|
QueryWrapper<BaseOutsourcingApplication> qw = createQueryWrapper(query); |
|
|
IPage<BaseOutsourcingApplication> page = PagerUtil.queryToPage(pq); |
|
|
IPage<BaseOutsourcingApplication> page = PagerUtil.queryToPage(pq); |
|
@ -262,14 +266,13 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
variables.put("businessSid", businessSid); |
|
|
variables.put("businessSid", businessSid); |
|
|
variables.put("orgSid", orgSid); //部门sid
|
|
|
variables.put("orgSid", orgSid); //部门sid
|
|
|
if (StringUtils.isBlank(dto.getTaskId())) { // 新提交
|
|
|
if (StringUtils.isBlank(dto.getTaskId())) { // 新提交
|
|
|
String proDefId = ProcDefEnum.SEALAPPLY.getProDefId(); |
|
|
|
|
|
ResultBean resultBean1 = flowableService.businessStart(ProcDefEnum.BASEOUTSOURCINGAPPLICATION.getProDefId(), dto.getUserSid(), variables); |
|
|
ResultBean resultBean1 = flowableService.businessStart(ProcDefEnum.BASEOUTSOURCINGAPPLICATION.getProDefId(), dto.getUserSid(), variables); |
|
|
if (resultBean1.getSuccess() && resultBean1.getData() != null) { |
|
|
if (resultBean1.getSuccess() && resultBean1.getData() != null) { |
|
|
Map<String, String> map = (Map<String, String>) resultBean1.getData(); |
|
|
Map<String, String> map = (Map<String, String>) resultBean1.getData(); |
|
|
//更新业务表中的流程状态
|
|
|
//更新业务表中的流程状态
|
|
|
Map<String, Object> paramMap = new HashMap<>(); |
|
|
Map<String, Object> paramMap = new HashMap<>(); |
|
|
paramMap.put("sid", businessSid); |
|
|
paramMap.put("sid", businessSid); |
|
|
paramMap.put("procDefId", ProcDefEnum.SEALAPPLY.getProDefId()); |
|
|
paramMap.put("procDefId", ProcDefEnum.BASEOUTSOURCINGAPPLICATION.getProDefId()); |
|
|
paramMap.put("nodeState", map.get("nodeState")); |
|
|
paramMap.put("nodeState", map.get("nodeState")); |
|
|
paramMap.put("procInsId", map.get("procInsId")); |
|
|
paramMap.put("procInsId", map.get("procInsId")); |
|
|
paramMap.put("taskDefKey", map.get("taskDefKey")); |
|
|
paramMap.put("taskDefKey", map.get("taskDefKey")); |
|
@ -461,4 +464,5 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu |
|
|
public ResultBean flowRecord(String procInsId, String deployId) { |
|
|
public ResultBean flowRecord(String procInsId, String deployId) { |
|
|
return flowTaskFeign.businessFlowRecord(procInsId,deployId); |
|
|
return flowTaskFeign.businessFlowRecord(procInsId,deployId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |