作者 申海龙

安检申报

Manifest-Version: 1.0
... ...
... ... @@ -243,7 +243,7 @@ public class SecurityDeclarationController {
sdVo.setCarrier(wbm.getCarrier());
sdVo.setTotalpiece(wbm.getTotalpiece());
sdVo.setTotalweight(wbm.getTotalweight());
sdVo.setDestinationstation(wbm.getDestinationstation());
new XmlBuildTask(securityDeclarationService.sendNDLRXml(sdVo), ndlrPath).perform();
model.setStatus(200);
... ...
... ... @@ -111,6 +111,7 @@ public class SecurityDeclarationService extends BasicService<SecurityDeclaration
ManifestDesXml md = new ManifestDesXml();
md.setId(sdVo.getDestinationstation());
dec.setDes(md);
// +"/"+sdVo.getDestinationstation()
// 航班号-航班日期
ManifestBorderTransportMeansXml mt = new ManifestBorderTransportMeansXml();
... ...
package com.agent.vo.agent;
/**
* @Auther: shenhl
* @Date: 2019/4/17 14:21
*/
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 货主信息表
*/
public class HZSHIPPERINFORMATIONVo {
/**
* ID
*/
// @Id
private Long id;
/**
* 简称
*/
private String forShort;
/**
* 全称
*/
private String fullName;
/**
* 货主类型 1发货人 2订舱代理 3操作代理
*/
private String theShipperType;
/**
* 联系人
*/
private String contacts;
/**
* 电话
*/
private String phone;
/**
* 删除标记 1未删除 2删除
*/
private String deleteFlag;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Column(name = "FOR_SHORT")
public String getForShort() {
return forShort;
}
public void setForShort(String forShort) {
this.forShort = forShort;
}
@Column(name = "FULL_NAME")
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
@Column(name = "THE_SHIPPER_TYPE")
public String getTheShipperType() {
return theShipperType;
}
public void setTheShipperType(String theShipperType) {
this.theShipperType = theShipperType;
}
@Column(name = "CONTACTS")
public String getContacts() {
return contacts;
}
public void setContacts(String contacts) {
this.contacts = contacts;
}
@Column(name = "PHONE")
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Column(name = "DELETE_FLAG")
public String getDeleteFlag() {
return deleteFlag;
}
public void setDeleteFlag(String deleteFlag) {
this.deleteFlag = deleteFlag;
}
}
... ...
package com.agent.vo.agent;
/**
* @Auther: shenhl
* @Date: 2019/4/28 11:22
*/
import java.util.Date;
/**
* 生成报文 安检申报Vo
*/
public class SDVo {
/**
* 运单号
*/
private String sd_waybill;
/**
* 货物托运人名称
*/
private String sd_cargo_shipper_name;
/**
* 货物代理人名称
*/
private String sd_cargo_agent_name;
/**
* 航协编号
*/
private String sd_iata_number;
/**
* 运输条件鉴定书
*/
private String sd_transport_certificate;
/**
* 航空公司同意运输证明
*/
private String sd_transportation_prove;
/**
* 航班号
*/
private String flightno;
/**
* 航班日期
*/
private Date flightdate;
/**
* 目的地
*/
private String destinationstation;
/**
* 总重量
*/
private String totalweight;
/**
* 总件数
*/
private String totalpiece;
/**
* 承运人
*/
private String carrier;
/**
* 货物品名
*/
private String sd_cargo_name;
/**
* 货物性质(类型) 1普通货物 2特种货物 3 危险品 4航空快件
*/
private String sd_cargo_type;
public String getSd_cargo_name() {
return sd_cargo_name;
}
public void setSd_cargo_name(String sd_cargo_name) {
this.sd_cargo_name = sd_cargo_name;
}
public String getSd_cargo_type() {
return sd_cargo_type;
}
public void setSd_cargo_type(String sd_cargo_type) {
this.sd_cargo_type = sd_cargo_type;
}
public String getSd_waybill() {
return sd_waybill;
}
public void setSd_waybill(String sd_waybill) {
this.sd_waybill = sd_waybill;
}
public String getSd_cargo_shipper_name() {
return sd_cargo_shipper_name;
}
public void setSd_cargo_shipper_name(String sd_cargo_shipper_name) {
this.sd_cargo_shipper_name = sd_cargo_shipper_name;
}
public String getSd_cargo_agent_name() {
return sd_cargo_agent_name;
}
public void setSd_cargo_agent_name(String sd_cargo_agent_name) {
this.sd_cargo_agent_name = sd_cargo_agent_name;
}
public String getSd_iata_number() {
return sd_iata_number;
}
public void setSd_iata_number(String sd_iata_number) {
this.sd_iata_number = sd_iata_number;
}
public String getSd_transport_certificate() {
return sd_transport_certificate;
}
public void setSd_transport_certificate(String sd_transport_certificate) {
this.sd_transport_certificate = sd_transport_certificate;
}
public String getSd_transportation_prove() {
return sd_transportation_prove;
}
public void setSd_transportation_prove(String sd_transportation_prove) {
this.sd_transportation_prove = sd_transportation_prove;
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno;
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation;
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight;
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece;
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier;
}
}
... ...
package com.agent.vo.agent;
/**
* @Auther: shenhl
* @Date: 2019/4/28 09:43
*/
public class SecurityDeclarationVo {
/**
* id
*/
private Long id;
/**
* 运单号
*/
private String sd_waybill;
/**
* 货物托运人名称
*/
private String sd_cargo_shipper_name;
/**
* 货物代理人名称
*/
private String sd_cargo_agent_name;
/**
* 航协编号
*/
private String sd_iata_number;
/**
* 运输条件鉴定书
*/
private String sd_transport_certificate;
/**
* 航空公司同意运输证明
*/
private String sd_transportation_prove;
/**
* 用户id
* @return
*/
private Long sd_user_id;
/**
* 状态 1已发送 2未发送
* @return
*/
private String sd_static;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getSd_waybill() {
return sd_waybill;
}
public void setSd_waybill(String sd_waybill) {
this.sd_waybill = sd_waybill;
}
public String getSd_cargo_shipper_name() {
return sd_cargo_shipper_name;
}
public void setSd_cargo_shipper_name(String sd_cargo_shipper_name) {
this.sd_cargo_shipper_name = sd_cargo_shipper_name;
}
public String getSd_cargo_agent_name() {
return sd_cargo_agent_name;
}
public void setSd_cargo_agent_name(String sd_cargo_agent_name) {
this.sd_cargo_agent_name = sd_cargo_agent_name;
}
public String getSd_iata_number() {
return sd_iata_number;
}
public void setSd_iata_number(String sd_iata_number) {
this.sd_iata_number = sd_iata_number;
}
public String getSd_transport_certificate() {
return sd_transport_certificate;
}
public void setSd_transport_certificate(String sd_transport_certificate) {
this.sd_transport_certificate = sd_transport_certificate;
}
public String getSd_transportation_prove() {
return sd_transportation_prove;
}
public void setSd_transportation_prove(String sd_transportation_prove) {
this.sd_transportation_prove = sd_transportation_prove;
}
public Long getSd_user_id() {
return sd_user_id;
}
public void setSd_user_id(Long sd_user_id) {
this.sd_user_id = sd_user_id;
}
public String getSd_static() {
return sd_static;
}
public void setSd_static(String sd_static) {
this.sd_static = sd_static;
}
}
... ...
package com.agent.xml.secuity;
import javax.xml.bind.annotation.*;
/**
* @Auther: shenhl
* @Date: 2019/4/28 14:43
*/
@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "SD")
public class SecurityDeclarationXml {
//航协编号
@XmlElement(name = "IataNo", required = false)
private String iataNo;
//航空货物性质 1普通货物 2特种货物 3危险品 4航空快件
@XmlElement(name = "CargoType", required = false)
private String cargoType;
//航空货物托运人名称
@XmlElement(name = "ShipperName", required = false)
private String shipperName;
//航空货运代理人名称
@XmlElement(name = "CargoAgentName", required = false)
private String cargoAgentName;
//货物品名
@XmlElement(name = "CargoName", required = false)
private String cargoName;
//公斤
@XmlElement(name = "Weight", required = false)
private String weight;
//件数
@XmlElement(name = "Piece", required = false)
private String piece;
//运输条件鉴定书
@XmlElement(name = "TransportCertificate", required = false)
private String transportCertificate;
//航空公司同意运输证明
@XmlElement(name = "TransportationProve", required = false)
private String transportationProve;
public String getIataNo() {
return iataNo;
}
public void setIataNo(String iataNo) {
this.iataNo = iataNo;
}
public String getCargoType() {
return cargoType;
}
public void setCargoType(String cargoType) {
this.cargoType = cargoType;
}
public String getShipperName() {
return shipperName;
}
public void setShipperName(String shipperName) {
this.shipperName = shipperName;
}
public String getCargoAgentName() {
return cargoAgentName;
}
public void setCargoAgentName(String cargoAgentName) {
this.cargoAgentName = cargoAgentName;
}
public String getCargoName() {
return cargoName;
}
public void setCargoName(String cargoName) {
this.cargoName = cargoName;
}
public String getWeight() {
return weight;
}
public void setWeight(String weight) {
this.weight = weight;
}
public String getPiece() {
return piece;
}
public void setPiece(String piece) {
this.piece = piece;
}
public String getTransportCertificate() {
return transportCertificate;
}
public void setTransportCertificate(String transportCertificate) {
this.transportCertificate = transportCertificate;
}
public String getTransportationProve() {
return transportationProve;
}
public void setTransportationProve(String transportationProve) {
this.transportationProve = transportationProve;
}
}
... ...