|
|
package com.sy.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sy.mapper.RuleChannelConfigDao;
|
|
|
import com.sy.model.*;
|
|
|
import com.sy.service.*;
|
...
|
...
|
@@ -136,22 +137,38 @@ public class EnginCheckServiceImpl implements EnginCheckService { |
|
|
executeParams.put("selfWt", 0.0);
|
|
|
executeParams.put("goodsWt", 0.0);
|
|
|
|
|
|
//适应高清车牌采集,反向填充二维码 gatherInfo中没有二维码信息的情况
|
|
|
/**
|
|
|
* 适应高清车牌采集,反向填充二维码 gatherInfo中没有二维码信息的情况
|
|
|
* 需要注意排除一些行政车辆,没有申请信息等问题
|
|
|
*/
|
|
|
String carBarcode = "";
|
|
|
if (StringUtils.isEmpty(gatherInfo.getBarcode())) {
|
|
|
//从申请缓存获取二维码信息
|
|
|
String landBusnessInfoJsonStr = redisService.get(gatherInfo.getVename());
|
|
|
JSONArray array = JSONArray.parseArray(landBusnessInfoJsonStr);
|
|
|
String carBarcode = array.getJSONObject(0).getString("barcode");
|
|
|
if (StringUtils.isEmpty(carBarcode)){
|
|
|
log.error("[BARCODE-RESET-ERR]-从流转申请信息反向填充车辆{}二维码失败",gatherInfo.getVename());
|
|
|
}else {
|
|
|
gatherInfo.setBarcode(carBarcode);
|
|
|
log.info("[BARCODE-RESET]-车牌{}流转申请二维码重置为{}",gatherInfo.getVename(),carBarcode);
|
|
|
}
|
|
|
}
|
|
|
if (StringUtils.isEmpty(landBusnessInfoJsonStr)) {
|
|
|
log.error("[BARCODE-RESET-ERR]-未找到车辆申报信息");
|
|
|
CommandClient.Client(gatherInfo, "未找到车辆流转申请信息");
|
|
|
}else{
|
|
|
JSONArray array = JSONArray.parseArray(landBusnessInfoJsonStr);
|
|
|
if (array!=null && !array.isEmpty()){
|
|
|
JSONObject landBusness= array.getJSONObject(0);
|
|
|
if (landBusness!=null){
|
|
|
if(landBusness.containsKey("barcode")){
|
|
|
carBarcode = landBusness.getString("barcode");
|
|
|
if (StringUtils.isEmpty(carBarcode)){
|
|
|
log.error("[BARCODE-RESET-ERR]-从流转申请信息反向填充车辆{}二维码失败",gatherInfo.getVename());
|
|
|
}else {
|
|
|
gatherInfo.setBarcode(carBarcode);
|
|
|
log.info("[BARCODE-RESET]-车牌{}流转申请二维码重置为{}",gatherInfo.getVename(),carBarcode);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//车辆备案信息
|
|
|
LandRoadVe ve = veService.selectByFrameNo(gatherInfo.getVename());
|
...
|
...
|
@@ -242,7 +259,7 @@ public class EnginCheckServiceImpl implements EnginCheckService { |
|
|
redisService.incr("kako-total",1);
|
|
|
} else {
|
|
|
CommandClient.Client(info, reason);
|
|
|
log.info("=============>>>>>>>>重量异常报文发送成功<<<<<<<<<==============");
|
|
|
log.info("=============>>>>>>>>放行异常报文发送成功<<<<<<<<<==============");
|
|
|
}
|
|
|
commandlog(info,check,reason,executeParams);
|
|
|
}
|
...
|
...
|
|