Commit d8e1e552 authored by suhuiguang's avatar suhuiguang

1.url参数去掉无用字段

parent c03b4661
......@@ -235,7 +235,7 @@ public class TaskModelServiceImpl {
* @param obj 自己的实体:taskType为BusinessTypeEnum code;nextExecuteUser
*/
public void rollbackTask(String id, JSONObject obj) {
this.removeNoUsedKey(obj);
List<TaskV2Model> result = Systemctl.taskV2Client.selectListByRelationId(id).getResult();
List<TaskV2Model> list = result.stream().sorted((r1, r2) -> r2.getSequenceNbr().compareTo(r1.getSequenceNbr())).collect(Collectors.toList());
TaskV2Model model = list.get(0);
......@@ -287,6 +287,21 @@ public class TaskModelServiceImpl {
}
}
public void removeNoUsedKey(JSONObject obj) {
obj.remove("applicationRemark");
obj.remove("planData");
obj.remove("inspectionChargePerson");
obj.remove("inspectionChargePersonName");
obj.remove("inspectionChargePhone");
obj.remove("recUserId");
obj.remove("recDate");
obj.remove("applicationDate");
obj.remove("acceptDate");
obj.remove("superviseOrgName");
obj.remove("dockingUnitCode");
obj.remove("address");
}
private static String toQueryParams2(JSONObject jsonObject) {
StringBuilder sb = new StringBuilder();
Set<String> keys = jsonObject.keySet();
......
......@@ -1106,7 +1106,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
params.put("taskStatusLabel", model.getStatusName());
params.put("flowStatus", model.getStatus());
params.put("flowStatusLabel", model.getStatusName());
params.put("model", model);
JSONObject jsonModel = (JSONObject)JSONObject.toJSON(model);
taskModelService.removeNoUsedKey(jsonModel);
params.put("model", jsonModel);
return taskModelService.updateTaskModel(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