| | |
| | | for (StoreType docType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", docType.getStoreId()); |
| | | map.put("value", docType.getStoreName()); |
| | | map.put("value", docType.getStoreName()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/storeTypeQuery2/auth") |
| | | @ManagerAuth |
| | | public R query2(String condition) { |
| | | EntityWrapper<StoreType> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("store_name", condition).eq("own", 1); |
| | | wrapper.eq("status", 1); |
| | | Page<StoreType> page = storeTypeService.selectPage(new Page<>(0, 10000), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (StoreType docType : page.getRecords()) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", docType.getStoreId()); |
| | | map.put("value", docType.getStoreName()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |