| | |
| | | |
| | | @RequestMapping(value = "/plan/url/view/file/auth") |
| | | @ManagerAuth |
| | | public R viewFile(@RequestParam("planId") String planId){ |
| | | public R viewFile(@RequestParam("planId") String planId,@RequestParam("planIdI") String planIdI){ |
| | | List<FileSaveExampleUtil.FileDTO> fileDTOS = new ArrayList<>(); |
| | | if (Cools.isEmpty(planId)){ |
| | | return R.ok(fileDTOS); |
| | | } |
| | | Long id = Long.parseLong(planId); |
| | | Plan plan = planService.selectById(id); |
| | | Long idPlanIdI = Long.parseLong(planIdI); |
| | | Plan plan = planService.selectById(idPlanIdI); |
| | | PlanType planType = planTypeService.selectById(plan.getPlanType()); |
| | | if (plan.getAssistantHostSign()==1){ |
| | | planType.setType(1); |
| | |
| | | |
| | | @RequestMapping(value = "/pri/online/url/view/file/auth") |
| | | @ManagerAuth |
| | | public R viewFilePriOnline(@RequestParam("planId") String planId){ |
| | | public R viewFilePriOnline(@RequestParam("planId") String planId,@RequestParam("planIdI") String planIdI){ |
| | | List<FileSaveExampleUtil.FileDTO> fileDTOS = new ArrayList<>(); |
| | | if (Cools.isEmpty(planId)){ |
| | | return R.ok(fileDTOS); |
| | | } |
| | | Long id = Long.parseLong(planId); |
| | | Long idPlanIdI = Long.parseLong(planIdI); |
| | | int planType =0; |
| | | Plan plan = planService.selectById(id); |
| | | Plan plan = planService.selectById(idPlanIdI); |
| | | if (plan.getAssistantHostSign()==1){ |
| | | planType=1; |
| | | }else { |