作者 朱兆平

目的场站为综保区的调拨业务在起始场站进行关锁通知.综保区不通知.

@@ -105,7 +105,10 @@ public class CustomsLockServiceImpl implements CustomsLockService { @@ -105,7 +105,10 @@ public class CustomsLockServiceImpl implements CustomsLockService {
105 String bh_3_in1= "4604601030"; 105 String bh_3_in1= "4604601030";
106 //北货三号卡口进通道2 106 //北货三号卡口进通道2
107 String bh_3_in2= "4604601031"; 107 String bh_3_in2= "4604601031";
108 - 108 + // 西货站出通道1
  109 + String xh_1_out = "4604333312";
  110 + // 西货站出通道2
  111 + String xh_2_out = "4604333322";
109 112
110 String carEndstationList = redisService.get(info.getVename() + "_endstationList"); 113 String carEndstationList = redisService.get(info.getVename() + "_endstationList");
111 if (StringUtils.isNotEmpty(info.getVename()) && StringUtils.isNotEmpty(carEndstationList)){ 114 if (StringUtils.isNotEmpty(info.getVename()) && StringUtils.isNotEmpty(carEndstationList)){
@@ -123,8 +126,14 @@ public class CustomsLockServiceImpl implements CustomsLockService { @@ -123,8 +126,14 @@ public class CustomsLockServiceImpl implements CustomsLockService {
123 } 126 }
124 if ("调拨业务".equals(landBusinessTypeList.getBusinesstype())){ 127 if ("调拨业务".equals(landBusinessTypeList.getBusinesstype())){
125 //申请设计综保区的流转场站,除了综保区不通知,其他场站正常通知 128 //申请设计综保区的流转场站,除了综保区不通知,其他场站正常通知
126 - if (!info.getAreaid().equals(zbqAreaid) && !info.getAreaid().equals(zbqN3Areaid)){  
127 - log.info("[LOCK-CHECK]-调拨业务-含综保区流转业务,北货区域关锁通知,当前通道:{}",landBusinessTypeList.getEndstation()); 129 + /**
  130 + * 从综保区往北货或者西货调拨时,都不进行关锁通知,因为从综保区出来没有关锁施封记录无法到北货解封.没关锁秘钥,采用人工解封
  131 + * 从西货或者北货往综保区调拨的话,进行施封通知,到综保区后不进行解封通知,采用人工解封
  132 + */
  133 +
  134 +
  135 + if (info.getChnlno().equals(bh_3_out) || info.getChnlno().equals(xh_1_out) || info.getChnlno().equals(xh_2_out)){
  136 + log.info("[LOCK-CHECK]-含综保区调拨业务-关锁施封通知,当前通道:{}",info.getChnlno());
128 return true; 137 return true;
129 } 138 }
130 } 139 }
@@ -81,7 +81,6 @@ public class CommandClient { @@ -81,7 +81,6 @@ public class CommandClient {
81 try { 81 try {
82 //ip+端口 82 //ip+端口
83 socket = new Socket("10.50.7.10", 9003); 83 socket = new Socket("10.50.7.10", 9003);
84 - socket.setSoTimeout(5000);  
85 log.info("socket通讯创建连接成功"); 84 log.info("socket通讯创建连接成功");
86 op = socket.getOutputStream(); 85 op = socket.getOutputStream();
87 //xml字节流 86 //xml字节流