|
|
@ -2,6 +2,7 @@ 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.model.SpsInfo;
|
|
|
|
import cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base.MesPullingOrderInfoService;
|
|
|
|
import cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base.MesPullingOrderInfoService;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.util.StringUtil;
|
|
|
|
import cn.estsh.impp.framework.boot.util.SpringContextsUtil;
|
|
|
|
import cn.estsh.impp.framework.boot.util.SpringContextsUtil;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
@ -9,10 +10,11 @@ import org.slf4j.LoggerFactory;
|
|
|
|
import javax.jws.WebMethod;
|
|
|
|
import javax.jws.WebMethod;
|
|
|
|
import javax.jws.WebParam;
|
|
|
|
import javax.jws.WebParam;
|
|
|
|
import javax.jws.WebService;
|
|
|
|
import javax.jws.WebService;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description : WebServiceServerSPS
|
|
|
|
* @Description :soapUI调用 http://10.193.30.22:8300/i3plus/mes-service-spsEqu?wsdl
|
|
|
|
* @Author :gsz
|
|
|
|
* @Author :gsz
|
|
|
|
* @Date 2024/8/30 9:18
|
|
|
|
* @Date 2024/8/30 9:18
|
|
|
|
* @Modify
|
|
|
|
* @Modify
|
|
|
@ -28,7 +30,15 @@ public class WebServiceServerSPS {
|
|
|
|
LOGGER.info("syncSPSForEquipment主数据:{}", spsInfo);
|
|
|
|
LOGGER.info("syncSPSForEquipment主数据:{}", spsInfo);
|
|
|
|
|
|
|
|
|
|
|
|
MesPullingOrderInfoService bean = (MesPullingOrderInfoService) SpringContextsUtil.getBean("mesPullingOrderInfoService");
|
|
|
|
MesPullingOrderInfoService bean = (MesPullingOrderInfoService) SpringContextsUtil.getBean("mesPullingOrderInfoService");
|
|
|
|
return bean.doSPSForEquipment(spsInfo.getAssemblyLine(),spsInfo.getPullingGroupCode(),spsInfo.getOrganizeCode());
|
|
|
|
if (StringUtil.isEmpty(spsInfo.getOrganizeCode())) {
|
|
|
|
|
|
|
|
Map resultMap = new HashMap();
|
|
|
|
|
|
|
|
resultMap.put("success", false);
|
|
|
|
|
|
|
|
String message = "SPS拉动数据已扫描数据为空,请检查拉动单数据";
|
|
|
|
|
|
|
|
resultMap.put("message", message);
|
|
|
|
|
|
|
|
return resultMap;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return bean.doSPSForEquipment("","",spsInfo.getOrganizeCode());
|
|
|
|
|
|
|
|
// return bean.doSPSForEquipment(spsInfo.getAssemblyLine(),spsInfo.getPullingGroupCode(),spsInfo.getOrganizeCode());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|