| | |
| | | public R query(String condition) { |
| | | EntityWrapper<BasWrkIotype> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("io_desc", condition); |
| | | Page<BasWrkIotype> page = basWrkIotypeService.selectPage(new Page<>(0, 20), wrapper); |
| | | // Page<BasWrkIotype> page = basWrkIotypeService.selectPage(new Page<>(0, 20), wrapper); |
| | | List<BasWrkIotype> basWrkIotypeList = basWrkIotypeService.selectList(wrapper); |
| | | |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasWrkIotype basWrkIotype : page.getRecords()){ |
| | | for (BasWrkIotype basWrkIotype : basWrkIotypeList){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basWrkIotype.getIoType()); |
| | | map.put("value", basWrkIotype.getIoDesc()); |