自动化立体仓库 - WMS系统
1
zhang
17 小时以前 be5373a650a8a40e808ab1664e59c60807809a7c
src/main/java/com/zy/asrs/controller/WorkController.java
@@ -3,6 +3,7 @@
import com.core.annotations.ManagerAuth;
import com.core.common.Cools;
import com.core.common.R;
import com.zy.asrs.entity.BasDevp;
import com.zy.asrs.entity.WaitPakin;
import com.zy.asrs.entity.param.EmptyPlateOutParam;
import com.zy.asrs.entity.param.FullStoreParam;
@@ -51,18 +52,18 @@
    @ManagerAuth()
    public R availableTakeSite(){
        List<Map<String, Object>> result = new ArrayList<>();
        List<Integer> outSite = basDevpService.getAvailableOutSite(101);
        for (Integer siteId : outSite) {
        List<BasDevp> outSite = basDevpService.getAvailableOutSiteAndDesc(101);
        for (BasDevp siteId : outSite) {
            Map<String, Object> map = new HashMap<>();
            map.put("siteId", siteId);
            map.put("desc", siteId + "(全板出库口)");
            map.put("siteId", siteId.getDevNo());
            map.put("desc", siteId.getDevNo() + siteId.getDecDesc());
            result.add(map);
        }
        List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103);
        for (Integer siteId : pickOutSite) {
        List<BasDevp> pickOutSite = basDevpService.getAvailableOutSiteAndDesc(103);
        for (BasDevp siteId : pickOutSite) {
            Map<String, Object> map = new HashMap<>();
            map.put("siteId", siteId);
            map.put("desc", siteId + "(拣料出库口)");
            map.put("siteId", siteId.getDevNo());
            map.put("desc", siteId.getDevNo() + siteId.getDecDesc());
            result.add(map);
        }
        return R.ok().add(result);
@@ -80,6 +81,28 @@
        return R.ok().add(basDevpService.getAvailableEmptyOutSite());
    }
    @RequestMapping("/available/take/check/siteDesc")
    @ManagerAuth()
    public R availableTakeCheckSiteDesc() {
        List<BasDevp> availableOutSite = basDevpService.getAvailableOutSiteAndDesc(107);
        List<String> data = new ArrayList<>();
        for (BasDevp siteId : availableOutSite) {
            data.add(siteId.getDevNo() + siteId.getDecDesc());
        }
        return R.ok().add(data);
    }
    @RequestMapping("/available/empty/take/siteDesc")
    @ManagerAuth()
    public R availableEmptyTakeSiteDesc() {
        List<BasDevp> availableOutSite = basDevpService.getAvailableEmptyOutSiteAndDesc();
        List<String> data = new ArrayList<>();
        for (BasDevp siteId : availableOutSite) {
            data.add(siteId.getDevNo() + siteId.getDecDesc());
        }
        return R.ok().add(data);
    }
    @RequestMapping("/full/store/put/start")
    @ManagerAuth(memo = "全板入库")
    public R fullStorePutStart(@RequestBody FullStoreParam fullStoreParam) {