Commit b9106f96 authored by suhuiguang's avatar suhuiguang

1.修改更名

parent ebbb2937
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
ur.use_unit_name as useUnitName, ur.use_unit_name as useUnitName,
ur.new_use_unit_name AS newUseUnitName, ur.new_use_unit_name AS newUseUnitName,
ur.promoter, ur.promoter,
ur.next_executor_ids as nextExecutorIds ur.next_executor_ids as nextExecutorIds,
ur.next_execute_user_ids as nextExecuteUserIds
from tzs_jg_change_registration_name ur from tzs_jg_change_registration_name ur
<where> <where>
and ur.is_delete = 0 and ur.is_delete = 0
......
...@@ -693,22 +693,21 @@ public class CommonServiceImpl implements ICommonService { ...@@ -693,22 +693,21 @@ public class CommonServiceImpl implements ICommonService {
if (collect.get(0).getFlowStatusLabel().equals(FlowStatusEnum.TO_BE_FINISHED.getName())){ if (collect.get(0).getFlowStatusLabel().equals(FlowStatusEnum.TO_BE_FINISHED.getName())){
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(params.get("model")));
String urlParams = ""; String urlParams = "";
try { try {
urlParams = "&" + toQueryParams(jsonObject); urlParams = "&" + toQueryParams(params.get("model"));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); e.printStackTrace();
} }
List<Map> urlList = JsonUtils.getResourceList(urlInfo); List<Map> urlList = JsonUtils.getResourceList(urlInfo);
for (Map map : urlList) { for (Map map : urlList) {
if (map.get("type").equals(collect.get(0).getTaskType()) && map.get("pageType").equals("look")) { if (map.get("type").equals(collect.get(0).getTaskType()) && map.get("pageType").equals("look")) {
urlParams = map.get("url").toString().replace("{roleIds}", jsonObject.getString("nextExecuteUser")) + urlParams + "&nextExecuteUserIds=" + jsonObject.getString("executeUserIds"); urlParams = map.get("url").toString().replace("{roleIds}", "") + urlParams + "&nextExecuteUserIds=";
break; break;
} }
} }
collect.get(0).setRoutePath(urlParams); collect.get(0).setRoutePath(urlParams);
for (TaskV2Model taskV2Model : result) { for (TaskV2Model taskV2Model : collect) {
taskV2Model.setTaskStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName())); taskV2Model.setTaskStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName()));
taskV2Model.setTaskStatus(FlowStatusEnum.TO_BE_FINISHED.getCode()); taskV2Model.setTaskStatus(FlowStatusEnum.TO_BE_FINISHED.getCode());
taskV2Model.setFlowStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName())); taskV2Model.setFlowStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName()));
...@@ -762,31 +761,23 @@ public class CommonServiceImpl implements ICommonService { ...@@ -762,31 +761,23 @@ public class CommonServiceImpl implements ICommonService {
collect.get(0).setTaskStatusLabel(params.get("taskStatusLabel").toString()); collect.get(0).setTaskStatusLabel(params.get("taskStatusLabel").toString());
collect.get(0).setEndUserId(exeUserId); collect.get(0).setEndUserId(exeUserId);
collect.get(0).setEndDate(new Date()); collect.get(0).setEndDate(new Date());
// String[] roleIds = model.getRoutePath().split("roleIds=");
// String[] userIds = roleIds[1].split("&userId");
// String url = roleIds[0]+"roleIds="+"55555"+"&userId"+ userIds[1];
// String tarUrl = url.replaceFirst("&executeUserIds=", "");
// tarUrl+"&executeUserIds="
// model.setRoutePath( roleIds[0]+"roleIds="+"55555"+"&userId"+userIds[1]);
//当流程完成时将所有待办状态统一修改为已完成 //当流程完成时将所有待办状态统一修改为已完成
if (collect.get(0).getFlowStatusLabel().equals(FlowStatusEnum.TO_BE_FINISHED.getName())){ if (collect.get(0).getFlowStatusLabel().equals(FlowStatusEnum.TO_BE_FINISHED.getName())){
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(params.get("model")));
String urlParams = ""; String urlParams = "";
try { try {
urlParams = "&" + toQueryParams(jsonObject); urlParams = "&" + toQueryParams(params.get("model"));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); e.printStackTrace();
} }
List<Map> urlList = JsonUtils.getResourceList(urlInfo); List<Map> urlList = JsonUtils.getResourceList(urlInfo);
for (Map map : urlList) { for (Map map : urlList) {
if (map.get("type").equals(collect.get(0).getTaskType()) && map.get("pageType").equals("look")) { if (map.get("type").equals(collect.get(0).getTaskType()) && map.get("pageType").equals("look")) {
urlParams = map.get("url").toString().replace("{roleIds}", jsonObject.getString("nextExecuteUser")) + urlParams + "&nextExecuteUserIds=" + jsonObject.getString("executeUserIds"); urlParams = map.get("url").toString().replace("{roleIds}", "") + urlParams + "&nextExecuteUserIds=";
break; break;
} }
} }
collect.get(0).setRoutePath(urlParams); collect.get(0).setRoutePath(urlParams);
for (TaskV2Model taskV2Model : result) { for (TaskV2Model taskV2Model : collect) {
taskV2Model.setTaskStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName())); taskV2Model.setTaskStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName()));
taskV2Model.setTaskStatus(FlowStatusEnum.TO_BE_FINISHED.getCode()); taskV2Model.setTaskStatus(FlowStatusEnum.TO_BE_FINISHED.getCode());
taskV2Model.setFlowStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName())); taskV2Model.setFlowStatusLabel((FlowStatusEnum.TO_BE_FINISHED.getName()));
......
...@@ -499,6 +499,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg ...@@ -499,6 +499,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
params.put("taskStatusLabel", flowStatusEnum.getName()); params.put("taskStatusLabel", flowStatusEnum.getName());
params.put("flowStatus", this.getTaskStatusByName(jgChangeRegistrationName.getAuditStatus())); params.put("flowStatus", this.getTaskStatusByName(jgChangeRegistrationName.getAuditStatus()));
params.put("flowStatusLabel", jgChangeRegistrationName.getAuditStatus()); params.put("flowStatusLabel", jgChangeRegistrationName.getAuditStatus());
params.put("model", jgChangeRegistrationName);
return commonService.updateTaskModelNew(params); return commonService.updateTaskModelNew(params);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment