|  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlanTypeService planTypeService; | 
 |  |  |  | 
 |  |  |     @RequestMapping(value = "/planType/{id}/auth") | 
 |  |  |     @GetMapping(value = "/planType/{id}/auth") | 
 |  |  |     @ManagerAuth | 
 |  |  |     public R get(@PathVariable("id") String id) { | 
 |  |  |         return R.ok(planTypeService.selectById(String.valueOf(id))); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @RequestMapping(value = "/planType/list/auth") | 
 |  |  |     @GetMapping(value = "/planType/{id}/plan/auth") | 
 |  |  |     @ManagerAuth | 
 |  |  |     public R list(@RequestParam(defaultValue = "1")Integer curr, | 
 |  |  |     public R getPlanTypeOfAdd(@PathVariable("id") String id) { | 
 |  |  |         return R.ok().add(Cools | 
 |  |  |                 .add("planType", planTypeService.selectById(String.valueOf(id))) | 
 |  |  |                 .add("userId", getUserId()) | 
 |  |  |                 .add("nickName", getUser().getNickname()) | 
 |  |  |         ); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PostMapping(value = "/planType/list/auth") | 
 |  |  |     public R list() { | 
 |  |  |         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, | 
 |  |  |                   @RequestParam(defaultValue = "10")Integer limit, | 
 |  |  |                   @RequestParam(required = false)String orderByField, | 
 |  |  |                   @RequestParam(required = false)String orderByType, |