正在显示
7 个修改的文件
包含
547 行增加
和
1 行删除
META-INF/MANIFEST.MF
0 → 100644
@@ -243,7 +243,7 @@ public class SecurityDeclarationController { | @@ -243,7 +243,7 @@ public class SecurityDeclarationController { | ||
243 | sdVo.setCarrier(wbm.getCarrier()); | 243 | sdVo.setCarrier(wbm.getCarrier()); |
244 | sdVo.setTotalpiece(wbm.getTotalpiece()); | 244 | sdVo.setTotalpiece(wbm.getTotalpiece()); |
245 | sdVo.setTotalweight(wbm.getTotalweight()); | 245 | sdVo.setTotalweight(wbm.getTotalweight()); |
246 | - | 246 | + sdVo.setDestinationstation(wbm.getDestinationstation()); |
247 | new XmlBuildTask(securityDeclarationService.sendNDLRXml(sdVo), ndlrPath).perform(); | 247 | new XmlBuildTask(securityDeclarationService.sendNDLRXml(sdVo), ndlrPath).perform(); |
248 | 248 | ||
249 | model.setStatus(200); | 249 | model.setStatus(200); |
@@ -111,6 +111,7 @@ public class SecurityDeclarationService extends BasicService<SecurityDeclaration | @@ -111,6 +111,7 @@ public class SecurityDeclarationService extends BasicService<SecurityDeclaration | ||
111 | ManifestDesXml md = new ManifestDesXml(); | 111 | ManifestDesXml md = new ManifestDesXml(); |
112 | md.setId(sdVo.getDestinationstation()); | 112 | md.setId(sdVo.getDestinationstation()); |
113 | dec.setDes(md); | 113 | dec.setDes(md); |
114 | +// +"/"+sdVo.getDestinationstation() | ||
114 | 115 | ||
115 | // 航班号-航班日期 | 116 | // 航班号-航班日期 |
116 | ManifestBorderTransportMeansXml mt = new ManifestBorderTransportMeansXml(); | 117 | ManifestBorderTransportMeansXml mt = new ManifestBorderTransportMeansXml(); |
1 | +package com.agent.vo.agent; | ||
2 | + | ||
3 | +/** | ||
4 | + * @Auther: shenhl | ||
5 | + * @Date: 2019/4/17 14:21 | ||
6 | + */ | ||
7 | + | ||
8 | +import javax.persistence.Column; | ||
9 | +import javax.persistence.Entity; | ||
10 | +import javax.persistence.Table; | ||
11 | + | ||
12 | +/** | ||
13 | + * 货主信息表 | ||
14 | + */ | ||
15 | +public class HZSHIPPERINFORMATIONVo { | ||
16 | + | ||
17 | + /** | ||
18 | + * ID | ||
19 | + */ | ||
20 | +// @Id | ||
21 | + private Long id; | ||
22 | + | ||
23 | + /** | ||
24 | + * 简称 | ||
25 | + */ | ||
26 | + private String forShort; | ||
27 | + | ||
28 | + /** | ||
29 | + * 全称 | ||
30 | + */ | ||
31 | + private String fullName; | ||
32 | + | ||
33 | + /** | ||
34 | + * 货主类型 1发货人 2订舱代理 3操作代理 | ||
35 | + */ | ||
36 | + private String theShipperType; | ||
37 | + | ||
38 | + /** | ||
39 | + * 联系人 | ||
40 | + */ | ||
41 | + private String contacts; | ||
42 | + | ||
43 | + /** | ||
44 | + * 电话 | ||
45 | + */ | ||
46 | + private String phone; | ||
47 | + | ||
48 | + /** | ||
49 | + * 删除标记 1未删除 2删除 | ||
50 | + */ | ||
51 | + private String deleteFlag; | ||
52 | + | ||
53 | + public Long getId() { | ||
54 | + return id; | ||
55 | + } | ||
56 | + | ||
57 | + public void setId(Long id) { | ||
58 | + this.id = id; | ||
59 | + } | ||
60 | + | ||
61 | + @Column(name = "FOR_SHORT") | ||
62 | + public String getForShort() { | ||
63 | + return forShort; | ||
64 | + } | ||
65 | + | ||
66 | + public void setForShort(String forShort) { | ||
67 | + this.forShort = forShort; | ||
68 | + } | ||
69 | + @Column(name = "FULL_NAME") | ||
70 | + public String getFullName() { | ||
71 | + return fullName; | ||
72 | + } | ||
73 | + | ||
74 | + public void setFullName(String fullName) { | ||
75 | + this.fullName = fullName; | ||
76 | + } | ||
77 | + @Column(name = "THE_SHIPPER_TYPE") | ||
78 | + public String getTheShipperType() { | ||
79 | + return theShipperType; | ||
80 | + } | ||
81 | + | ||
82 | + public void setTheShipperType(String theShipperType) { | ||
83 | + this.theShipperType = theShipperType; | ||
84 | + } | ||
85 | + @Column(name = "CONTACTS") | ||
86 | + public String getContacts() { | ||
87 | + return contacts; | ||
88 | + } | ||
89 | + | ||
90 | + public void setContacts(String contacts) { | ||
91 | + this.contacts = contacts; | ||
92 | + } | ||
93 | + @Column(name = "PHONE") | ||
94 | + public String getPhone() { | ||
95 | + return phone; | ||
96 | + } | ||
97 | + | ||
98 | + public void setPhone(String phone) { | ||
99 | + this.phone = phone; | ||
100 | + } | ||
101 | + @Column(name = "DELETE_FLAG") | ||
102 | + public String getDeleteFlag() { | ||
103 | + return deleteFlag; | ||
104 | + } | ||
105 | + | ||
106 | + public void setDeleteFlag(String deleteFlag) { | ||
107 | + this.deleteFlag = deleteFlag; | ||
108 | + } | ||
109 | +} |
src/main/java/com/agent/vo/agent/SDVo.java
0 → 100644
1 | +package com.agent.vo.agent; | ||
2 | + | ||
3 | +/** | ||
4 | + * @Auther: shenhl | ||
5 | + * @Date: 2019/4/28 11:22 | ||
6 | + */ | ||
7 | + | ||
8 | +import java.util.Date; | ||
9 | + | ||
10 | +/** | ||
11 | + * 生成报文 安检申报Vo | ||
12 | + */ | ||
13 | +public class SDVo { | ||
14 | + | ||
15 | + /** | ||
16 | + * 运单号 | ||
17 | + */ | ||
18 | + private String sd_waybill; | ||
19 | + | ||
20 | + /** | ||
21 | + * 货物托运人名称 | ||
22 | + */ | ||
23 | + private String sd_cargo_shipper_name; | ||
24 | + | ||
25 | + /** | ||
26 | + * 货物代理人名称 | ||
27 | + */ | ||
28 | + private String sd_cargo_agent_name; | ||
29 | + | ||
30 | + /** | ||
31 | + * 航协编号 | ||
32 | + */ | ||
33 | + private String sd_iata_number; | ||
34 | + | ||
35 | + /** | ||
36 | + * 运输条件鉴定书 | ||
37 | + */ | ||
38 | + private String sd_transport_certificate; | ||
39 | + | ||
40 | + /** | ||
41 | + * 航空公司同意运输证明 | ||
42 | + */ | ||
43 | + private String sd_transportation_prove; | ||
44 | + | ||
45 | + /** | ||
46 | + * 航班号 | ||
47 | + */ | ||
48 | + private String flightno; | ||
49 | + /** | ||
50 | + * 航班日期 | ||
51 | + */ | ||
52 | + private Date flightdate; | ||
53 | + | ||
54 | + /** | ||
55 | + * 目的地 | ||
56 | + */ | ||
57 | + private String destinationstation; | ||
58 | + | ||
59 | + /** | ||
60 | + * 总重量 | ||
61 | + */ | ||
62 | + private String totalweight; | ||
63 | + /** | ||
64 | + * 总件数 | ||
65 | + */ | ||
66 | + private String totalpiece; | ||
67 | + | ||
68 | + /** | ||
69 | + * 承运人 | ||
70 | + */ | ||
71 | + private String carrier; | ||
72 | + | ||
73 | + /** | ||
74 | + * 货物品名 | ||
75 | + */ | ||
76 | + private String sd_cargo_name; | ||
77 | + | ||
78 | + /** | ||
79 | + * 货物性质(类型) 1普通货物 2特种货物 3 危险品 4航空快件 | ||
80 | + */ | ||
81 | + private String sd_cargo_type; | ||
82 | + | ||
83 | + public String getSd_cargo_name() { | ||
84 | + return sd_cargo_name; | ||
85 | + } | ||
86 | + | ||
87 | + public void setSd_cargo_name(String sd_cargo_name) { | ||
88 | + this.sd_cargo_name = sd_cargo_name; | ||
89 | + } | ||
90 | + | ||
91 | + public String getSd_cargo_type() { | ||
92 | + return sd_cargo_type; | ||
93 | + } | ||
94 | + | ||
95 | + public void setSd_cargo_type(String sd_cargo_type) { | ||
96 | + this.sd_cargo_type = sd_cargo_type; | ||
97 | + } | ||
98 | + | ||
99 | + public String getSd_waybill() { | ||
100 | + return sd_waybill; | ||
101 | + } | ||
102 | + | ||
103 | + public void setSd_waybill(String sd_waybill) { | ||
104 | + this.sd_waybill = sd_waybill; | ||
105 | + } | ||
106 | + | ||
107 | + public String getSd_cargo_shipper_name() { | ||
108 | + return sd_cargo_shipper_name; | ||
109 | + } | ||
110 | + | ||
111 | + public void setSd_cargo_shipper_name(String sd_cargo_shipper_name) { | ||
112 | + this.sd_cargo_shipper_name = sd_cargo_shipper_name; | ||
113 | + } | ||
114 | + | ||
115 | + public String getSd_cargo_agent_name() { | ||
116 | + return sd_cargo_agent_name; | ||
117 | + } | ||
118 | + | ||
119 | + public void setSd_cargo_agent_name(String sd_cargo_agent_name) { | ||
120 | + this.sd_cargo_agent_name = sd_cargo_agent_name; | ||
121 | + } | ||
122 | + | ||
123 | + public String getSd_iata_number() { | ||
124 | + return sd_iata_number; | ||
125 | + } | ||
126 | + | ||
127 | + public void setSd_iata_number(String sd_iata_number) { | ||
128 | + this.sd_iata_number = sd_iata_number; | ||
129 | + } | ||
130 | + | ||
131 | + public String getSd_transport_certificate() { | ||
132 | + return sd_transport_certificate; | ||
133 | + } | ||
134 | + | ||
135 | + public void setSd_transport_certificate(String sd_transport_certificate) { | ||
136 | + this.sd_transport_certificate = sd_transport_certificate; | ||
137 | + } | ||
138 | + | ||
139 | + public String getSd_transportation_prove() { | ||
140 | + return sd_transportation_prove; | ||
141 | + } | ||
142 | + | ||
143 | + public void setSd_transportation_prove(String sd_transportation_prove) { | ||
144 | + this.sd_transportation_prove = sd_transportation_prove; | ||
145 | + } | ||
146 | + | ||
147 | + public String getFlightno() { | ||
148 | + return flightno; | ||
149 | + } | ||
150 | + | ||
151 | + public void setFlightno(String flightno) { | ||
152 | + this.flightno = flightno; | ||
153 | + } | ||
154 | + | ||
155 | + public Date getFlightdate() { | ||
156 | + return flightdate; | ||
157 | + } | ||
158 | + | ||
159 | + public void setFlightdate(Date flightdate) { | ||
160 | + this.flightdate = flightdate; | ||
161 | + } | ||
162 | + | ||
163 | + public String getDestinationstation() { | ||
164 | + return destinationstation; | ||
165 | + } | ||
166 | + | ||
167 | + public void setDestinationstation(String destinationstation) { | ||
168 | + this.destinationstation = destinationstation; | ||
169 | + } | ||
170 | + | ||
171 | + public String getTotalweight() { | ||
172 | + return totalweight; | ||
173 | + } | ||
174 | + | ||
175 | + public void setTotalweight(String totalweight) { | ||
176 | + this.totalweight = totalweight; | ||
177 | + } | ||
178 | + | ||
179 | + public String getTotalpiece() { | ||
180 | + return totalpiece; | ||
181 | + } | ||
182 | + | ||
183 | + public void setTotalpiece(String totalpiece) { | ||
184 | + this.totalpiece = totalpiece; | ||
185 | + } | ||
186 | + | ||
187 | + public String getCarrier() { | ||
188 | + return carrier; | ||
189 | + } | ||
190 | + | ||
191 | + public void setCarrier(String carrier) { | ||
192 | + this.carrier = carrier; | ||
193 | + } | ||
194 | +} |
1 | +package com.agent.vo.agent; | ||
2 | + | ||
3 | +/** | ||
4 | + * @Auther: shenhl | ||
5 | + * @Date: 2019/4/28 09:43 | ||
6 | + */ | ||
7 | +public class SecurityDeclarationVo { | ||
8 | + /** | ||
9 | + * id | ||
10 | + */ | ||
11 | + private Long id; | ||
12 | + | ||
13 | + /** | ||
14 | + * 运单号 | ||
15 | + */ | ||
16 | + private String sd_waybill; | ||
17 | + | ||
18 | + /** | ||
19 | + * 货物托运人名称 | ||
20 | + */ | ||
21 | + private String sd_cargo_shipper_name; | ||
22 | + | ||
23 | + /** | ||
24 | + * 货物代理人名称 | ||
25 | + */ | ||
26 | + private String sd_cargo_agent_name; | ||
27 | + | ||
28 | + /** | ||
29 | + * 航协编号 | ||
30 | + */ | ||
31 | + private String sd_iata_number; | ||
32 | + | ||
33 | + /** | ||
34 | + * 运输条件鉴定书 | ||
35 | + */ | ||
36 | + private String sd_transport_certificate; | ||
37 | + | ||
38 | + /** | ||
39 | + * 航空公司同意运输证明 | ||
40 | + */ | ||
41 | + private String sd_transportation_prove; | ||
42 | + | ||
43 | + /** | ||
44 | + * 用户id | ||
45 | + * @return | ||
46 | + */ | ||
47 | + private Long sd_user_id; | ||
48 | + | ||
49 | + /** | ||
50 | + * 状态 1已发送 2未发送 | ||
51 | + * @return | ||
52 | + */ | ||
53 | + private String sd_static; | ||
54 | + | ||
55 | + public Long getId() { | ||
56 | + return id; | ||
57 | + } | ||
58 | + | ||
59 | + public void setId(Long id) { | ||
60 | + this.id = id; | ||
61 | + } | ||
62 | + | ||
63 | + public String getSd_waybill() { | ||
64 | + return sd_waybill; | ||
65 | + } | ||
66 | + | ||
67 | + public void setSd_waybill(String sd_waybill) { | ||
68 | + this.sd_waybill = sd_waybill; | ||
69 | + } | ||
70 | + | ||
71 | + public String getSd_cargo_shipper_name() { | ||
72 | + return sd_cargo_shipper_name; | ||
73 | + } | ||
74 | + | ||
75 | + public void setSd_cargo_shipper_name(String sd_cargo_shipper_name) { | ||
76 | + this.sd_cargo_shipper_name = sd_cargo_shipper_name; | ||
77 | + } | ||
78 | + | ||
79 | + public String getSd_cargo_agent_name() { | ||
80 | + return sd_cargo_agent_name; | ||
81 | + } | ||
82 | + | ||
83 | + public void setSd_cargo_agent_name(String sd_cargo_agent_name) { | ||
84 | + this.sd_cargo_agent_name = sd_cargo_agent_name; | ||
85 | + } | ||
86 | + | ||
87 | + public String getSd_iata_number() { | ||
88 | + return sd_iata_number; | ||
89 | + } | ||
90 | + | ||
91 | + public void setSd_iata_number(String sd_iata_number) { | ||
92 | + this.sd_iata_number = sd_iata_number; | ||
93 | + } | ||
94 | + | ||
95 | + public String getSd_transport_certificate() { | ||
96 | + return sd_transport_certificate; | ||
97 | + } | ||
98 | + | ||
99 | + public void setSd_transport_certificate(String sd_transport_certificate) { | ||
100 | + this.sd_transport_certificate = sd_transport_certificate; | ||
101 | + } | ||
102 | + | ||
103 | + public String getSd_transportation_prove() { | ||
104 | + return sd_transportation_prove; | ||
105 | + } | ||
106 | + | ||
107 | + public void setSd_transportation_prove(String sd_transportation_prove) { | ||
108 | + this.sd_transportation_prove = sd_transportation_prove; | ||
109 | + } | ||
110 | + | ||
111 | + public Long getSd_user_id() { | ||
112 | + return sd_user_id; | ||
113 | + } | ||
114 | + | ||
115 | + public void setSd_user_id(Long sd_user_id) { | ||
116 | + this.sd_user_id = sd_user_id; | ||
117 | + } | ||
118 | + | ||
119 | + public String getSd_static() { | ||
120 | + return sd_static; | ||
121 | + } | ||
122 | + | ||
123 | + public void setSd_static(String sd_static) { | ||
124 | + this.sd_static = sd_static; | ||
125 | + } | ||
126 | +} |
1 | +package com.agent.xml.secuity; | ||
2 | + | ||
3 | +import javax.xml.bind.annotation.*; | ||
4 | + | ||
5 | +/** | ||
6 | + * @Auther: shenhl | ||
7 | + * @Date: 2019/4/28 14:43 | ||
8 | + */ | ||
9 | +@XmlType | ||
10 | +@XmlAccessorType(XmlAccessType.FIELD) | ||
11 | +@XmlRootElement(name = "SD") | ||
12 | +public class SecurityDeclarationXml { | ||
13 | + | ||
14 | + //航协编号 | ||
15 | + @XmlElement(name = "IataNo", required = false) | ||
16 | + private String iataNo; | ||
17 | + //航空货物性质 1普通货物 2特种货物 3危险品 4航空快件 | ||
18 | + @XmlElement(name = "CargoType", required = false) | ||
19 | + private String cargoType; | ||
20 | + //航空货物托运人名称 | ||
21 | + @XmlElement(name = "ShipperName", required = false) | ||
22 | + private String shipperName; | ||
23 | + //航空货运代理人名称 | ||
24 | + @XmlElement(name = "CargoAgentName", required = false) | ||
25 | + private String cargoAgentName; | ||
26 | + //货物品名 | ||
27 | + @XmlElement(name = "CargoName", required = false) | ||
28 | + private String cargoName; | ||
29 | + //公斤 | ||
30 | + @XmlElement(name = "Weight", required = false) | ||
31 | + private String weight; | ||
32 | + //件数 | ||
33 | + @XmlElement(name = "Piece", required = false) | ||
34 | + private String piece; | ||
35 | + //运输条件鉴定书 | ||
36 | + @XmlElement(name = "TransportCertificate", required = false) | ||
37 | + private String transportCertificate; | ||
38 | + //航空公司同意运输证明 | ||
39 | + @XmlElement(name = "TransportationProve", required = false) | ||
40 | + private String transportationProve; | ||
41 | + | ||
42 | + | ||
43 | + public String getIataNo() { | ||
44 | + return iataNo; | ||
45 | + } | ||
46 | + | ||
47 | + public void setIataNo(String iataNo) { | ||
48 | + this.iataNo = iataNo; | ||
49 | + } | ||
50 | + | ||
51 | + public String getCargoType() { | ||
52 | + return cargoType; | ||
53 | + } | ||
54 | + | ||
55 | + public void setCargoType(String cargoType) { | ||
56 | + this.cargoType = cargoType; | ||
57 | + } | ||
58 | + | ||
59 | + public String getShipperName() { | ||
60 | + return shipperName; | ||
61 | + } | ||
62 | + | ||
63 | + public void setShipperName(String shipperName) { | ||
64 | + this.shipperName = shipperName; | ||
65 | + } | ||
66 | + | ||
67 | + public String getCargoAgentName() { | ||
68 | + return cargoAgentName; | ||
69 | + } | ||
70 | + | ||
71 | + public void setCargoAgentName(String cargoAgentName) { | ||
72 | + this.cargoAgentName = cargoAgentName; | ||
73 | + } | ||
74 | + | ||
75 | + public String getCargoName() { | ||
76 | + return cargoName; | ||
77 | + } | ||
78 | + | ||
79 | + public void setCargoName(String cargoName) { | ||
80 | + this.cargoName = cargoName; | ||
81 | + } | ||
82 | + | ||
83 | + public String getWeight() { | ||
84 | + return weight; | ||
85 | + } | ||
86 | + | ||
87 | + public void setWeight(String weight) { | ||
88 | + this.weight = weight; | ||
89 | + } | ||
90 | + | ||
91 | + public String getPiece() { | ||
92 | + return piece; | ||
93 | + } | ||
94 | + | ||
95 | + public void setPiece(String piece) { | ||
96 | + this.piece = piece; | ||
97 | + } | ||
98 | + | ||
99 | + public String getTransportCertificate() { | ||
100 | + return transportCertificate; | ||
101 | + } | ||
102 | + | ||
103 | + public void setTransportCertificate(String transportCertificate) { | ||
104 | + this.transportCertificate = transportCertificate; | ||
105 | + } | ||
106 | + | ||
107 | + public String getTransportationProve() { | ||
108 | + return transportationProve; | ||
109 | + } | ||
110 | + | ||
111 | + public void setTransportationProve(String transportationProve) { | ||
112 | + this.transportationProve = transportationProve; | ||
113 | + } | ||
114 | +} |
-
请 注册 或 登录 后发表评论