Commit 02a321d0 authored by 韩桐桐's avatar 韩桐桐

fix(jg):修复车用气瓶生成多条代办

parent d7b5f37d
...@@ -383,6 +383,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -383,6 +383,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
flowExecute(vehicleInformation.getSequenceNbr(), vehicleInformation.getInstanceId(), "0", "", String.valueOf(map.get("nextTaskId")), String.valueOf(map.get("equDefineCode"))); flowExecute(vehicleInformation.getSequenceNbr(), vehicleInformation.getInstanceId(), "0", "", String.valueOf(map.get("nextTaskId")), String.valueOf(map.get("equDefineCode")));
} }
} else { } else {
if (ObjectUtils.isEmpty(map.get("instanceId"))) {
ArrayList<TaskModelDto> list = new ArrayList<>(); ArrayList<TaskModelDto> list = new ArrayList<>();
TaskModelDto dto = new TaskModelDto(); TaskModelDto dto = new TaskModelDto();
TaskMessageDto taskMessageDto = new TaskMessageDto(); TaskMessageDto taskMessageDto = new TaskMessageDto();
...@@ -397,6 +398,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -397,6 +398,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
list.add(dto); list.add(dto);
commonService.buildTaskModel(list); commonService.buildTaskModel(list);
} }
}
// 设备数据存历史数据,在流程完成时使用 // 设备数据存历史数据,在流程完成时使用
commonService.saveOrUpdateHistory(BusinessTypeEnum.JG_VEHICLE_GAS_APPLICATION.getName(), JSON.parseArray(JSON.toJSONString(equipmentLists)), null, vehicleInformation.getSequenceNbr() + ""); commonService.saveOrUpdateHistory(BusinessTypeEnum.JG_VEHICLE_GAS_APPLICATION.getName(), JSON.parseArray(JSON.toJSONString(equipmentLists)), null, vehicleInformation.getSequenceNbr() + "");
return Collections.singletonList(vehicleInformation); return Collections.singletonList(vehicleInformation);
......
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