|
|
|
|
@ -253,10 +253,8 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
@Override |
|
|
|
|
public R<List<BsWorkCenterVO>> returnToWarehouseList() { |
|
|
|
|
log.info("【回库工位查询】开始查询空闲站点关联工位"); |
|
|
|
|
|
|
|
|
|
// 1. 查询空闲状态的站点
|
|
|
|
|
|
|
|
|
|
List<StationVO> freeStationList = stationService.getStatusStationList(STATUS_FREE, true, null, null, false); |
|
|
|
|
List<StationVO> freeStationList = stationService.getStatusStationList(STATUS_FREE, true, null, CONVEYOR_LINE_RECEIVE_ONLY, false); |
|
|
|
|
// 2. 构建返回列表(默认添加输送线回库选项)
|
|
|
|
|
List<BsWorkCenterVO> resultList = new ArrayList<>(); |
|
|
|
|
BsWorkCenterVO conveyorVO = new BsWorkCenterVO(); |
|
|
|
|
@ -1234,7 +1232,8 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
@Override |
|
|
|
|
public R getStationRegion() { |
|
|
|
|
// 1. 查询所有空闲站点
|
|
|
|
|
List<StationVO> freeStationList = stationService.getStatusStationList(STATUS_FREE, false, null, null, false); |
|
|
|
|
List<StationVO> freeStationList = stationService.getStatusStationList(STATUS_FREE, false, null, CONVEYOR_LINE_RECEIVE_ONLY, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 2. 判空:无空闲站点则返回失败
|
|
|
|
|
if (freeStationList == null || freeStationList.size() == 0) { |
|
|
|
|
@ -1447,7 +1446,7 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
Long workCenterId; |
|
|
|
|
|
|
|
|
|
if (workPlan.getStatus() < 3) { |
|
|
|
|
if (workPlan.getMakeTeam() == null) { |
|
|
|
|
if (workPlan.getMakeTeam() == null&&workPlan.getSubsidiaryTeam() == null) { |
|
|
|
|
return R.fail(orderCardNo + "车间订单班次异常"); |
|
|
|
|
} else { |
|
|
|
|
List<CenterTeam> list = iCenterTeamService.list(new LambdaQueryWrapper<CenterTeam>() |
|
|
|
|
@ -1467,10 +1466,10 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
.list(); |
|
|
|
|
|
|
|
|
|
if (nextWorkPlanList == null || nextWorkPlanList.isEmpty()) { |
|
|
|
|
return R.fail(orderCardNo + "车间订单异常"); |
|
|
|
|
return R.fail(orderCardNo + "订单已结束不可配送"); |
|
|
|
|
} |
|
|
|
|
workPlan = nextWorkPlanList.get(0); |
|
|
|
|
if (workPlan.getMakeTeam() == null) { |
|
|
|
|
if (workPlan.getMakeTeam() == null&&workPlan.getSubsidiaryTeam() == null) { |
|
|
|
|
return R.fail(orderCardNo + "车间订单班次异常"); |
|
|
|
|
} else { |
|
|
|
|
List<CenterTeam> list = iCenterTeamService.list(new LambdaQueryWrapper<CenterTeam>() |
|
|
|
|
|