Browse Source

目标点无可用则退出循环

master
psh 4 months ago
parent
commit
4bcf26d04b
  1. 4
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task/service/impl/SchBaseTaskServiceImpl.java

4
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task/service/impl/SchBaseTaskServiceImpl.java

@ -301,6 +301,10 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
.or()
.eq(SchBasePoint::getIng_task_code, "")));
for (SchBasePoint schBasePoint : schBasePointList) {
if(nextList.size()==0){
log.info("原料库存区无可用点位,取消后续循环");
return;
}
JSONObject param = new JSONObject();
param.put("start_point", schBasePoint.getPoint_code());
param.put("next_point", nextList.get(0).getPoint_code());

Loading…
Cancel
Save