| | |
| | | EntityWrapper<Mat> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | // wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | wrapper.like("matnr", condition).or().like("maktx", condition); |
| | | wrapper.like("matnr", condition).or().like("maktx", condition).or().like("model", condition); |
| | | } |
| | | wrapper.orderBy("create_time", false); |
| | | List<Mat> mats = matService.selectList(wrapper); |
| | |
| | | , String.valueOf(tagId) |
| | | , param.get("matnr") |
| | | , param.get("maktx") |
| | | , param.get("specs")) |
| | | , param.get("specs") |
| | | , param.get("model")) |
| | | |
| | | ); |
| | | |
| | | } |
| | |
| | | @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<>(); |