Commit 38af93cf authored by 吴俊凯's avatar 吴俊凯

代码提交

parent 606d1f52
...@@ -663,6 +663,7 @@ public class ContingencyAction implements CustomerAction { ...@@ -663,6 +663,7 @@ public class ContingencyAction implements CustomerAction {
if(planOperationRecord!=null){ if(planOperationRecord!=null){
planOperationRecord.setStatus(PlanRecordStatusEnum.COMPLETE.getCode()); planOperationRecord.setStatus(PlanRecordStatusEnum.COMPLETE.getCode());
planOperationRecord.setEndTime(new Date()); planOperationRecord.setEndTime(new Date());
planOperationRecordDao.save(planOperationRecord);
Optional<PlanDetail> optionalPlanDetail = planDetailDao.findById(planOperationRecord.getPlanId()); Optional<PlanDetail> optionalPlanDetail = planDetailDao.findById(planOperationRecord.getPlanId());
if(optionalPlanDetail.get()!=null){ if(optionalPlanDetail.get()!=null){
PlanDetail planDetail = optionalPlanDetail.get(); PlanDetail planDetail = optionalPlanDetail.get();
......
...@@ -165,7 +165,7 @@ public class ContingencyPlanController extends BaseController { ...@@ -165,7 +165,7 @@ public class ContingencyPlanController extends BaseController {
toke.setToke(getToken()); toke.setToke(getToken());
AgencyUserModel user = getUserInfo(); AgencyUserModel user = getUserInfo();
vo.setUserId(user.getUserId()); vo.setUserId(user.getUserId());
vo.setUserName(user.getUserName()); vo.setUserName(user.getRealName());
ContingencyPlanResponseVo result = contingencyPlanService.planStart(vo,toke); ContingencyPlanResponseVo result = contingencyPlanService.planStart(vo,toke);
return CommonResponseUtil2.success(result); return CommonResponseUtil2.success(result);
} }
......
...@@ -144,7 +144,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -144,7 +144,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
planOperationRecord.setStartUserName(vo.getUserName()); planOperationRecord.setStartUserName(vo.getUserName());
planOperationRecord.setEquipmentCode(equipmentSpecific.getCode()); planOperationRecord.setEquipmentCode(equipmentSpecific.getCode());
planOperationRecord.setEquipmentName(equipmentSpecific.getName()); planOperationRecord.setEquipmentName(equipmentSpecific.getName());
if(ContingencyPlanStatusEnum.SIMULATION_START.getCode().equals(vo.getStatus())){ if(ContingencyPlanStatusEnum.SIMULATION_START.getCode()==vo.getStatus()){
planOperationRecord.setExecutionType(ExecutionTypeEnum.PLANCHECK.getCode()); planOperationRecord.setExecutionType(ExecutionTypeEnum.PLANCHECK.getCode());
}else{ }else{
planOperationRecord.setExecutionType(ExecutionTypeEnum.FIREMANAGEMENT.getCode()); planOperationRecord.setExecutionType(ExecutionTypeEnum.FIREMANAGEMENT.getCode());
...@@ -199,7 +199,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -199,7 +199,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
map.put("startType","自动"); map.put("startType","自动");
} }
map.put("executionType",planOperationRecord.getExecutionType()); map.put("executionType",planOperationRecord.getExecutionType());
map.put("equipmentName",equipment.getName()); map.put("equipmentName",planOperationRecord.getEquipmentName());
map.put("PlanName",planDetail.getPlanName()); map.put("PlanName",planDetail.getPlanName());
} }
return map; return map;
......
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