| | |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.Synchronized; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | locno?组托+绑定暂存位 : 组托 |
| | | */ |
| | | @PostMapping("/comb/auth") |
| | | public R comb(@RequestBody List<CombParam> combParams){ |
| | | combParams.forEach(combParam -> { |
| | | agvMobileService.comb(combParam, getUserId()); |
| | | }); |
| | | public R comb(@RequestBody CombParam combParam){ |
| | | agvMobileService.comb(combParam, getUserId()); |
| | | |
| | | return R.ok(); |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/start/pakin/auth") |
| | | @Synchronized |
| | | @Transactional |
| | | public R startPakin(@RequestBody AgvMobileStartPakin params){ |
| | | // 组托 |
| | | params.getCombParams().forEach(combParam -> { |
| | | agvMobileService.comb(combParam,getUserId()); |
| | | }); |
| | | try { |
| | | params.getCombParams().forEach(combParam -> { |
| | | agvMobileService.comb(combParam,getUserId()); |
| | | }); |
| | | params.setContainerType(Short.valueOf(params.getContainerCode().substring(0,2))); |
| | | workService.emptyPlateIn(params.getDevNo(),params.getContainerCode(),params.getContainerType(), getUserId(),false); |
| | | } catch (Exception e) { |
| | | return R.error("生成工作档成功"); |
| | | } |
| | | |
| | | return R.ok("生成工作档成功"); |
| | | } |