| | |
| | | EntityWrapper<Mat> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | wrapper.like("matnr", condition).or().like("specs", condition); |
| | | wrapper.like("matnr", condition).or().like("maktx", condition).or().like("model", condition); |
| | | } |
| | | wrapper.orderBy("create_time", false); |
| | | List<Mat> mats = matService.selectList(wrapper); |
| | |
| | | @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") |
| | |
| | | @ManagerAuth |
| | | public R getMatDataKV(@RequestParam(required = false) String condition) { |
| | | Wrapper<Mat> wrapper = new EntityWrapper<Mat>() |
| | | .andNew().like("matnr", condition).or().like("maktx", condition) |
| | | .andNew().like("matnr", condition).or().like("maktx", condition).or().like("model",condition) |
| | | .orderBy("create_time", false); |
| | | List<Mat> mats = matService.selectPage(new Page<>(1, 30), wrapper).getRecords(); |
| | | List<KeyValueVo> valueVos = new ArrayList<>(); |