目标点无可用则退出循环
This commit is contained in:
@@ -301,6 +301,10 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
|
|||||||
.or()
|
.or()
|
||||||
.eq(SchBasePoint::getIng_task_code, "")));
|
.eq(SchBasePoint::getIng_task_code, "")));
|
||||||
for (SchBasePoint schBasePoint : schBasePointList) {
|
for (SchBasePoint schBasePoint : schBasePointList) {
|
||||||
|
if(nextList.size()==0){
|
||||||
|
log.info("原料库存区无可用点位,取消后续循环");
|
||||||
|
return;
|
||||||
|
}
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("start_point", schBasePoint.getPoint_code());
|
param.put("start_point", schBasePoint.getPoint_code());
|
||||||
param.put("next_point", nextList.get(0).getPoint_code());
|
param.put("next_point", nextList.get(0).getPoint_code());
|
||||||
|
|||||||
Reference in New Issue
Block a user