|
|
@ -9,6 +9,8 @@ import cn.hutool.http.HttpRequest; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.nl.common.exception.BadRequestException; |
|
|
|
import org.nl.wms.ext.service.dto.to.BaseResponse; |
|
|
@ -35,6 +37,7 @@ import org.nl.wms.sch.task_manage.enums.GroupStatusEnum; |
|
|
|
import org.nl.wms.sch.task_manage.task.TaskType; |
|
|
|
import org.nl.wms.sch.task_manage.task.core.TaskStatus; |
|
|
|
import org.nl.wms.sch.task_manage.task.tasks.mapper.PointMapper; |
|
|
|
import org.nl.wms.sch.workorder.service.dao.Workorder; |
|
|
|
import org.nl.wms.util.PointUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.context.annotation.Lazy; |
|
|
@ -293,6 +296,12 @@ public class YCLRKTask extends AbstractTask { |
|
|
|
.body(JSON.toJSONString(qpmes062Request)) |
|
|
|
.execute().body(); |
|
|
|
log.info("QPMES062服务调用成功,反馈{}",resultMsg); |
|
|
|
//更新接口表
|
|
|
|
UpdateWrapper<Material> updateWrapper = new UpdateWrapper<>(); |
|
|
|
updateWrapper.eq("PalletSN",taskObj.getVehicle_code2()); |
|
|
|
updateWrapper.eq("group_bind_material_status",GroupBindMaterialStatusEnum.BOUND.getValue()); |
|
|
|
updateWrapper.set("group_bind_material_status",GroupBindMaterialStatusEnum.UNBOUND.getValue()); |
|
|
|
materialMapper.update(null,updateWrapper); |
|
|
|
}else{ |
|
|
|
log.error("当前子托盘:"+taskObj.getVehicle_code2()+"不存在未解绑的物料信息,请确认!"); |
|
|
|
} |
|
|
|