Commit 60157987 authored by 曹军's avatar 曹军

上传定时任务,优化代码,添加默认车牌颜色

parent 0663d5e9
......@@ -83,7 +83,7 @@ public class TransportVehicleInfoService {
// 查询车牌颜色
InAndOutDateUrl inAndOutDateUrl = inAndOutDateUrlMapper.selectInAndOutDateUrlByNo(transportVehicleInfoUrl.getNumberPlate());
Integer color = 5;
Integer color = 1;
if (Objects.nonNull(inAndOutDateUrl)) {
color = inAndOutDateUrl.getVehicleColorIndex();
}
......
......@@ -94,9 +94,9 @@ public class BeanConverter {
}
// 车牌颜色 0-蓝牌,1-黄牌,2-白牌,3-黑牌,4-新能源绿牌,5-其他,6-新能源绿黄牌
if (Objects.isNull(rawColor)) {
info.setLicensePlateColor("5");
info.setLicensePlateColor("0");
} else {
String color = "5";
String color = "0";
if (rawColor == 1) {
color = "0";
}
......
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