Commit bb29f8d1 authored by tangwei's avatar tangwei

修改车辆状态

parent 887a671b
...@@ -94,9 +94,13 @@ public class PowerTransferCompanyResourcesServiceImpl extends BaseService<PowerT ...@@ -94,9 +94,13 @@ public class PowerTransferCompanyResourcesServiceImpl extends BaseService<PowerT
try { try {
if (type == 2) { if (type == 2) {
powerTransferCompanyResources.setStatus(code); powerTransferCompanyResources.setStatus(code);
powerTransferCompanyResources.setRemarks(remarks); powerTransferCompanyResources.setRemarks(remarks);
powerTransferCompanyResourcesMapper.updateById(powerTransferCompanyResources); powerTransferCompanyResourcesMapper.updateById(powerTransferCompanyResources);
if("finished".equals(code)){
List<Object> carStatusInfoDtoList = new ArrayList(); List<Object> carStatusInfoDtoList = new ArrayList();
//修改装备信息 //修改装备信息
CarStatusInfoDto carStatusInfo = new CarStatusInfoDto(); CarStatusInfoDto carStatusInfo = new CarStatusInfoDto();
...@@ -105,6 +109,10 @@ public class PowerTransferCompanyResourcesServiceImpl extends BaseService<PowerT ...@@ -105,6 +109,10 @@ public class PowerTransferCompanyResourcesServiceImpl extends BaseService<PowerT
carStatusInfoDtoList.add(carStatusInfo); carStatusInfoDtoList.add(carStatusInfo);
// 更新所有车辆状态为执勤 // 更新所有车辆状态为执勤
equipFeignClient.updateCarStatus(carStatusInfoDtoList); equipFeignClient.updateCarStatus(carStatusInfoDtoList);
}
} else { } else {
if (FireCarStatusEnum.到场.getCode().equals(code)){ if (FireCarStatusEnum.到场.getCode().equals(code)){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
......
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