作者 朱兆平

回执解析优化

@@ -28,48 +28,6 @@ public class ALLOCATEARRIVALServiceImp extends NmmsBaseService implements ALLOCA @@ -28,48 +28,6 @@ public class ALLOCATEARRIVALServiceImp extends NmmsBaseService implements ALLOCA
28 28
29 29
30 @Override 30 @Override
31 - public int insertRecept(CustomReception customReception) {  
32 - ShareServiceImp shareServiceImp = new ShareServiceImp();  
33 -  
34 - // 发送日志 插入  
35 - CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();  
36 -  
37 - // 主单号  
38 - String awbA = customReception.getWayBillMaster();  
39 - //回执内容  
40 - String reception = customReception.getResponseText();  
41 - String flightDateStr = customReception.getFlightDate();  
42 - if (!StringUtils.isEmpty(flightDateStr)) {  
43 - Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);  
44 -  
45 -  
46 - if (awbA!=null && awbA.length()>0){  
47 - StringBuffer stringBuffer = new StringBuffer(awbA);  
48 - stringBuffer.insert(3,"-");  
49 - awbA = stringBuffer.toString();  
50 -  
51 -  
52 - }  
53 -  
54 -  
55 - // 判断航班号 航班日期 是否为空  
56 - if (flightDate != null && customReception.getFlightNo() != null){  
57 - //处理主单格式,将海关回执的主单号58019316861,变为580-19316861  
58 - if (awbA!=null && awbA.length()>0){  
59 -  
60 - }  
61 - }else {  
62 -  
63 - return shareServiceImp.share("MT3202", customReception);  
64 - }  
65 -  
66 - }  
67 -  
68 - //未进入主分单解析 返回0 失败  
69 - return 0;  
70 - }  
71 -  
72 - @Override  
73 public int master() { 31 public int master() {
74 //设置主单回执、航班号、航班日期 32 //设置主单回执、航班号、航班日期
75 ALLOCATEARRIVAL allocatearrival = new ALLOCATEARRIVAL(); 33 ALLOCATEARRIVAL allocatearrival = new ALLOCATEARRIVAL();
@@ -31,15 +31,6 @@ public class ARRIVEDMASTERServiceImp extends NmmsBaseService implements ARRIVEDM @@ -31,15 +31,6 @@ public class ARRIVEDMASTERServiceImp extends NmmsBaseService implements ARRIVEDM
31 ARRIVEDSECONDARYMapper arrivedsecondaryMapper; 31 ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
32 32
33 33
34 - @Override  
35 - // 货物接收运抵主分单  
36 - public int insertRecept(CustomReception customReception) {  
37 -  
38 - return super.insertRecept(customReception);  
39 -  
40 - }  
41 -  
42 -  
43 /** 34 /**
44 * 入库主单回执信息 35 * 入库主单回执信息
45 * @return 成功返回1,失败返回0。 36 * @return 成功返回1,失败返回0。
@@ -43,13 +43,6 @@ public class CoustomAnalysisServiceImp extends NmmsBaseService implements Cousto @@ -43,13 +43,6 @@ public class CoustomAnalysisServiceImp extends NmmsBaseService implements Cousto
43 } 43 }
44 } 44 }
45 45
46 -  
47 -  
48 - @Override  
49 - public int insertRecept(CustomReception customReception){  
50 - return super.insertRecept(customReception);  
51 - }  
52 -  
53 @Override 46 @Override
54 public int second() { 47 public int second() {
55 // 设置分单回执 48 // 设置分单回执
@@ -25,12 +25,6 @@ public class DEPARTURESLOADINGServiceImp extends NmmsBaseService implements DEPA @@ -25,12 +25,6 @@ public class DEPARTURESLOADINGServiceImp extends NmmsBaseService implements DEPA
25 @Autowired 25 @Autowired
26 DEPARTURESLOADINGMapper departuresloadingMapper; 26 DEPARTURESLOADINGMapper departuresloadingMapper;
27 27
28 - @Override  
29 - public int insertRecept(CustomReception customReception) {  
30 - return super.insertRecept(customReception);  
31 -  
32 - }  
33 -  
34 /** 28 /**
35 * 入库分单回执信息 29 * 入库分单回执信息
36 * @return 成功返回1,失败返回0。 30 * @return 成功返回1,失败返回0。
@@ -28,12 +28,6 @@ public class INPORTALLOCATEServiceImp extends NmmsBaseService implements INPORT @@ -28,12 +28,6 @@ public class INPORTALLOCATEServiceImp extends NmmsBaseService implements INPORT
28 @Autowired 28 @Autowired
29 INPORTALLOCATEMapper inportallocateMapper; 29 INPORTALLOCATEMapper inportallocateMapper;
30 30
31 -  
32 - @Override  
33 - public int insertRecept(CustomReception customReception) {  
34 - return super.insertRecept(customReception);  
35 - }  
36 -  
37 @Override 31 @Override
38 public int master() { 32 public int master() {
39 INPORTALLOCATE inportallocate = new INPORTALLOCATE(); 33 INPORTALLOCATE inportallocate = new INPORTALLOCATE();
@@ -29,13 +29,6 @@ public class PREPAREMASTERServiceImp extends NmmsBaseService implements PREPAREM @@ -29,13 +29,6 @@ public class PREPAREMASTERServiceImp extends NmmsBaseService implements PREPAREM
29 @Autowired 29 @Autowired
30 PREPARESECONDARYMapper preparesecondaryMapper; 30 PREPARESECONDARYMapper preparesecondaryMapper;
31 31
32 - @Override  
33 - // 货物接收运抵主分单  
34 - public int insertRecept(CustomReception customReception) {  
35 -  
36 - return super.insertRecept(customReception);  
37 - }  
38 -  
39 /** 32 /**
40 * 入库分单回执信息 33 * 入库分单回执信息
41 * @return 成功返回1,失败返回0。 34 * @return 成功返回1,失败返回0。
@@ -32,12 +32,6 @@ public class TALLYMASTERServiceImp extends NmmsBaseService implements TALLYMASTE @@ -32,12 +32,6 @@ public class TALLYMASTERServiceImp extends NmmsBaseService implements TALLYMASTE
32 @Autowired 32 @Autowired
33 TALLYSECONDARYMapper tallysecondaryMapper; 33 TALLYSECONDARYMapper tallysecondaryMapper;
34 34
35 - @Override  
36 - // 进出港理货  
37 - public int insertRecept(CustomReception customReception) {  
38 - return super.insertRecept(customReception);  
39 - }  
40 -  
41 /** 35 /**
42 * 入库主单回执信息 36 * 入库主单回执信息
43 * @return 成功返回1,失败返回0。 37 * @return 成功返回1,失败返回0。