| | |
| | | if (Cools.isEmpty(mat) || null==mat.getId()){ |
| | | return R.error(); |
| | | } |
| | | String oldMatnr = matService.getOldMatnr(mat.getId()); |
| | | mat.setUpdateBy(getUserId()); |
| | | mat.setUpdateTime(new Date()); |
| | | matService.updateById(mat); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | return R.ok(matService.getMatTurnPage(toPage(curr, limit, param, Mat.class))); |
| | | } |
| | | |
| | | @RequestMapping("/mat/turn/over/out/start") |
| | | @ManagerAuth(memo = "品号移交") |
| | | public R turnOverOutStart(@RequestBody EmptyPlateOutParam param) { |
| | | |
| | | return R.ok("品号移交成功"); |
| | | } |
| | | |
| | | @RequestMapping("/mat/turn/over/take/site") |
| | |
| | | print.setBarcode(mat.getBarcode()); |
| | | print.setMaktx(mat.getMaktx()); |
| | | print.setSpecs(mat.getSpecs()); |
| | | print.setSupp(mat.getSupp()); |
| | | print.setSku(mat.getSku()); |
| | | print.setUnit(mat.getUnit()); |
| | | print.setMemo(mat.getMemo()); |
| | | res.add(print); |