| | |
| | | import com.zy.asrs.entity.param.StockOutParam; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.WorkService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.model.StartupDto; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return R.ok().add(basDevpService.getAvailableEmptyInSite()); |
| | | } |
| | | |
| | | @RequestMapping("/test/station/storage/crn/list") |
| | | @ManagerAuth(memo = "测试站点库区堆垛机顺序") |
| | | public R testStationStorageCrnList(@RequestParam Integer stationId, |
| | | @RequestParam(required = false) Integer locType1, |
| | | @RequestParam(required = false) String matnr) { |
| | | List<Map<String, Integer>> stationStorageAreaName = Utils.getStationStorageAreaName(stationId, locType1, matnr); |
| | | return R.ok().add(stationStorageAreaName); |
| | | } |
| | | @RequestMapping("/available/take/site") |
| | | @ManagerAuth() |
| | | public R availableTakeSite(){ |
| | |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | @RequestMapping("/turn/over/out/start") |
| | | @ManagerAuth(memo = "客户转换") |
| | | public R turnOverOutStart(@RequestBody EmptyPlateOutParam param) { |
| | | workService.turnOverOut(param, getUserId()); |
| | | return R.ok("客户转换成功"); |
| | | } |
| | | |
| | | @RequestMapping("/available/take/check/site") |
| | | @ManagerAuth() |
| | | public R availableTakeCheckSite(){ |
| | |
| | | @RequestMapping("/full/store/put/start") |
| | | @ManagerAuth(memo = "全板入库") |
| | | public R fullStorePutStart(@RequestBody FullStoreParam fullStoreParam) { |
| | | return R.ok("入库启动成功").add(workService.startupFullPutStore(fullStoreParam,getUserId())); |
| | | try { |
| | | String locNo = workService.startupFullPutStore(fullStoreParam, getUserId()); |
| | | return R.ok("入库启动成功").add(locNo); |
| | | } catch (Exception e){ |
| | | return R.error("入库启动失败==>"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("/plate/out/start") |
| | |
| | | } |
| | | |
| | | } |
| | | |