Commit f988e474 authored by Quxl's avatar Quxl

x

parent 1203be12
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.egolm.sso.distributors.SI_004_INVENTORY_SyncOutService package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _MT004INVENTORY_QNAME = new QName("http://distributors.edi.digital.cn.se.com", "MT_004_INVENTORY");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.egolm.sso.distributors.SI_004_INVENTORY_SyncOutService
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING }
*
*/
public ZDTSD004INVENTORYSENDING createZDTSD004INVENTORYSENDING() {
return new ZDTSD004INVENTORYSENDING();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD createZDTSD004INVENTORYSENDINGRECORD() {
return new ZDTSD004INVENTORYSENDING.RECORD();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO createZDTSD004INVENTORYSENDINGRECORDREVENUERATIO() {
return new ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD createZDTSD004INVENTORYSENDINGRECORDINVENTORYRECORD() {
return new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER createZDTSD004INVENTORYSENDINGRECORDREVENUERATIOHEADER() {
return new ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM createZDTSD004INVENTORYSENDINGRECORDREVENUERATIOITEM() {
return new ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER createZDTSD004INVENTORYSENDINGRECORDINVENTORYRECORDHEADER() {
return new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER();
}
/**
* Create an instance of {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM createZDTSD004INVENTORYSENDINGRECORDINVENTORYRECORDITEM() {
return new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link ZDTSD004INVENTORYSENDING }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://distributors.edi.digital.cn.se.com", name = "MT_004_INVENTORY")
public JAXBElement<ZDTSD004INVENTORYSENDING> createMT004INVENTORY(ZDTSD004INVENTORYSENDING value) {
return new JAXBElement<ZDTSD004INVENTORYSENDING>(_MT004INVENTORY_QNAME, ZDTSD004INVENTORYSENDING.class, null, value);
}
}
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-08-08T11:40:45.767+08:00
* Generated source version: 3.2.9
*
*/
@WebService(targetNamespace = "http://distributors.edi.digital.cn.se.com", name = "SI_004_INVENTORY_SyncOut")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface SI004INVENTORYSyncOut {
@WebMethod(operationName = "SI_004_INVENTORY_SyncOut", action = "http://sap.com/xi/WebService/soap1.1")
@Oneway
public void si004INVENTORYSyncOut(
@WebParam(partName = "MT_004_INVENTORY", name = "MT_004_INVENTORY", targetNamespace = "http://distributors.edi.digital.cn.se.com")
ZDTSD004INVENTORYSENDING mt004INVENTORY
);
}
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-08-08T11:40:45.802+08:00
* Generated source version: 3.2.9
*
*/
@WebServiceClient(name = "SI_004_INVENTORY_SyncOutService",
wsdlLocation = "file:SI_004_INVENTORY_SyncOutService.wsdl",
targetNamespace = "http://distributors.edi.digital.cn.se.com")
public class SI004INVENTORYSyncOutService extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://distributors.edi.digital.cn.se.com", "SI_004_INVENTORY_SyncOutService");
public final static QName HTTPSPort = new QName("http://distributors.edi.digital.cn.se.com", "HTTPS_Port");
public final static QName HTTPPort = new QName("http://distributors.edi.digital.cn.se.com", "HTTP_Port");
static {
URL url = null;
try {
url = new URL("file:SI_004_INVENTORY_SyncOutService.wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(SI004INVENTORYSyncOutService.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "file:SI_004_INVENTORY_SyncOutService.wsdl");
}
WSDL_LOCATION = url;
}
public SI004INVENTORYSyncOutService(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public SI004INVENTORYSyncOutService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SI004INVENTORYSyncOutService() {
super(WSDL_LOCATION, SERVICE);
}
public SI004INVENTORYSyncOutService(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public SI004INVENTORYSyncOutService(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
public SI004INVENTORYSyncOutService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns SI004INVENTORYSyncOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SI004INVENTORYSyncOut getHTTPSPort() {
return super.getPort(HTTPSPort, SI004INVENTORYSyncOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SI004INVENTORYSyncOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SI004INVENTORYSyncOut getHTTPSPort(WebServiceFeature... features) {
return super.getPort(HTTPSPort, SI004INVENTORYSyncOut.class, features);
}
/**
*
* @return
* returns SI004INVENTORYSyncOut
*/
@WebEndpoint(name = "HTTP_Port")
public SI004INVENTORYSyncOut getHTTPPort() {
return super.getPort(HTTPPort, SI004INVENTORYSyncOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SI004INVENTORYSyncOut
*/
@WebEndpoint(name = "HTTP_Port")
public SI004INVENTORYSyncOut getHTTPPort(WebServiceFeature... features) {
return super.getPort(HTTPPort, SI004INVENTORYSyncOut.class, features);
}
}
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
import java.io.File;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONObject;
import com.egolm.sso.clients.ServiceFactory;
import com.egolm.sso.config.XRException;
import com.egolm.sso.services.CommonService;
import com.egolm.sso.services.CommonService.Page;
import com.egolm.sso.util.CollectionUtil;
import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson;
@Component
public class SI004INVENTORYSyncOutServiceTask {
Log logger = LogFactory.getLog(SI004INVENTORYSyncOutServiceTask.class);
@Autowired
private JdbcTemplate jdbcTemplate;
@Autowired
private CommonService common;
@Value("${schneider.username}")
private String username;
@Value("${schneider.password}")
private String password;
@Value("${WSDLPATH}")
private String WSDLPATH;
@Value("${xmlRoot}")
private String xmlRoot;
@Transactional
//@Scheduled(cron="${cronSi004}")
public void execute() {
this.runTask();
}
public void runTask() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
File folder = jarFile.getParentFile();
String absolutePath = folder.getAbsolutePath();
String wsdlLocation = "file:///" + absolutePath + "/" + WSDLPATH + "/SI_004_INVENTORY_SyncOutService.wsdl";
SI004INVENTORYSyncOut service = ServiceFactory.create(SI004INVENTORYSyncOut.class, wsdlLocation, "http://distributors.edi.digital.cn.se.com", "SI_004_INVENTORY_SyncOutService", username, password);
this.sendData(service);
}
private void sendData(SI004INVENTORYSyncOut SI004INVENTORYSyncOut) {
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String apiName = "SAP库存数据接口";
String apiPath = "/XISOAPAdapter/MessageServlet/si004INVENTORYSyncOut";
Page page = new Page(1L, 1000L, new String[] {"DIS_CODE", "INVENTORY_DATE"});
String sql = "SELECT * FROM t_dis_inventory WHERE SEND_STATUS = 'N'";
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
List<Map<String, Object>> tmp = null;
do {
String limitSql = common.limitByMysql(sql, page);
tmp = jdbcTemplate.queryForList(limitSql);
list.addAll(tmp);
page.toNextPage();
} while(tmp != null && tmp.size() > 0);
Map<String, List<Map<String, Object>>> datas = CollectionUtil.toGroupList(list, "DIS_CODE", "INVENTORY_DATE");
for(List<Map<String, Object>> vList : datas.values()) {
boolean isSuccess = true;
ZDTSD004INVENTORYSENDING mt004INVENTORY = new ZDTSD004INVENTORYSENDING();
try {
JSONObject headerObject = new JSONObject(vList.get(0));
ZDTSD004INVENTORYSENDING.RECORD RECORD = new ZDTSD004INVENTORYSENDING.RECORD();
ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD INVENTORYRECORD = new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD();
ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER INVENTORYRECORD_HEADER = new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER();
INVENTORYRECORD_HEADER.setKUNNR(headerObject.getString("DIS_CODE"));
INVENTORYRECORD_HEADER.setNAME1(headerObject.getString("DIS_NAME"));
INVENTORYRECORD_HEADER.setZDATE(headerObject.getString("INVENTORY_DATE"));
INVENTORYRECORD_HEADER.setZSPART(headerObject.getString("MPG"));
INVENTORYRECORD.setHEADER(INVENTORYRECORD_HEADER);
RECORD.setINVENTORYRECORD(INVENTORYRECORD);
mt004INVENTORY.setRECORD(RECORD);
List<ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM> NVENTORYR_ITEM_LIST = INVENTORYRECORD.getITEM();
List<BigInteger> idList = new ArrayList<BigInteger>();
for(Map<String, Object> map : vList) {
JSONObject jsonObject = new JSONObject(map);
idList.add(jsonObject.getBigInteger("ID"));
ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM NVENTORYR_ITEM = new ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM();
NVENTORYR_ITEM.setMAKTX(jsonObject.getString("DIS_SPEC"));
NVENTORYR_ITEM.setMATNR(jsonObject.getString("DIS_GOODS_CODE"));
NVENTORYR_ITEM.setMENGE(jsonObject.getString("DIS_QTY"));
NVENTORYR_ITEM.setPOSNR(jsonObject.getString("INVENTORY_LINE"));
NVENTORYR_ITEM.setZPRIC(jsonObject.getString("DIS_TAX_PRICE"));
NVENTORYR_ITEM.setZVALU(jsonObject.getString("DIS_TAX_AMOUNT"));
NVENTORYR_ITEM_LIST.add(NVENTORYR_ITEM);
}
SI004INVENTORYSyncOut.si004INVENTORYSyncOut(mt004INVENTORY);
String updateSql = "UPDATE t_dis_inventory SET SEND_STATUS = 'Y', SEND_TIME = NOW() WHERE ID IN (" + StringUtil.join("?", ", ", idList.size(), "", "") + ")";
jdbcTemplate.update(updateSql, idList.toArray());
} catch (Throwable e) {
isSuccess = false;
throw new XRException(ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString, e);
} finally {
try {
common.saveApiAccessLog(apiName, apiPath, isSuccess ? "S" : "F");
} catch (Exception e1) {
logger.error(timeString, e1);
}
String xmlName = "004_INVENTORY";
try {
String xml = XMLUtil.toXml(mt004INVENTORY);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(now, DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + timeString + ".XML";
FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(mt004INVENTORY);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
}
}
}
}
}
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Z_DT_SD_004_INVENTORY_SENDING complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType name="Z_DT_SD_004_INVENTORY_SENDING"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="RECORD"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="INVENTORYRECORD"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME1"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZSPART"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MAKTX"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MENGE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZPRIC"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZVALU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="REVENUE_RATIO"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ERDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="VENDORNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="50"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RATIO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Z_DT_SD_004_INVENTORY_SENDING", propOrder = {
"record"
})
public class ZDTSD004INVENTORYSENDING {
@XmlElement(name = "RECORD", required = true)
protected ZDTSD004INVENTORYSENDING.RECORD record;
/**
* 获取record属性的值。
*
* @return
* possible object is
* {@link ZDTSD004INVENTORYSENDING.RECORD }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD getRECORD() {
return record;
}
/**
* 设置record属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD004INVENTORYSENDING.RECORD }
*
*/
public void setRECORD(ZDTSD004INVENTORYSENDING.RECORD value) {
this.record = value;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="INVENTORYRECORD"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME1"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZSPART"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MAKTX"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MENGE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZPRIC"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZVALU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="REVENUE_RATIO"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ERDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="VENDORNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="50"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RATIO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"inventoryrecord",
"revenueratio"
})
public static class RECORD {
@XmlElement(name = "INVENTORYRECORD", required = true)
protected ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD inventoryrecord;
@XmlElement(name = "REVENUE_RATIO", required = true)
protected ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO revenueratio;
/**
* 获取inventoryrecord属性的值。
*
* @return
* possible object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD getINVENTORYRECORD() {
return inventoryrecord;
}
/**
* 设置inventoryrecord属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD }
*
*/
public void setINVENTORYRECORD(ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD value) {
this.inventoryrecord = value;
}
/**
* 获取revenueratio属性的值。
*
* @return
* possible object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO getREVENUERATIO() {
return revenueratio;
}
/**
* 设置revenueratio属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO }
*
*/
public void setREVENUERATIO(ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO value) {
this.revenueratio = value;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME1"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZSPART"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MAKTX"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MENGE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZPRIC"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZVALU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"header",
"item"
})
public static class INVENTORYRECORD {
@XmlElement(name = "HEADER", required = true)
protected ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER header;
@XmlElement(name = "ITEM")
protected List<ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM> item;
/**
* 获取header属性的值。
*
* @return
* possible object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER getHEADER() {
return header;
}
/**
* 设置header属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER }
*
*/
public void setHEADER(ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.HEADER value) {
this.header = value;
}
/**
* Gets the value of the item property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the item property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getITEM().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM }
*
*
*/
public List<ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM> getITEM() {
if (item == null) {
item = new ArrayList<ZDTSD004INVENTORYSENDING.RECORD.INVENTORYRECORD.ITEM>();
}
return this.item;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME1"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZSPART"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"kunnr",
"name1",
"zspart",
"zdate"
})
public static class HEADER {
@XmlElement(name = "KUNNR", required = true)
protected String kunnr;
@XmlElement(name = "NAME1", required = true)
protected String name1;
@XmlElement(name = "ZSPART", required = true)
protected String zspart;
@XmlElement(name = "ZDATE", required = true)
protected String zdate;
/**
* 获取kunnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getKUNNR() {
return kunnr;
}
/**
* 设置kunnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKUNNR(String value) {
this.kunnr = value;
}
/**
* 获取name1属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getNAME1() {
return name1;
}
/**
* 设置name1属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNAME1(String value) {
this.name1 = value;
}
/**
* 获取zspart属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getZSPART() {
return zspart;
}
/**
* 设置zspart属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZSPART(String value) {
this.zspart = value;
}
/**
* 获取zdate属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getZDATE() {
return zdate;
}
/**
* 设置zdate属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZDATE(String value) {
this.zdate = value;
}
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MAKTX"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;minLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MENGE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZPRIC"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ZVALU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"posnr",
"matnr",
"maktx",
"menge",
"zpric",
"zvalu"
})
public static class ITEM {
@XmlElement(name = "POSNR", required = true)
protected String posnr;
@XmlElement(name = "MATNR", required = true)
protected String matnr;
@XmlElement(name = "MAKTX", required = true)
protected String maktx;
@XmlElement(name = "MENGE", required = true)
protected String menge;
@XmlElement(name = "ZPRIC", required = true)
protected String zpric;
@XmlElement(name = "ZVALU", required = true)
protected String zvalu;
/**
* 获取posnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getPOSNR() {
return posnr;
}
/**
* 设置posnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPOSNR(String value) {
this.posnr = value;
}
/**
* 获取matnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getMATNR() {
return matnr;
}
/**
* 设置matnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMATNR(String value) {
this.matnr = value;
}
/**
* 获取maktx属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getMAKTX() {
return maktx;
}
/**
* 设置maktx属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMAKTX(String value) {
this.maktx = value;
}
/**
* 获取menge属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getMENGE() {
return menge;
}
/**
* 设置menge属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMENGE(String value) {
this.menge = value;
}
/**
* 获取zpric属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getZPRIC() {
return zpric;
}
/**
* 设置zpric属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZPRIC(String value) {
this.zpric = value;
}
/**
* 获取zvalu属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getZVALU() {
return zvalu;
}
/**
* 设置zvalu属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZVALU(String value) {
this.zvalu = value;
}
}
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ERDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="VENDORNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="50"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RATIO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"header",
"item"
})
public static class REVENUERATIO {
@XmlElement(name = "HEADER", required = true)
protected ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER header;
@XmlElement(name = "ITEM")
protected List<ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM> item;
/**
* 获取header属性的值。
*
* @return
* possible object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER }
*
*/
public ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER getHEADER() {
return header;
}
/**
* 设置header属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER }
*
*/
public void setHEADER(ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.HEADER value) {
this.header = value;
}
/**
* Gets the value of the item property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the item property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getITEM().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM }
*
*
*/
public List<ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM> getITEM() {
if (item == null) {
item = new ArrayList<ZDTSD004INVENTORYSENDING.RECORD.REVENUERATIO.ITEM>();
}
return this.item;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="KUNNR"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="NAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="35"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="ERDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"kunnr",
"name",
"rname",
"erdate"
})
public static class HEADER {
@XmlElement(name = "KUNNR", required = true)
protected String kunnr;
@XmlElement(name = "NAME", required = true)
protected String name;
@XmlElement(name = "RNAME", required = true)
protected String rname;
@XmlElement(name = "ERDATE", required = true)
protected String erdate;
/**
* 获取kunnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getKUNNR() {
return kunnr;
}
/**
* 设置kunnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKUNNR(String value) {
this.kunnr = value;
}
/**
* 获取name属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getNAME() {
return name;
}
/**
* 设置name属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNAME(String value) {
this.name = value;
}
/**
* 获取rname属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getRNAME() {
return rname;
}
/**
* 设置rname属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRNAME(String value) {
this.rname = value;
}
/**
* 获取erdate属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getERDATE() {
return erdate;
}
/**
* 设置erdate属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setERDATE(String value) {
this.erdate = value;
}
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="VENDORNAME"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="50"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="RATIO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"vendorname",
"ratio"
})
public static class ITEM {
@XmlElement(name = "VENDORNAME", required = true)
protected String vendorname;
@XmlElement(name = "RATIO", required = true)
protected String ratio;
/**
* 获取vendorname属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getVENDORNAME() {
return vendorname;
}
/**
* 设置vendorname属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVENDORNAME(String value) {
this.vendorname = value;
}
/**
* 获取ratio属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getRATIO() {
return ratio;
}
/**
* 设置ratio属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRATIO(String value) {
this.ratio = value;
}
}
}
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://distributors.edi.digital.cn.se.com")
package com.egolm.sso.clients.SI_004_INVENTORY_SyncOutService;
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.egolm.sso.distributors.SI_011_ACTUAL_SALES_SyncOutService package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _MT011ACTUALSALES_QNAME = new QName("http://distributors.edi.digital.cn.se.com", "MT_011_ACTUAL_SALES");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.egolm.sso.distributors.SI_011_ACTUAL_SALES_SyncOutService
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link ZDTSD011ACTUALSALESSENDING }
*
*/
public ZDTSD011ACTUALSALESSENDING createZDTSD011ACTUALSALESSENDING() {
return new ZDTSD011ACTUALSALESSENDING();
}
/**
* Create an instance of {@link ZDTSD011ACTUALSALESSENDING.RECORD }
*
*/
public ZDTSD011ACTUALSALESSENDING.RECORD createZDTSD011ACTUALSALESSENDINGRECORD() {
return new ZDTSD011ACTUALSALESSENDING.RECORD();
}
/**
* Create an instance of {@link ZDTSD011ACTUALSALESSENDING.RECORD.HEADER }
*
*/
public ZDTSD011ACTUALSALESSENDING.RECORD.HEADER createZDTSD011ACTUALSALESSENDINGRECORDHEADER() {
return new ZDTSD011ACTUALSALESSENDING.RECORD.HEADER();
}
/**
* Create an instance of {@link ZDTSD011ACTUALSALESSENDING.RECORD.ITEM }
*
*/
public ZDTSD011ACTUALSALESSENDING.RECORD.ITEM createZDTSD011ACTUALSALESSENDINGRECORDITEM() {
return new ZDTSD011ACTUALSALESSENDING.RECORD.ITEM();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link ZDTSD011ACTUALSALESSENDING }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://distributors.edi.digital.cn.se.com", name = "MT_011_ACTUAL_SALES")
public JAXBElement<ZDTSD011ACTUALSALESSENDING> createMT011ACTUALSALES(ZDTSD011ACTUALSALESSENDING value) {
return new JAXBElement<ZDTSD011ACTUALSALESSENDING>(_MT011ACTUALSALES_QNAME, ZDTSD011ACTUALSALESSENDING.class, null, value);
}
}
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-08-08T11:41:02.603+08:00
* Generated source version: 3.2.9
*
*/
@WebService(targetNamespace = "http://distributors.edi.digital.cn.se.com", name = "SI_011_ACTUAL_SALES_SyncOut")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface SI011ACTUALSALESSyncOut {
@WebMethod(operationName = "SI_011_ACTUAL_SALES_SyncOut", action = "http://sap.com/xi/WebService/soap1.1")
@Oneway
public void si011ACTUALSALESSyncOut(
@WebParam(partName = "MT_011_ACTUAL_SALES", name = "MT_011_ACTUAL_SALES", targetNamespace = "http://distributors.edi.digital.cn.se.com")
ZDTSD011ACTUALSALESSENDING mt011ACTUALSALES
);
}
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-08-08T11:41:02.636+08:00
* Generated source version: 3.2.9
*
*/
@WebServiceClient(name = "SI_011_ACTUAL_SALES_SyncOutService",
wsdlLocation = "file:SI_011_ACTUAL_SALES_SyncOutService.wsdl",
targetNamespace = "http://distributors.edi.digital.cn.se.com")
public class SI011ACTUALSALESSyncOutService extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://distributors.edi.digital.cn.se.com", "SI_011_ACTUAL_SALES_SyncOutService");
public final static QName HTTPSPort = new QName("http://distributors.edi.digital.cn.se.com", "HTTPS_Port");
public final static QName HTTPPort = new QName("http://distributors.edi.digital.cn.se.com", "HTTP_Port");
static {
URL url = null;
try {
url = new URL("file:SI_011_ACTUAL_SALES_SyncOutService.wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(SI011ACTUALSALESSyncOutService.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "file:SI_011_ACTUAL_SALES_SyncOutService.wsdl");
}
WSDL_LOCATION = url;
}
public SI011ACTUALSALESSyncOutService(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public SI011ACTUALSALESSyncOutService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SI011ACTUALSALESSyncOutService() {
super(WSDL_LOCATION, SERVICE);
}
public SI011ACTUALSALESSyncOutService(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public SI011ACTUALSALESSyncOutService(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
public SI011ACTUALSALESSyncOutService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns SI011ACTUALSALESSyncOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SI011ACTUALSALESSyncOut getHTTPSPort() {
return super.getPort(HTTPSPort, SI011ACTUALSALESSyncOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SI011ACTUALSALESSyncOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SI011ACTUALSALESSyncOut getHTTPSPort(WebServiceFeature... features) {
return super.getPort(HTTPSPort, SI011ACTUALSALESSyncOut.class, features);
}
/**
*
* @return
* returns SI011ACTUALSALESSyncOut
*/
@WebEndpoint(name = "HTTP_Port")
public SI011ACTUALSALESSyncOut getHTTPPort() {
return super.getPort(HTTPPort, SI011ACTUALSALESSyncOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SI011ACTUALSALESSyncOut
*/
@WebEndpoint(name = "HTTP_Port")
public SI011ACTUALSALESSyncOut getHTTPPort(WebServiceFeature... features) {
return super.getPort(HTTPPort, SI011ACTUALSALESSyncOut.class, features);
}
}
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
import java.io.File;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONObject;
import com.egolm.sso.clients.ServiceFactory;
import com.egolm.sso.config.XRException;
import com.egolm.sso.services.CommonService;
import com.egolm.sso.services.CommonService.Page;
import com.egolm.sso.util.CollectionUtil;
import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.ThrowableUtil;
import com.egolm.sso.util.XMLUtil;
import com.google.gson.Gson;
@Component
public class SI011ACTUALSALESSyncOutServiceTask {
Log logger = LogFactory.getLog(SI011ACTUALSALESSyncOutServiceTask.class);
@Autowired
private JdbcTemplate jdbcTemplate;
@Autowired
private CommonService common;
@Value("${schneider.username}")
private String username;
@Value("${schneider.password}")
private String password;
@Value("${WSDLPATH}")
private String WSDLPATH;
@Value("${xmlRoot}")
private String xmlRoot;
@Transactional
//@Scheduled(cron="${cronSi011}")
public void execute() {
this.runTask();
}
public void runTask() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
File folder = jarFile.getParentFile();
String absolutePath = folder.getAbsolutePath();
String wsdlLocation = "file:///" + absolutePath + "/" + WSDLPATH + "/SI_011_ACTUAL_SALES_SyncOutService.wsdl";
SI011ACTUALSALESSyncOut service = ServiceFactory.create(SI011ACTUALSALESSyncOut.class, wsdlLocation, "http://distributors.edi.digital.cn.se.com", "SI_011_ACTUAL_SALES_SyncOutService", username, password);
this.sendData(service);
}
private void sendData(SI011ACTUALSALESSyncOut SI011ACTUALSALESSyncOut) {
Date now = new Date();
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
String apiName = "SAP库存数据接口";
String apiPath = "/XISOAPAdapter/MessageServlet/si011ACTUALSALESSyncOut";
Page page = new Page(1L, 1000L, new String[] {"DIS_CODE", "SALES_NO"});
String sql = "SELECT * FROM t_dis_sales WHERE SEND_STATUS = 'N'";
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
List<Map<String, Object>> tmp = null;
do {
String limitSql = common.limitByMysql(sql, page);
tmp = jdbcTemplate.queryForList(limitSql);
list.addAll(tmp);
page.toNextPage();
} while(tmp != null && tmp.size() > 0);
Map<String, List<Map<String, Object>>> datas = CollectionUtil.toGroupList(list, "DIS_CODE", "SALES_NO");
for(List<Map<String, Object>> vList : datas.values()) {
boolean isSuccess = true;
ZDTSD011ACTUALSALESSENDING mt011ACTUALSALES = new ZDTSD011ACTUALSALESSENDING();
try {
ZDTSD011ACTUALSALESSENDING.RECORD RECORD = new ZDTSD011ACTUALSALESSENDING.RECORD();
mt011ACTUALSALES.setRECORD(RECORD);
ZDTSD011ACTUALSALESSENDING.RECORD.HEADER header = new ZDTSD011ACTUALSALESSENDING.RECORD.HEADER();
List<ZDTSD011ACTUALSALESSENDING.RECORD.ITEM> itemList = RECORD.getITEM();
JSONObject headerObject = new JSONObject(vList.get(0));
header.setAUBEL(headerObject.getString("SALES_NO"));
header.setFXSNA(headerObject.getString("DIS_NAME"));
header.setFXSNO(headerObject.getString("DIS_CODE"));
header.setSDATE(headerObject.getString("SALES_DATE"));
RECORD.setHEADER(header);
List<BigInteger> idList = new ArrayList<BigInteger>();
for(Map<String, Object> itemMap : vList) {
JSONObject itemObject = new JSONObject(itemMap);
idList.add(itemObject.getBigInteger("ID"));
ZDTSD011ACTUALSALESSENDING.RECORD.ITEM item = new ZDTSD011ACTUALSALESSENDING.RECORD.ITEM();
item.setCUSNA(itemObject.getString("DIS_STORE_NAME"));
item.setCUSNO(itemObject.getString("DIS_STORE_CODE"));
item.setCUSTY(itemObject.getString("DIS_STORE_TYPE"));
item.setFAMOU(itemObject.getString("DIS_TAX_AMOUNT"));
item.setFCITY(itemObject.getString("DIS_STORE_CITY"));
item.setFDNO(itemObject.getString("SALES_LINE"));
item.setFITEM(itemObject.getString("DIS_GOODS_CODE"));
item.setFPRIC(itemObject.getString("DIS_TAX_PRICE"));
item.setFPROV(itemObject.getString("DIS_STORE_PROV"));
item.setFQTY(itemObject.getString("DIS_QTY"));
item.setFSNDP(itemObject.getString("PURCHASING_PRICE"));
item.setMPG(itemObject.getString("MPG"));
item.setYLZD1(itemObject.getString("YLZD1"));
item.setYLZD2(itemObject.getString("YLZD2"));
item.setYLZD3(itemObject.getString("YLZD3"));
itemList.add(item);
}
SI011ACTUALSALESSyncOut.si011ACTUALSALESSyncOut(mt011ACTUALSALES);
String updateSql = "UPDATE t_dis_sales SET SEND_STATUS = 'Y', SEND_TIME = NOW() WHERE ID IN (" + StringUtil.join("?", ", ", idList.size(), "", "") + ")";
jdbcTemplate.update(updateSql, idList.toArray());
} catch (Throwable e) {
isSuccess = false;
throw new XRException(ThrowableUtil.getCaused(e).getMessage() + " -- " + timeString, e);
} finally {
try {
common.saveApiAccessLog(apiName, apiPath, isSuccess ? "S" : "F");
} catch (Exception e1) {
logger.error(timeString, e1);
}
String xmlName = "011_ACTUAL_SALES";
try {
String xml = XMLUtil.toXml(mt011ACTUALSALES);
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(now, DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + timeString + ".XML";
FileUtil.writeText(xmlFullName, xml);
String json = new Gson().toJson(mt011ACTUALSALES);
FileUtil.writeText(xmlFullName + ".JSON", json);
} catch (Exception e) {
throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
}
}
}
}
}
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* actual Sales data from distributors
*
* <p>Z_DT_SD_011_ACTUAL_SALES_SENDING complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType name="Z_DT_SD_011_ACTUAL_SALES_SENDING"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="RECORD"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FXSNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FXSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="SDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="AUBEL"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FDNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="3"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNO" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSTY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPROV" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FCITY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MPG"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FITEM" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FAMOU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FQTY"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPRIC" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FSNDP"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD1" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD2" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD3" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Z_DT_SD_011_ACTUAL_SALES_SENDING", propOrder = {
"record"
})
public class ZDTSD011ACTUALSALESSENDING {
@XmlElement(name = "RECORD", required = true)
protected ZDTSD011ACTUALSALESSENDING.RECORD record;
/**
* 获取record属性的值。
*
* @return
* possible object is
* {@link ZDTSD011ACTUALSALESSENDING.RECORD }
*
*/
public ZDTSD011ACTUALSALESSENDING.RECORD getRECORD() {
return record;
}
/**
* 设置record属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD011ACTUALSALESSENDING.RECORD }
*
*/
public void setRECORD(ZDTSD011ACTUALSALESSENDING.RECORD value) {
this.record = value;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="HEADER"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FXSNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FXSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="SDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="AUBEL"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FDNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="3"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNO" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSTY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPROV" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FCITY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MPG"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FITEM" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FAMOU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FQTY"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPRIC" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FSNDP"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD1" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD2" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD3" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"header",
"item"
})
public static class RECORD {
@XmlElement(name = "HEADER", required = true)
protected ZDTSD011ACTUALSALESSENDING.RECORD.HEADER header;
@XmlElement(name = "ITEM", required = true)
protected List<ZDTSD011ACTUALSALESSENDING.RECORD.ITEM> item;
/**
* 获取header属性的值。
*
* @return
* possible object is
* {@link ZDTSD011ACTUALSALESSENDING.RECORD.HEADER }
*
*/
public ZDTSD011ACTUALSALESSENDING.RECORD.HEADER getHEADER() {
return header;
}
/**
* 设置header属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD011ACTUALSALESSENDING.RECORD.HEADER }
*
*/
public void setHEADER(ZDTSD011ACTUALSALESSENDING.RECORD.HEADER value) {
this.header = value;
}
/**
* Gets the value of the item property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the item property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getITEM().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ZDTSD011ACTUALSALESSENDING.RECORD.ITEM }
*
*
*/
public List<ZDTSD011ACTUALSALESSENDING.RECORD.ITEM> getITEM() {
if (item == null) {
item = new ArrayList<ZDTSD011ACTUALSALESSENDING.RECORD.ITEM>();
}
return this.item;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FXSNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FXSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="SDATE"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="AUBEL"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"fxsno",
"fxsna",
"sdate",
"aubel"
})
public static class HEADER {
@XmlElement(name = "FXSNO", required = true)
protected String fxsno;
@XmlElement(name = "FXSNA", required = true)
protected String fxsna;
@XmlElement(name = "SDATE", required = true)
protected String sdate;
@XmlElement(name = "AUBEL", required = true)
protected String aubel;
/**
* 获取fxsno属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFXSNO() {
return fxsno;
}
/**
* 设置fxsno属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFXSNO(String value) {
this.fxsno = value;
}
/**
* 获取fxsna属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFXSNA() {
return fxsna;
}
/**
* 设置fxsna属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFXSNA(String value) {
this.fxsna = value;
}
/**
* 获取sdate属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getSDATE() {
return sdate;
}
/**
* 设置sdate属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSDATE(String value) {
this.sdate = value;
}
/**
* 获取aubel属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getAUBEL() {
return aubel;
}
/**
* 设置aubel属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAUBEL(String value) {
this.aubel = value;
}
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="FDNO"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="3"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNO" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSNA"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="CUSTY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPROV" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FCITY" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MPG"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FITEM" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="80"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FAMOU"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FQTY"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FPRIC" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="FSNDP"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="20"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD1" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD2" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="YLZD3" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="100"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"fdno",
"cusno",
"cusna",
"custy",
"fprov",
"fcity",
"mpg",
"fitem",
"famou",
"fqty",
"fpric",
"fsndp",
"ylzd1",
"ylzd2",
"ylzd3"
})
public static class ITEM {
@XmlElement(name = "FDNO", required = true)
protected String fdno;
@XmlElement(name = "CUSNO")
protected String cusno;
@XmlElement(name = "CUSNA", required = true)
protected String cusna;
@XmlElement(name = "CUSTY")
protected String custy;
@XmlElement(name = "FPROV")
protected String fprov;
@XmlElement(name = "FCITY")
protected String fcity;
@XmlElement(name = "MPG", required = true)
protected String mpg;
@XmlElement(name = "FITEM")
protected String fitem;
@XmlElement(name = "FAMOU", required = true)
protected String famou;
@XmlElement(name = "FQTY", required = true)
protected String fqty;
@XmlElement(name = "FPRIC")
protected String fpric;
@XmlElement(name = "FSNDP", required = true)
protected String fsndp;
@XmlElement(name = "YLZD1")
protected String ylzd1;
@XmlElement(name = "YLZD2")
protected String ylzd2;
@XmlElement(name = "YLZD3")
protected String ylzd3;
/**
* 获取fdno属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFDNO() {
return fdno;
}
/**
* 设置fdno属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFDNO(String value) {
this.fdno = value;
}
/**
* 获取cusno属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getCUSNO() {
return cusno;
}
/**
* 设置cusno属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCUSNO(String value) {
this.cusno = value;
}
/**
* 获取cusna属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getCUSNA() {
return cusna;
}
/**
* 设置cusna属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCUSNA(String value) {
this.cusna = value;
}
/**
* 获取custy属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getCUSTY() {
return custy;
}
/**
* 设置custy属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCUSTY(String value) {
this.custy = value;
}
/**
* 获取fprov属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFPROV() {
return fprov;
}
/**
* 设置fprov属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFPROV(String value) {
this.fprov = value;
}
/**
* 获取fcity属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFCITY() {
return fcity;
}
/**
* 设置fcity属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFCITY(String value) {
this.fcity = value;
}
/**
* 获取mpg属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getMPG() {
return mpg;
}
/**
* 设置mpg属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMPG(String value) {
this.mpg = value;
}
/**
* 获取fitem属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFITEM() {
return fitem;
}
/**
* 设置fitem属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFITEM(String value) {
this.fitem = value;
}
/**
* 获取famou属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFAMOU() {
return famou;
}
/**
* 设置famou属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFAMOU(String value) {
this.famou = value;
}
/**
* 获取fqty属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFQTY() {
return fqty;
}
/**
* 设置fqty属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFQTY(String value) {
this.fqty = value;
}
/**
* 获取fpric属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFPRIC() {
return fpric;
}
/**
* 设置fpric属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFPRIC(String value) {
this.fpric = value;
}
/**
* 获取fsndp属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getFSNDP() {
return fsndp;
}
/**
* 设置fsndp属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFSNDP(String value) {
this.fsndp = value;
}
/**
* 获取ylzd1属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getYLZD1() {
return ylzd1;
}
/**
* 设置ylzd1属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setYLZD1(String value) {
this.ylzd1 = value;
}
/**
* 获取ylzd2属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getYLZD2() {
return ylzd2;
}
/**
* 设置ylzd2属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setYLZD2(String value) {
this.ylzd2 = value;
}
/**
* 获取ylzd3属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getYLZD3() {
return ylzd3;
}
/**
* 设置ylzd3属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setYLZD3(String value) {
this.ylzd3 = value;
}
}
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://distributors.edi.digital.cn.se.com")
package com.egolm.sso.clients.SI_011_ACTUAL_SALES_SyncOutService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment