| 
...
 | 
...
 | 
@@ -9,6 +9,7 @@ import com.sy.model.LandBusinessTypeList | 
| 
 | 
 | 
 import com.sy.model.LandRoadVe
 | 
| 
 | 
 | 
 import com.sy.response.ResultJson
 | 
| 
 | 
 | 
 import com.sy.service.CommandLogService
 | 
| 
 | 
 | 
 import com.sy.service.EnginCheckService
 | 
| 
 | 
 | 
 import com.sy.service.RedisService
 | 
| 
 | 
 | 
 import com.sy.service.feigin.G2X81FeignService
 | 
| 
 | 
 | 
 import com.sy.service.feigin.StationManageFeignService
 | 
| 
...
 | 
...
 | 
@@ -47,9 +48,19 @@ class G2X81Notice extends Script implements ChannelCheckScript{ | 
| 
 | 
 | 
              */
 | 
| 
 | 
 | 
             GatherInfo info = (GatherInfo) executeParams.get("GatherInfo");
 | 
| 
 | 
 | 
             LandRoadVe ve = (LandRoadVe) executeParams.get("LandRoadVe");
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             ApplicationContext context = getContext();
 | 
| 
 | 
 | 
             G2X81FeignService g2X81FeignService = context.getBean(G2X81FeignService.class);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             EnginCheckService enginCheckService = context.getBean(EnginCheckService.class);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             /**
 | 
| 
 | 
 | 
              * 写入本地验放通过信息
 | 
| 
 | 
 | 
              */
 | 
| 
 | 
 | 
             enginCheckService.commandlog(info,true,"双验放:本地验放通过:等待金二验放指令",executeParams);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             if (info!=null){
 | 
| 
 | 
 | 
                 //缓存X21 的 seqn 需要作为异步X82回执验放时用到的信息
 | 
| 
 | 
 | 
                 cacheWithSeqno(info);
 | 
| 
...
 | 
...
 | 
@@ -92,6 +103,8 @@ class G2X81Notice extends Script implements ChannelCheckScript{ | 
| 
 | 
 | 
         commandLogService.commandlog(info,result,reason,landBusinessTypeList,null,0.0,0.0,0.0,0.0);
 | 
| 
 | 
 | 
     }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     String x22TransToX81(GatherInfo gatherInfo,LandRoadVe ve){
 | 
| 
 | 
 | 
         log.info("[SEQN]-处理X21报文:{}",gatherInfo.getSeqno());
 | 
| 
 | 
 | 
         //当前时间作为X81申报时间
 | 
| 
...
 | 
...
 | 
@@ -115,15 +128,15 @@ class G2X81Notice extends Script implements ChannelCheckScript{ | 
| 
 | 
 | 
                 JSONObject yard = chanel.getJSONObject("yard");
 | 
| 
 | 
 | 
                 String stationG2 = yard.getString("stationIdG2");
 | 
| 
 | 
 | 
                 log.info("[G2-YARD]-{}",stationG2);
 | 
| 
 | 
 | 
                 log.info("[VE-RFID-NO]:车辆电子车牌号:{}",ve.getVeCustomsNo());
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                 log.info("[G2-TEMPLATE]-{}",G2X81Template.template)
 | 
| 
 | 
 | 
                 String x81XML= G2X81Template.template.replace("#{ie_flag}",gatherInfo.getIetype())
 | 
| 
 | 
 | 
                         .replace("#{area_id}",stationG2)
 | 
| 
 | 
 | 
                         .replace("#{chnl_no}",channelG2)
 | 
| 
 | 
 | 
                         .replace("#{session_id}",gatherInfo.getSeqno())
 | 
| 
 | 
 | 
                         .replace("#{ve_license_no}",gatherInfo.getVename())
 | 
| 
 | 
 | 
                         .replace("#{gross_wt}",gatherInfo.getGrosswt().toString())
 | 
| 
 | 
 | 
                         .replace("#{rfid_id}",gatherInfo.getCarecno())
 | 
| 
 | 
 | 
                         .replace("#{rfid_id}",ve.getVeCustomsNo())
 | 
| 
 | 
 | 
                         .replace("#{ve_wt}",ve.getSelfWt())
 | 
| 
 | 
 | 
                         .replace("#{operate_time}",startTime);
 | 
| 
 | 
 | 
                 log.info("[X21-TO-X81]-{}",x81XML);
 | 
...
 | 
...
 | 
 |