|
|
@@ -2,6 +2,7 @@ package com.izouma.wenlvju.web;
|
|
|
|
|
|
import com.izouma.wenlvju.domain.PerformanceApply;
|
|
|
import com.izouma.wenlvju.dto.PageQuery;
|
|
|
+import com.izouma.wenlvju.enums.ApplyStatus;
|
|
|
import com.izouma.wenlvju.exception.BusinessException;
|
|
|
import com.izouma.wenlvju.repo.PerformanceApplyRepo;
|
|
|
import com.izouma.wenlvju.service.PerformanceApplyService;
|
|
|
@@ -99,7 +100,7 @@ public class PerformanceApplyController extends BaseController {
|
|
|
|
|
|
@ApiOperation("获取手机号/token")
|
|
|
@PostMapping("/getAuth")
|
|
|
- public Map<String, String> getAuth(Long id, String phone) {
|
|
|
+ public Map<String, String> getAuth(@RequestParam Long id, @RequestParam String phone) {
|
|
|
return performanceApplyService.getAuth(id, phone);
|
|
|
}
|
|
|
|
|
|
@@ -108,5 +109,11 @@ public class PerformanceApplyController extends BaseController {
|
|
|
public List<PerformanceApply> related(Long id) {
|
|
|
return performanceApplyService.related(id);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("获取当前活动列表")
|
|
|
+ @PostMapping("/relatedByPer")
|
|
|
+ public List<PerformanceApply> relatedByPer(@RequestParam Long performanceId) {
|
|
|
+ return performanceApplyRepo.findAllByStatusAndPerformanceId(ApplyStatus.PASS, performanceId);
|
|
|
+ }
|
|
|
}
|
|
|
|