|
|
@ -3,6 +3,7 @@ package org.nl.wms.sch.point.service.impl; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.lang.Assert; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.alibaba.druid.util.StringUtils; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
@ -23,11 +24,7 @@ import org.nl.wms.sch.point.service.dto.SchBasePointDto; |
|
|
|
import org.nl.wms.sch.point.service.dto.SchBasePointQuery; |
|
|
|
import org.nl.wms.sch.region.service.dao.SchBaseRegion; |
|
|
|
import org.nl.wms.sch.region.service.dao.mapper.SchBaseRegionMapper; |
|
|
|
import org.nl.wms.sch.report.service.dto.ReportDto; |
|
|
|
import org.nl.wms.sch.task.service.dao.SchBaseTask; |
|
|
|
import org.nl.wms.sch.task_manage.GeneralDefinition; |
|
|
|
import org.nl.wms.sch.task_manage.enums.PointStatusEnum; |
|
|
|
import org.nl.wms.util.PointUtils; |
|
|
|
import org.nl.wms.sch.task_manage.task.tasks.mapper.PointMapper; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -46,6 +43,9 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch |
|
|
|
@Autowired |
|
|
|
private SchBasePointMapper pointMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private PointMapper pointMapper2; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SchBaseRegionMapper regionMapper; |
|
|
|
|
|
|
@ -220,4 +220,21 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public SchBasePoint findNextPointBYFL() { |
|
|
|
String regionCode = "FL"; |
|
|
|
List<SchBasePoint> schBasePointList = pointMapper2.findPointByCondition(regionCode, "0",0); |
|
|
|
for (SchBasePoint schBasePoint : schBasePointList) { |
|
|
|
//查找点上无载具号无任务号、载具数量为0的
|
|
|
|
if (schBasePoint.getIs_used() |
|
|
|
&& StringUtils.isEmpty(schBasePoint.getIng_task_code()) |
|
|
|
&& schBasePoint.getVehicle_qty() ==0 |
|
|
|
&& ObjectUtil.isEmpty(schBasePoint.getVehicle_code2())) { |
|
|
|
log.info("异常出库找到当前符合条件的点位{}", schBasePoint.getPoint_code()); |
|
|
|
return schBasePoint; |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|