| | |
| | | @ManagerAuth |
| | | public R getMatDataKV(@RequestParam(required = false) String condition) { |
| | | Wrapper<MatCode> wrapper = new EntityWrapper<MatCode>() |
| | | .andNew().like("matnr", condition).or().like("maktx", condition) |
| | | .orderBy("create_time", false); |
| | | .andNew().like("mat_no", condition).or().like("mat_name", condition) |
| | | .orderBy("appe_time", false); |
| | | List<MatCode> mats = matCodeService.selectPage(new Page<>(1, 30), wrapper).getRecords(); |
| | | List<KeyValueVo> valueVos = new ArrayList<>(); |
| | | for (MatCode mat : mats) { |