|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.controller; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.core.annotations.ManagerAuth; | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import com.core.common.R; | 
|---|
|  |  |  | import com.zy.asrs.entity.WaitPakin; | 
|---|
|  |  |  | import com.zy.asrs.entity.param.EmptyPlateOutParam; | 
|---|
|  |  |  | 
|---|
|  |  |  | map.put("desc", siteId + "(全板出库口)"); | 
|---|
|  |  |  | result.add(map); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103); | 
|---|
|  |  |  | for (Integer siteId : pickOutSite) { | 
|---|
|  |  |  | Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | map.put("siteId", siteId); | 
|---|
|  |  |  | map.put("desc", siteId + "(拣料出库口)"); | 
|---|
|  |  |  | result.add(map); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //        List<Integer> pickOutSite = basDevpService.getAvailableOutSite(103); | 
|---|
|  |  |  | //        for (Integer siteId : pickOutSite) { | 
|---|
|  |  |  | //            Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | //            map.put("siteId", siteId); | 
|---|
|  |  |  | //            map.put("desc", siteId + "(拣料出库口)"); | 
|---|
|  |  |  | //            result.add(map); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | return R.ok().add(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return R.ok("移库启动成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/mat/turn/over/out/start") | 
|---|
|  |  |  | @ManagerAuth(memo = "品号移交") | 
|---|
|  |  |  | public R turnMatLocDetl(@RequestBody EmptyPlateOutParam param) { | 
|---|
|  |  |  | if (Cools.isEmpty(param) || Cools.isEmpty(param.getLocDetls(),param.getMatId()) || Cools.isEmpty(param.getLocDetls().get(0)) || Cools.isEmpty(param.getLocDetls().get(0).getMatnr())){ | 
|---|
|  |  |  | return R.error("参数为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (param.getLocDetls().size()>1){ | 
|---|
|  |  |  | return R.error("请单条数据修改,谨慎操作!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | workService.turnMatLocDetl(param, getUserId()); | 
|---|
|  |  |  | return R.ok("品号移交成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/locDdetl/adjust/start") | 
|---|
|  |  |  | @ManagerAuth(memo = "库存调整") | 
|---|
|  |  |  | public R locDetlAdjustStart(@RequestBody LocDetlAdjustParam param) { | 
|---|