|
@@ -117,10 +117,17 @@ public class KwfTruckService {
|
|
|
String value = getDictValue(DictTypeEnum.COLOR_TYPE.getType(), StringUtils.objectStr(truck.getColor()));
|
|
String value = getDictValue(DictTypeEnum.COLOR_TYPE.getType(), StringUtils.objectStr(truck.getColor()));
|
|
|
truckDetailVo.setColorName(value);
|
|
truckDetailVo.setColorName(value);
|
|
|
|
|
|
|
|
|
|
+ //数据字典
|
|
|
|
|
+ List<String> dictKey = new ArrayList<>();
|
|
|
|
|
+ dictKey.add(truck.getColor() != null ? DictTypeEnum.COLOR_TYPE.getType() + Global.POUND + truck.getColor() : null);
|
|
|
|
|
+ Map<String, SysDictResDto> dicts = this.dict(dictKey);
|
|
|
|
|
+ SysDictResDto color = dicts.get(DictTypeEnum.COLOR_TYPE.getType() + Global.POUND + truck.getColor());
|
|
|
|
|
+
|
|
|
//车队班组
|
|
//车队班组
|
|
|
KwfFleet fleet = this.findByFleetTruck(truckId, LoginUserHolder.getEntId());
|
|
KwfFleet fleet = this.findByFleetTruck(truckId, LoginUserHolder.getEntId());
|
|
|
truckDetailVo.setFleetId(fleet != null ? fleet.getId() : null);
|
|
truckDetailVo.setFleetId(fleet != null ? fleet.getId() : null);
|
|
|
truckDetailVo.setFleetName(fleet != null ? fleet.getName() : null);
|
|
truckDetailVo.setFleetName(fleet != null ? fleet.getName() : null);
|
|
|
|
|
+ truckDetailVo.setColorName(color != null ? color.getLabel() : null);
|
|
|
return truckDetailVo;
|
|
return truckDetailVo;
|
|
|
}
|
|
}
|
|
|
return null;
|
|
return null;
|
|
@@ -239,9 +246,9 @@ public class KwfTruckService {
|
|
|
createBys.add(Long.parseLong(truck.getCreateBy()));
|
|
createBys.add(Long.parseLong(truck.getCreateBy()));
|
|
|
entIds.add(Long.parseLong(truck.getEntId()));
|
|
entIds.add(Long.parseLong(truck.getEntId()));
|
|
|
dictKey.add(truck.getColor() != null ? DictTypeEnum.COLOR_TYPE.getType() + pound + truck.getColor() : null);
|
|
dictKey.add(truck.getColor() != null ? DictTypeEnum.COLOR_TYPE.getType() + pound + truck.getColor() : null);
|
|
|
- dictKey.add(truck.getColor() != null ? DictTypeEnum.TRUCK_TYPE.getType() + pound + truck.getType() : null);
|
|
|
|
|
- dictKey.add(truck.getColor() != null ? DictTypeEnum.USE_TYPE.getType() + pound + truck.getUseType() : null);
|
|
|
|
|
- dictKey.add(truck.getColor() != null ? DictTypeEnum.ENERGY_TYPE.getType() + pound + truck.getEnergyType() : null);
|
|
|
|
|
|
|
+ dictKey.add(truck.getType() != null ? DictTypeEnum.TRUCK_TYPE.getType() + pound + truck.getType() : null);
|
|
|
|
|
+ dictKey.add(truck.getUseType() != null ? DictTypeEnum.USE_TYPE.getType() + pound + truck.getUseType() : null);
|
|
|
|
|
+ dictKey.add(truck.getEnergyType() != null ? DictTypeEnum.ENERGY_TYPE.getType() + pound + truck.getEnergyType() : null);
|
|
|
}
|
|
}
|
|
|
//用户数据集
|
|
//用户数据集
|
|
|
createBys = createBys.stream().distinct().collect(Collectors.toList());
|
|
createBys = createBys.stream().distinct().collect(Collectors.toList());
|