34 changed files with 579 additions and 848 deletions
@ -0,0 +1,24 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES060RequestBody { |
||||
|
private String SimtOrderNo; |
||||
|
private String locationCode; |
||||
|
private String simtType; |
||||
|
private String deliveryNo; |
||||
|
private String whlCode; |
||||
|
private String PalletSN; |
||||
|
private String lotSN; |
||||
|
private String productName; |
||||
|
private String productDescription; |
||||
|
private String supplierCode; |
||||
|
private String supplierName; |
||||
|
private String specification; |
||||
|
private String batch; |
||||
|
private double qty; |
||||
|
private double incomingLength; |
||||
|
private double incomingWeight; |
||||
|
private double incomingchipping; |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES060ResponseBody { |
||||
|
// 消息状态
|
||||
|
private String STATUS; |
||||
|
// 消息文本
|
||||
|
private String MESSAGE; |
||||
|
// 预留主键1
|
||||
|
private String KEY_VALUE01; |
||||
|
// 预留主键2
|
||||
|
private String KEY_VALUE02; |
||||
|
// 预留主键3
|
||||
|
private String KEY_VALUE03; |
||||
|
// 预留主键4
|
||||
|
private String KEY_VALUE04; |
||||
|
// 预留主键5
|
||||
|
private String KEY_VALUE05; |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.*; |
||||
|
import lombok.experimental.Accessors; |
||||
|
|
||||
|
import javax.xml.bind.annotation.XmlRootElement; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES062RequestBody extends Head { |
||||
|
//入库单号
|
||||
|
private String SimtOrderNo; |
||||
|
//场地
|
||||
|
private String locationCode; |
||||
|
//入库类型
|
||||
|
private String simtType; |
||||
|
//到货单号
|
||||
|
private String deliveryNo; |
||||
|
//扫描库位
|
||||
|
private String whlCode; |
||||
|
//物料条码号(托号)
|
||||
|
private String PalletSn; |
||||
|
//用户编码
|
||||
|
private String userCode; |
||||
|
//用户名称
|
||||
|
private String userName; |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES062ResponseBody { |
||||
|
//消息状态
|
||||
|
private String STATUS; |
||||
|
//消息文本
|
||||
|
private String MESSAGE; |
||||
|
//预留主键1
|
||||
|
private String KEY_VALUE01; |
||||
|
//预留主键2
|
||||
|
private String KEY_VALUE02; |
||||
|
//预留主键3
|
||||
|
private String KEY_VALUE03; |
||||
|
//预留主键4
|
||||
|
private String KEY_VALUE04; |
||||
|
//预留主键5
|
||||
|
private String KEY_VALUE05; |
||||
|
//预留主键6
|
||||
|
private String KEY_VALUE06; |
||||
|
//预留主键7
|
||||
|
private String KEY_VALUE07; |
||||
|
//预留主键8
|
||||
|
private String KEY_VALUE08; |
||||
|
//预留主键9
|
||||
|
private String KEY_VALUE09; |
||||
|
//预留反馈主键1
|
||||
|
private String FKEY_VALUE01; |
||||
|
//预留反馈主键2
|
||||
|
private String FKEY_VALUE02; |
||||
|
//预留反馈主键3
|
||||
|
private String FKEY_VALUE03; |
||||
|
//预留反馈主键4
|
||||
|
private String FKEY_VALUE04; |
||||
|
//预留反馈主键5
|
||||
|
private String FKEY_VALUE05; |
||||
|
//预留反馈主键6
|
||||
|
private String FKEY_VALUE06; |
||||
|
//预留反馈主键7
|
||||
|
private String FKEY_VALUE07; |
||||
|
//预留反馈主键8
|
||||
|
private String FKEY_VALUE08; |
||||
|
//预留反馈主键9
|
||||
|
private String FKEY_VALUE09; |
||||
|
|
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.*; |
||||
|
import lombok.experimental.Accessors; |
||||
|
|
||||
|
import javax.xml.bind.annotation.XmlRootElement; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES065RequestBody { |
||||
|
|
||||
|
//工单号
|
||||
|
private String moname; |
||||
|
//物料条码(托号)
|
||||
|
private String lotSN; |
||||
|
//领料数量
|
||||
|
private String qty; |
||||
|
//场地
|
||||
|
private String siteName; |
||||
|
//预留字段1
|
||||
|
private String ZXXV01; |
||||
|
//预留字段2
|
||||
|
private String ZXXV02; |
||||
|
//预留字段3
|
||||
|
private String ZXXV03; |
||||
|
//预留字段4
|
||||
|
private String ZXXV04; |
||||
|
//预留字段5
|
||||
|
private String ZXXV05; |
||||
|
//预留字段6
|
||||
|
private String ZXXV06; |
||||
|
//预留字段7
|
||||
|
private String ZXXV07; |
||||
|
//预留字段8
|
||||
|
private String ZXXV08; |
||||
|
//预留字段9
|
||||
|
private String ZXXV09; |
||||
|
//预留字段10
|
||||
|
private String ZXXV10; |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES065ResponseBody { |
||||
|
//消息状态
|
||||
|
private String STATUS; |
||||
|
//消息文本
|
||||
|
private String MESSAGE; |
||||
|
//预留主键1
|
||||
|
private String KEY_VALUE01; |
||||
|
//预留主键2
|
||||
|
private String KEY_VALUE02; |
||||
|
//预留主键3
|
||||
|
private String KEY_VALUE03; |
||||
|
//预留主键4
|
||||
|
private String KEY_VALUE04; |
||||
|
//预留主键5
|
||||
|
private String KEY_VALUE05; |
||||
|
//预留主键6
|
||||
|
private String KEY_VALUE06; |
||||
|
//预留主键7
|
||||
|
private String KEY_VALUE07; |
||||
|
//预留主键8
|
||||
|
private String KEY_VALUE08; |
||||
|
//预留主键9
|
||||
|
private String KEY_VALUE09; |
||||
|
//预留反馈主键1
|
||||
|
private String FKEY_VALUE01; |
||||
|
//预留反馈主键2
|
||||
|
private String FKEY_VALUE02; |
||||
|
//预留反馈主键3
|
||||
|
private String FKEY_VALUE03; |
||||
|
//预留反馈主键4
|
||||
|
private String FKEY_VALUE04; |
||||
|
//预留反馈主键5
|
||||
|
private String FKEY_VALUE05; |
||||
|
//预留反馈主键6
|
||||
|
private String FKEY_VALUE06; |
||||
|
//预留反馈主键7
|
||||
|
private String FKEY_VALUE07; |
||||
|
//预留反馈主键8
|
||||
|
private String FKEY_VALUE08; |
||||
|
//预留反馈主键9
|
||||
|
private String FKEY_VALUE09; |
||||
|
|
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES098RequestBody { |
||||
|
private String AUFNR; |
||||
|
private String AUART; |
||||
|
private String WERKS; |
||||
|
private String PLNBEZ; |
||||
|
private String MAKTX; |
||||
|
private String GAMNG; |
||||
|
private String GSTRP; |
||||
|
private String GLTRP; |
||||
|
private String ERNAM; |
||||
|
private String ERDAT; |
||||
|
private String AENAM; |
||||
|
private String AEDAT; |
||||
|
private String RSNUM; |
||||
|
private String ZBBH; |
||||
|
private String ZWORK; |
||||
|
private String MATKL; |
||||
|
private String ZKUNNR; |
||||
|
private String ZMESGDLX; |
||||
|
private String ZMESDJLX; |
||||
|
private String ZGYID; |
||||
|
private String ZGZLXH; |
||||
|
private String ZJJ; |
||||
|
private String ZPH; |
||||
|
private String ZTDGD; |
||||
|
private String ZKTZKCR; |
||||
|
private String ZBZ; |
||||
|
private String ZGG; |
||||
|
private String ZGYTCL; |
||||
|
private String FXXDM; |
||||
|
private String ZSTAT; |
||||
|
private String UEBTK; |
||||
|
private String ZRSV01; |
||||
|
private String ZRSV02; |
||||
|
private String ZRSV03; |
||||
|
private String ZRSV04; |
||||
|
private String ZRSV05; |
||||
|
private List<QPMES098RequestBodyItem1> ITEM1; |
||||
|
private List<QPMES098RequestBodyItem2> ITEM2; |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES098RequestBodyItem1 { |
||||
|
private String VORNR; |
||||
|
private String XLOEK; |
||||
|
private String LTXA1; |
||||
|
private String STEUS; |
||||
|
private String BMSCH; |
||||
|
private String VGW01; |
||||
|
private String VGE01; |
||||
|
private String VGW02; |
||||
|
private String VGE02; |
||||
|
private String VGW03; |
||||
|
private String VGE03; |
||||
|
private String VGW04; |
||||
|
private String VGE04; |
||||
|
private String VGW05; |
||||
|
private String VGE05; |
||||
|
private String VGW06; |
||||
|
private String VGE06; |
||||
|
private String ZRSV06; |
||||
|
private String ZRSV07; |
||||
|
private String ZRSV08; |
||||
|
private String ZRSV09; |
||||
|
private String ZRSV10; |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES098RequestBodyItem2 { |
||||
|
private String POSNR; |
||||
|
private String RSPOS; |
||||
|
private String BWART; |
||||
|
private String MATNR; |
||||
|
private String MAKTX; |
||||
|
private String MTYPE; |
||||
|
private String MTYTXT; |
||||
|
private String BDMNG; |
||||
|
private String MEINS; |
||||
|
private String BEIKZ; |
||||
|
private String ZRSV11; |
||||
|
private String ZRSV12; |
||||
|
private String ZRSV13; |
||||
|
private String ZRSV14; |
||||
|
private String ZRSV15; |
||||
|
} |
@ -1,92 +0,0 @@ |
|||||
package org.nl.wms.mes.domain; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Builder; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
import lombok.ToString; |
|
||||
import lombok.experimental.Accessors; |
|
||||
|
|
||||
import javax.xml.bind.annotation.XmlRootElement; |
|
||||
|
|
||||
@Data |
|
||||
@ToString |
|
||||
@Builder |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
@XmlRootElement |
|
||||
@Accessors(chain = true) |
|
||||
public class QPMES098RequestItem1 { |
|
||||
//工序号
|
|
||||
private String VORNR; |
|
||||
//删除标记
|
|
||||
private String XLOEK; |
|
||||
//工序描述
|
|
||||
private String LTXA1; |
|
||||
//控制码
|
|
||||
private String STEUS; |
|
||||
//基本数量
|
|
||||
private String BMSCH; |
|
||||
//直接人工
|
|
||||
private String VGW01; |
|
||||
//直接人工单位
|
|
||||
private String VGE01; |
|
||||
//间接人工
|
|
||||
private String VGW02; |
|
||||
//间接人工单位
|
|
||||
private String VGE02; |
|
||||
//间接材料
|
|
||||
private String VGW03; |
|
||||
//间接材料单位
|
|
||||
private String VGE03; |
|
||||
//折旧摊销
|
|
||||
private String VGW04; |
|
||||
//折旧摊销单位
|
|
||||
private String VGE04; |
|
||||
//能源动力
|
|
||||
private String VGW05; |
|
||||
//能源动力单位
|
|
||||
private String VGE05; |
|
||||
//其它制造费用
|
|
||||
private String VGW06; |
|
||||
//其它制造费用单位
|
|
||||
private String VGE06; |
|
||||
//预留字段6
|
|
||||
private String ZRSV06; |
|
||||
//预留字段7
|
|
||||
private String ZRSV07; |
|
||||
//预留字段8
|
|
||||
private String ZRSV08; |
|
||||
//预留字段9
|
|
||||
private String ZRSV09; |
|
||||
//预留字段10
|
|
||||
private String ZRSV10; |
|
||||
|
|
||||
@Override |
|
||||
public String toString() { |
|
||||
return "QPMES098RequestItem1{" + |
|
||||
"VORNR='" + VORNR + '\'' + |
|
||||
", XLOEK='" + XLOEK + '\'' + |
|
||||
", LTXA1='" + LTXA1 + '\'' + |
|
||||
", STEUS='" + STEUS + '\'' + |
|
||||
", BMSCH='" + BMSCH + '\'' + |
|
||||
", VGW01='" + VGW01 + '\'' + |
|
||||
", VGE01='" + VGE01 + '\'' + |
|
||||
", VGW02='" + VGW02 + '\'' + |
|
||||
", VGE02='" + VGE02 + '\'' + |
|
||||
", VGW03='" + VGW03 + '\'' + |
|
||||
", VGE03='" + VGE03 + '\'' + |
|
||||
", VGW04='" + VGW04 + '\'' + |
|
||||
", VGE04='" + VGE04 + '\'' + |
|
||||
", VGW05='" + VGW05 + '\'' + |
|
||||
", VGE05='" + VGE05 + '\'' + |
|
||||
", VGW06='" + VGW06 + '\'' + |
|
||||
", VGE06='" + VGE06 + '\'' + |
|
||||
", ZRSV06='" + ZRSV06 + '\'' + |
|
||||
", ZRSV07='" + ZRSV07 + '\'' + |
|
||||
", ZRSV08='" + ZRSV08 + '\'' + |
|
||||
", ZRSV09='" + ZRSV09 + '\'' + |
|
||||
", ZRSV10='" + ZRSV10 + '\'' + |
|
||||
'}'; |
|
||||
} |
|
||||
} |
|
@ -1,71 +0,0 @@ |
|||||
package org.nl.wms.mes.domain; |
|
||||
|
|
||||
import lombok.AllArgsConstructor; |
|
||||
import lombok.Builder; |
|
||||
import lombok.Data; |
|
||||
import lombok.NoArgsConstructor; |
|
||||
import lombok.ToString; |
|
||||
import lombok.experimental.Accessors; |
|
||||
|
|
||||
import javax.xml.bind.annotation.XmlRootElement; |
|
||||
|
|
||||
@Data |
|
||||
@ToString |
|
||||
@Builder |
|
||||
@NoArgsConstructor |
|
||||
@AllArgsConstructor |
|
||||
@XmlRootElement |
|
||||
@Accessors(chain = true) |
|
||||
public class QPMES098RequestItem2 { |
|
||||
//订单行项目编号
|
|
||||
private String POSNR; |
|
||||
//预留行项目编号
|
|
||||
private String RSPOS; |
|
||||
//移动类型
|
|
||||
private String BWART; |
|
||||
//物料编码
|
|
||||
private String MATNR; |
|
||||
//物料名称
|
|
||||
private String MAKTX; |
|
||||
//产品类别
|
|
||||
private String MTYPE; |
|
||||
//产品类别描述
|
|
||||
private String MTYTXT; |
|
||||
//数量
|
|
||||
private String BDMNG; |
|
||||
//计量单位
|
|
||||
private String MEINS; |
|
||||
//物料供应标识
|
|
||||
private String BEIKZ; |
|
||||
//预留字段11
|
|
||||
private String ZRSV11; |
|
||||
//预留字段12
|
|
||||
private String ZRSV12; |
|
||||
//预留字段13
|
|
||||
private String ZRSV13; |
|
||||
//预留字段14
|
|
||||
private String ZRSV14; |
|
||||
//预留字段15
|
|
||||
private String ZRSV15; |
|
||||
|
|
||||
@Override |
|
||||
public String toString() { |
|
||||
return "QPMES098RequestItem2{" + |
|
||||
"POSNR='" + POSNR + '\'' + |
|
||||
", RSPOS='" + RSPOS + '\'' + |
|
||||
", BWART='" + BWART + '\'' + |
|
||||
", MATNR='" + MATNR + '\'' + |
|
||||
", MAKTX='" + MAKTX + '\'' + |
|
||||
", MTYPE='" + MTYPE + '\'' + |
|
||||
", MTYTXT='" + MTYTXT + '\'' + |
|
||||
", BDMNG='" + BDMNG + '\'' + |
|
||||
", MEINS='" + MEINS + '\'' + |
|
||||
", BEIKZ='" + BEIKZ + '\'' + |
|
||||
", ZRSV11='" + ZRSV11 + '\'' + |
|
||||
", ZRSV12='" + ZRSV12 + '\'' + |
|
||||
", ZRSV13='" + ZRSV13 + '\'' + |
|
||||
", ZRSV14='" + ZRSV14 + '\'' + |
|
||||
", ZRSV15='" + ZRSV15 + '\'' + |
|
||||
'}'; |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,47 @@ |
|||||
|
package org.nl.wms.mes.domain; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class QPMES098ResponseBody { |
||||
|
//消息状态
|
||||
|
private String STATUS; |
||||
|
//消息文本
|
||||
|
private String MESSAGE; |
||||
|
//预留主键1
|
||||
|
private String KEY_VALUE01; |
||||
|
//预留主键2
|
||||
|
private String KEY_VALUE02; |
||||
|
//预留主键3
|
||||
|
private String KEY_VALUE03; |
||||
|
//预留主键4
|
||||
|
private String KEY_VALUE04; |
||||
|
//预留主键5
|
||||
|
private String KEY_VALUE05; |
||||
|
//预留主键6
|
||||
|
private String KEY_VALUE06; |
||||
|
//预留主键7
|
||||
|
private String KEY_VALUE07; |
||||
|
//预留主键8
|
||||
|
private String KEY_VALUE08; |
||||
|
//预留主键9
|
||||
|
private String KEY_VALUE09; |
||||
|
//预留反馈主键1
|
||||
|
private String FKEY_VALUE01; |
||||
|
//预留反馈主键2
|
||||
|
private String FKEY_VALUE02; |
||||
|
//预留反馈主键3
|
||||
|
private String FKEY_VALUE03; |
||||
|
//预留反馈主键4
|
||||
|
private String FKEY_VALUE04; |
||||
|
//预留反馈主键5
|
||||
|
private String FKEY_VALUE05; |
||||
|
//预留反馈主键6
|
||||
|
private String FKEY_VALUE06; |
||||
|
//预留反馈主键7
|
||||
|
private String FKEY_VALUE07; |
||||
|
//预留反馈主键8
|
||||
|
private String FKEY_VALUE08; |
||||
|
//预留反馈主键9
|
||||
|
private String FKEY_VALUE09; |
||||
|
} |
@ -1,20 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.ws.client.core.WebServiceTemplate; |
|
||||
import org.springframework.ws.soap.client.core.SoapActionCallback; |
|
||||
import org.springframework.stereotype.Service; |
|
||||
@Service |
|
||||
public class WebServiceClient { |
|
||||
|
|
||||
public void callWebService(Object request,String url) { |
|
||||
String soapAction = ""; |
|
||||
WebServiceTemplate webServiceTemplate = new WebServiceTemplate(); |
|
||||
// 发送 SOAP 请求并获取响应
|
|
||||
Object response = webServiceTemplate.marshalSendAndReceive(url, request, new SoapActionCallback(soapAction)); |
|
||||
|
|
||||
// 处理响应
|
|
||||
System.out.println("Response: " + response); |
|
||||
|
|
||||
// 其他处理: 转对象、转字符串等操作
|
|
||||
} |
|
||||
} |
|
@ -1,86 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice; |
|
||||
|
|
||||
import org.apache.cxf.Bus; |
|
||||
import org.apache.cxf.bus.spring.SpringBus; |
|
||||
import org.apache.cxf.jaxws.EndpointImpl; |
|
||||
import org.apache.cxf.transport.servlet.CXFServlet; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES060Service; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES098Service; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES118Service; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.boot.web.servlet.ServletRegistrationBean; |
|
||||
import org.springframework.context.annotation.Bean; |
|
||||
import org.springframework.context.annotation.Configuration; |
|
||||
|
|
||||
import javax.xml.ws.Endpoint; |
|
||||
|
|
||||
@Configuration |
|
||||
public class WebServiceConfig { |
|
||||
|
|
||||
@Autowired |
|
||||
private QPMES060Service qpmes060Service; |
|
||||
|
|
||||
@Autowired |
|
||||
private QPMES098Service qpmes098Service; |
|
||||
|
|
||||
@Autowired |
|
||||
private QPMES118Service qpmes118Service; |
|
||||
|
|
||||
// @Autowired
|
|
||||
// private WebServiceAuthInterceptor interceptor;
|
|
||||
|
|
||||
/** |
|
||||
* Apache CXF 核心架构是以BUS为核心,整合其他组件。 |
|
||||
* Bus是CXF的主干, 为共享资源提供一个可配置的场所,作用类似于Spring的ApplicationContext,这些共享资源包括 |
|
||||
* WSDl管理器、绑定工厂等。通过对BUS进行扩展,可以方便地容纳自己的资源,或者替换现有的资源。默认Bus实现基于Spring架构, |
|
||||
* 通过依赖注入,在运行时将组件串联起来。BusFactory负责Bus的创建。默认的BusFactory是SpringBusFactory,对应于默认 |
|
||||
* 的Bus实现。在构造过程中,SpringBusFactory会搜索META-INF/cxf(包含在 CXF 的jar中)下的所有bean配置文件。 |
|
||||
* 根据这些配置文件构建一个ApplicationContext。开发者也可以提供自己的配置文件来定制Bus。 |
|
||||
*/ |
|
||||
@Bean(name = Bus.DEFAULT_BUS_ID) |
|
||||
public SpringBus springBus() { |
|
||||
return new SpringBus(); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* http://localhost:8010/webServices?wsdl
|
|
||||
*/ |
|
||||
@Bean |
|
||||
public ServletRegistrationBean getRegistrationBean() { |
|
||||
return new ServletRegistrationBean(new CXFServlet(), "/webServices/*"); |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* http://localhost:8010/webServices/qpmes060?wsdl
|
|
||||
*/ |
|
||||
@Bean |
|
||||
public Endpoint messageEndPoint() { |
|
||||
EndpointImpl endpoint = new EndpointImpl(springBus(), qpmes060Service); |
|
||||
endpoint.publish("/qpmes060"); |
|
||||
// endpoint.getInInterceptors().add(this.interceptor);
|
|
||||
return endpoint; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* http://localhost:8010/webServices/qpmes098?wsdl
|
|
||||
*/ |
|
||||
@Bean |
|
||||
public Endpoint messageEndPoint1() { |
|
||||
EndpointImpl endpoint = new EndpointImpl(springBus(), qpmes098Service); |
|
||||
endpoint.publish("/qpmes098"); |
|
||||
// endpoint.getInInterceptors().add(this.interceptor);
|
|
||||
return endpoint; |
|
||||
} |
|
||||
|
|
||||
/** |
|
||||
* http://localhost:8010/webServices/qpmes118?wsdl
|
|
||||
*/ |
|
||||
@Bean |
|
||||
public Endpoint messageEndPoint2() { |
|
||||
EndpointImpl endpoint = new EndpointImpl(springBus(), qpmes118Service); |
|
||||
endpoint.publish("/qpmes118"); |
|
||||
// endpoint.getInInterceptors().add(this.interceptor);
|
|
||||
return endpoint; |
|
||||
} |
|
||||
|
|
||||
} |
|
@ -1,19 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service; |
|
||||
|
|
||||
import org.nl.wms.mes.domain.QPMES060Request; |
|
||||
import org.nl.wms.mes.domain.QPMES060Response; |
|
||||
|
|
||||
import javax.jws.WebMethod; |
|
||||
import javax.jws.WebParam; |
|
||||
import javax.jws.WebService; |
|
||||
import java.util.List; |
|
||||
|
|
||||
@WebService( |
|
||||
name = "QPMES060", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010"// 命名空间,一般是接口的包名倒序
|
|
||||
) |
|
||||
public interface QPMES060Service { |
|
||||
|
|
||||
@WebMethod(operationName = "QPMES060") |
|
||||
public QPMES060Response QPMES060(@WebParam(name = "QPMES060") QPMES060Request notice); |
|
||||
} |
|
@ -1,18 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service; |
|
||||
|
|
||||
import org.nl.wms.mes.domain.QPMES098Request; |
|
||||
import org.nl.wms.mes.domain.QPMES098Response; |
|
||||
|
|
||||
import javax.jws.WebMethod; |
|
||||
import javax.jws.WebParam; |
|
||||
import javax.jws.WebService; |
|
||||
|
|
||||
@WebService( |
|
||||
name = "QPMES098", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010"// 命名空间,一般是接口的包名倒序
|
|
||||
) |
|
||||
public interface QPMES098Service { |
|
||||
|
|
||||
@WebMethod(operationName = "QPMES098") |
|
||||
public QPMES098Response QPMES098(@WebParam(name = "QPMES098") QPMES098Request notice); |
|
||||
} |
|
@ -1,18 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service; |
|
||||
|
|
||||
import org.nl.wms.mes.domain.QPMES118Response; |
|
||||
|
|
||||
import javax.jws.WebMethod; |
|
||||
import javax.jws.WebParam; |
|
||||
import javax.jws.WebService; |
|
||||
import java.util.List; |
|
||||
|
|
||||
@WebService( |
|
||||
name = "QPMES118", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010"// 命名空间,一般是接口的包名倒序
|
|
||||
) |
|
||||
public interface QPMES118Service { |
|
||||
|
|
||||
@WebMethod |
|
||||
public QPMES118Response QPMES118(); |
|
||||
} |
|
@ -1,46 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service.impl; |
|
||||
|
|
||||
import cn.hutool.core.bean.BeanUtil; |
|
||||
import cn.hutool.core.bean.copier.CopyOptions; |
|
||||
import cn.hutool.core.util.IdUtil; |
|
||||
import lombok.extern.slf4j.Slf4j; |
|
||||
import org.nl.wms.mes.domain.QPMES060Request; |
|
||||
import org.nl.wms.mes.domain.QPMES060Response; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES060Service; |
|
||||
import org.nl.wms.sch.material.service.dao.Material; |
|
||||
import org.nl.wms.sch.material.service.dao.mapper.MaterialMapper; |
|
||||
import org.nl.wms.sch.task_manage.enums.GroupBindMaterialStatusEnum; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Component; |
|
||||
|
|
||||
import javax.jws.WebService; |
|
||||
|
|
||||
@Component |
|
||||
@WebService( |
|
||||
name = "QPMES060", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010", // 命名空间,一般是接口的包名倒序
|
|
||||
endpointInterface = "org.nl.wms.mes.webservice.service.QPMES060Service" // 接口类全路径
|
|
||||
) |
|
||||
@Slf4j |
|
||||
public class QPMES060ServiceImpl implements QPMES060Service { |
|
||||
|
|
||||
@Autowired |
|
||||
private MaterialMapper materialMapper; |
|
||||
|
|
||||
@Override |
|
||||
public QPMES060Response QPMES060(QPMES060Request notice){ |
|
||||
|
|
||||
log.info("QPMES060服务被调用,输入参数:" + notice.toString()); |
|
||||
Material material=new Material(); |
|
||||
material.copyFrom(notice); |
|
||||
material.setGroup_bind_material_status(GroupBindMaterialStatusEnum.BOUND.getValue()); |
|
||||
materialMapper.insert(material); |
|
||||
QPMES060Response qpmes060Response=new QPMES060Response(); |
|
||||
qpmes060Response.setDEST_SYSTEM("WMS"); |
|
||||
qpmes060Response.setINTF_ID("QPMES060"); |
|
||||
qpmes060Response.setSRC_MSGID(IdUtil.simpleUUID()); |
|
||||
qpmes060Response.setSRC_SYSTEM("AGV"); |
|
||||
log.info("QPMES060服务被调用,返回参数:" + qpmes060Response.toString()); |
|
||||
return qpmes060Response; |
|
||||
} |
|
||||
} |
|
@ -1,60 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service.impl; |
|
||||
|
|
||||
import cn.hutool.core.util.ObjectUtil; |
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
||||
import lombok.extern.slf4j.Slf4j; |
|
||||
import org.nl.wms.mes.domain.QPMES098Request; |
|
||||
import org.nl.wms.mes.domain.QPMES098Response; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES098Service; |
|
||||
import org.nl.wms.pdm.service.IPdmBdWorkorderService; |
|
||||
import org.nl.wms.pdm.service.dao.PdmBdWorkorder; |
|
||||
import org.nl.wms.sch.task.service.dao.SchBaseTaskconfig; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Component; |
|
||||
|
|
||||
import javax.jws.WebService; |
|
||||
import java.math.BigDecimal; |
|
||||
|
|
||||
@Component |
|
||||
@WebService( |
|
||||
name = "QPMES098", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010", // 命名空间,一般是接口的包名倒序
|
|
||||
endpointInterface = "org.nl.wms.mes.webservice.service.QPMES098Service" // 接口类全路径
|
|
||||
) |
|
||||
@Slf4j |
|
||||
public class QPMES098ServiceImpl implements QPMES098Service { |
|
||||
|
|
||||
@Autowired |
|
||||
private IPdmBdWorkorderService pdmBdWorkorderService; |
|
||||
|
|
||||
@Override |
|
||||
public QPMES098Response QPMES098(QPMES098Request notice){ |
|
||||
log.info("服务被调用 参数:" + notice.toString()); |
|
||||
QPMES098Response qpmes098Response=new QPMES098Response(); |
|
||||
PdmBdWorkorder entity = new PdmBdWorkorder(); |
|
||||
if("1".equals(notice.getZSTAT())) { |
|
||||
entity.setExt_data(notice.toString()); |
|
||||
entity.setWorkorder_code(notice.getAUFNR()); |
|
||||
entity.setPlan_qty(new BigDecimal((notice.getGAMNG()))); |
|
||||
entity.setMaterial_id(notice.getPLNBEZ()); |
|
||||
entity.setWorkorder_status(notice.getZSTAT()); |
|
||||
entity.setMaterial_code(notice.getPLNBEZ()); |
|
||||
entity.setMaterial_name(notice.getMAKTX()); |
|
||||
//客户名称
|
|
||||
entity.setExt_id(notice.getZKUNNR()); |
|
||||
pdmBdWorkorderService.create(entity); |
|
||||
}else{ |
|
||||
entity=pdmBdWorkorderService.getOne(new LambdaQueryWrapper<PdmBdWorkorder>() |
|
||||
.eq(PdmBdWorkorder::getWorkorder_code, notice.getAUFNR())); |
|
||||
if (ObjectUtil.isEmpty(entity)){ |
|
||||
qpmes098Response.setSTATUS("E"); |
|
||||
qpmes098Response.setMESSAGE("生产订单号不存在,无法关闭或删除"); |
|
||||
qpmes098Response.setFKEY_VALUE01(notice.getAUFNR()); |
|
||||
return qpmes098Response; |
|
||||
} |
|
||||
entity.setWorkorder_status(notice.getZSTAT()); |
|
||||
pdmBdWorkorderService.update(entity); |
|
||||
} |
|
||||
return qpmes098Response; |
|
||||
} |
|
||||
} |
|
@ -1,40 +0,0 @@ |
|||||
package org.nl.wms.mes.webservice.service.impl; |
|
||||
|
|
||||
import cn.hutool.core.util.IdUtil; |
|
||||
import lombok.extern.slf4j.Slf4j; |
|
||||
import org.nl.wms.mes.domain.QPMES118Response; |
|
||||
import org.nl.wms.mes.domain.QPMES118ResponseBody; |
|
||||
import org.nl.wms.mes.webservice.service.QPMES118Service; |
|
||||
import org.nl.wms.sch.task_manage.task.tasks.mapper.PointMapper; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Component; |
|
||||
|
|
||||
import javax.jws.WebService; |
|
||||
import java.util.ArrayList; |
|
||||
import java.util.List; |
|
||||
|
|
||||
@Component |
|
||||
@WebService( |
|
||||
name = "QPMES118", // 暴露服务名称
|
|
||||
targetNamespace = "http://127.0.0.1:8010", // 命名空间,一般是接口的包名倒序
|
|
||||
endpointInterface = "org.nl.wms.mes.webservice.service.QPMES118Service" // 接口类全路径
|
|
||||
) |
|
||||
@Slf4j |
|
||||
public class QPMES118ServiceImpl implements QPMES118Service { |
|
||||
|
|
||||
@Autowired |
|
||||
private PointMapper pointMapper; |
|
||||
|
|
||||
@Override |
|
||||
public QPMES118Response QPMES118(){ |
|
||||
QPMES118Response qpmes118Response =new QPMES118Response(); |
|
||||
List<QPMES118ResponseBody> body=pointMapper.queryByMes(); |
|
||||
qpmes118Response.setBODY(body); |
|
||||
qpmes118Response.setDEST_SYSTEM("WMS"); |
|
||||
qpmes118Response.setINTF_ID("QPMES118"); |
|
||||
qpmes118Response.setSRC_MSGID(IdUtil.simpleUUID()); |
|
||||
qpmes118Response.setSRC_SYSTEM("AGV"); |
|
||||
log.info("QPMES118服务被调用"); |
|
||||
return qpmes118Response; |
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue