自动化立体仓库 - WMS系统
#
Junjie
4 天以前 9f2f1f535d4abfc9cdf68eef651cb73ef2e04bcb
src/main/java/com/zy/asrs/controller/OutController.java
@@ -11,6 +11,7 @@
import com.zy.common.model.LocDto;
import com.zy.common.model.TaskDto;
import com.zy.common.web.BaseController;
import com.zy.system.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -228,6 +229,17 @@
                }
                List<Integer> staNos = staDescService.queryOutStaNosByLocNo(locNo, ioType);
                User user = getUser();
                if(user != null) {
                    Integer defaultOutSta = user.getDefaultOutSta();
                    if(defaultOutSta != null) {
                        if (staNos.contains(defaultOutSta)) {
                            staNos.remove(defaultOutSta);
                            staNos.add(0, defaultOutSta);
                        }
                    }
                }
                locStaNosMap.put(locNo, staNos);
            }