Commit bb29f8d1 authored by tangwei's avatar tangwei

修改车辆状态

parent 887a671b
...@@ -94,17 +94,25 @@ public class PowerTransferCompanyResourcesServiceImpl extends BaseService<PowerT ...@@ -94,17 +94,25 @@ 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);
List<Object> carStatusInfoDtoList = new ArrayList();
//修改装备信息 if("finished".equals(code)){
CarStatusInfoDto carStatusInfo = new CarStatusInfoDto(); List<Object> carStatusInfoDtoList = new ArrayList();
carStatusInfo.setSequenceNbr(carId + ""); //修改装备信息
carStatusInfo.setStatus(FireCarStatusEnum.执勤.getCode()); CarStatusInfoDto carStatusInfo = new CarStatusInfoDto();
carStatusInfoDtoList.add(carStatusInfo); carStatusInfo.setSequenceNbr(carId + "");
// 更新所有车辆状态为执勤 carStatusInfo.setStatus(FireCarStatusEnum.执勤.getCode());
equipFeignClient.updateCarStatus(carStatusInfoDtoList); carStatusInfoDtoList.add(carStatusInfo);
// 更新所有车辆状态为执勤
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