|
|
@ -19,6 +19,7 @@ import org.nl.wms.sch.point.service.dao.SchBasePoint; |
|
|
|
import org.nl.wms.sch.point.service.dao.mapper.SchBasePointMapper; |
|
|
|
import org.nl.wms.sch.region.service.dao.SchBaseRegion; |
|
|
|
import org.nl.wms.sch.region.service.dao.mapper.SchBaseRegionMapper; |
|
|
|
import org.nl.wms.sch.task.service.dao.SchBaseTask; |
|
|
|
import org.nl.wms.sch.task_manage.enums.PointStatusEnum; |
|
|
|
import org.nl.wms.util.PointUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -186,9 +187,22 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch |
|
|
|
return pointMapper.selectList(new LambdaQueryWrapper<SchBasePoint>() |
|
|
|
.eq(SchBasePoint::getRegion_code, region.getRegion_code()) |
|
|
|
.like(region.getPoint_code()!=null,SchBasePoint::getPoint_code, region.getPoint_code()) |
|
|
|
.eq(SchBasePoint::getIs_used, 1) |
|
|
|
.eq(SchBasePoint::getIs_has_workder, 1)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<SchBasePoint> getPointListByPda(SchBasePoint region) { |
|
|
|
return pointMapper.selectList(new LambdaQueryWrapper<SchBasePoint>() |
|
|
|
.eq(ObjectUtil.isNotEmpty(region.getRegion_code()),SchBasePoint::getRegion_code, region.getRegion_code()) |
|
|
|
.like(ObjectUtil.isNotEmpty(region.getPoint_code()),SchBasePoint::getPoint_code, region.getPoint_code()) |
|
|
|
.and(slam -> slam.eq(SchBasePoint::getIng_task_code, "") |
|
|
|
.or() |
|
|
|
.isNull(SchBasePoint::getIng_task_code)) |
|
|
|
.eq(SchBasePoint::getIs_used, 1) |
|
|
|
.eq(ObjectUtil.isNotEmpty(region.getVehicle_qty()),SchBasePoint::getVehicle_qty, region.getVehicle_qty())); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<SchBasePoint> getPointsByRegionCodes(String RegionCodes) { |
|
|
|
Set<String> regions = new HashSet<>(); |
|
|
@ -196,7 +210,7 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch |
|
|
|
regions.addAll(Arrays.asList(split)); |
|
|
|
return pointMapper.selectList(new LambdaQueryWrapper<SchBasePoint>() |
|
|
|
.in(ObjectUtil.isNotEmpty(RegionCodes),SchBasePoint::getRegion_code,regions) |
|
|
|
.eq(SchBasePoint::getIs_has_workder, 1) |
|
|
|
.eq(SchBasePoint::getIs_used, 1) |
|
|
|
.orderByAsc(SchBasePoint::getPoint_code) |
|
|
|
); |
|
|
|
} |
|
|
|