| | |
| | | return R.ok().add(planTypeService.selectList(new EntityWrapper<PlanType>().orderBy("id"))); |
| | | } |
| | | |
| | | @PostMapping(value = "/planType/list/radio/auth") |
| | | public R listRadio() { |
| | | List<PlanType> planTypes = planTypeService.selectList(new EntityWrapper<PlanType>().orderBy("id")); |
| | | for (int i = 0; i<planTypes.size(); i++) { |
| | | planTypes.get(i).setData(""); |
| | | planTypes.get(i).setHtml(""); |
| | | if (i == 0) { |
| | | planTypes.get(i).setChecked("checked"); |
| | | } |
| | | } |
| | | return R.ok().add(planTypes); |
| | | } |
| | | |
| | | @RequestMapping(value = "/planType/page/auth") |
| | | @ManagerAuth |
| | | public R page(@RequestParam(defaultValue = "1")Integer curr, |