| | |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderProductTypeSQuery/auth") |
| | | @ManagerAuth |
| | | public R queryS(String condition) { |
| | | EntityWrapper<OrderProductType> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("name", condition); |
| | | Page<OrderProductType> page = orderProductTypeService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (OrderProductType orderProductType : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", orderProductType.getName()); |
| | | map.put("value", orderProductType.getName()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderProductType/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |