forked from I3-YF/i3plus-mes-yfai
SPS物料拉动 1.新增拉动单+明细+2.提供给设备webSrevice接口
parent
bb2773685e
commit
b69151daa1
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderInfo;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesPullingOrderInfoService extends IBaseMesService<MesPullingOrderInfo> {
|
||||
|
||||
Map doSPSForEquipment( String assemblyLine, String pullingGroupCode,String organizeCode );
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderPartInfo;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesPullingOrderPartInfoService extends IBaseMesService<MesPullingOrderPartInfo> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : SpsInfo
|
||||
* @Author :gsz
|
||||
* @Date 2024/8/30 9:16
|
||||
* @Modify
|
||||
**/
|
||||
@Data
|
||||
public class SpsInfo {
|
||||
//产线
|
||||
private String assemblyLine;
|
||||
//拉动单号
|
||||
private String pullingGroupCode;
|
||||
//工厂号
|
||||
private String organizeCode ;
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.webservice;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.model.SpsInfo;
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base.MesPullingOrderInfoService;
|
||||
import cn.estsh.impp.framework.boot.util.SpringContextsUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebParam;
|
||||
import javax.jws.WebService;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description : WebServiceServerSPS
|
||||
* @Author :gsz
|
||||
* @Date 2024/8/30 9:18
|
||||
* @Modify
|
||||
**/
|
||||
|
||||
//@WebService(targetNamespace = "http://yfaiesb/services/ServiceSyncMaximoInstrument")
|
||||
@WebService(targetNamespace = "http://tempuri.org/services/SyncSPSForEquipmentService")
|
||||
public class WebServiceServerSPS {
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(WebServiceServerSPS.class);
|
||||
|
||||
@WebMethod(action = "SyncSPSForEquipmentService", operationName = "SyncSPSForEquipmentService")
|
||||
public Map syncSPSForEquipment(@WebParam(name = "info") SpsInfo spsInfo) {
|
||||
LOGGER.info("syncSPSForEquipment主数据:{}", spsInfo);
|
||||
|
||||
MesPullingOrderInfoService bean = (MesPullingOrderInfoService) SpringContextsUtil.getBean("mesPullingOrderInfoService");
|
||||
return bean.doSPSForEquipment(spsInfo.getAssemblyLine(),spsInfo.getPullingGroupCode(),spsInfo.getOrganizeCode());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue