|
|
@ -3,6 +3,7 @@ package org.nl.wms.sch.task_manage.task.tasks; |
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.date.DateTime; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.lang.Assert; |
|
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.http.HttpRequest; |
|
|
@ -12,6 +13,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.nl.common.exception.BadRequestException; |
|
|
|
import org.nl.system.service.param.ISysParamService; |
|
|
|
import org.nl.system.service.param.dao.Param; |
|
|
|
import org.nl.wms.ext.service.dto.to.BaseResponse; |
|
|
|
import org.nl.wms.mes.domain.Head; |
|
|
|
import org.nl.wms.mes.domain.QPMES065Request; |
|
|
@ -77,6 +80,8 @@ public class YCLCKTask extends AbstractTask { |
|
|
|
private MaterialMapper materialMapper; |
|
|
|
@Autowired |
|
|
|
private MaterialDataMapper materialDataMapper; |
|
|
|
@Autowired |
|
|
|
private ISysParamService paramService; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@ -294,7 +299,10 @@ public class YCLCKTask extends AbstractTask { |
|
|
|
try { |
|
|
|
if (ObjectUtil.isNotEmpty(materialList)) { |
|
|
|
//自动化领料出库后经由AGV将出库信息同步至MES,从原材料库到回温库完成后自动调用
|
|
|
|
String url = "http://192.168.9.124/sitAppWebApi/PDSToWMS/Api/QPMES065"; |
|
|
|
//String url = "http://192.168.9.124/sitAppWebApi/PDSToWMS/Api/QPMES065";
|
|
|
|
Param mes_url = paramService.findByCode(GeneralDefinition.MES_URL); |
|
|
|
Assert.notNull(mes_url, "找不到配置文件,请确认系统参数[mes_url]配置是否存在!"); |
|
|
|
String url = mes_url.getValue()+"QPMES065"; |
|
|
|
QPMES065Request qpmes065Request = new QPMES065Request(); |
|
|
|
List<QPMES065RequestBody> qpmes065RequestBodyList=new ArrayList<>(); |
|
|
|
Head head=new Head(); |
|
|
|