|
@@ -8,15 +8,12 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.Set;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import com.ym.mec.biz.dal.entity.StudentRegistration;
|
|
|
import com.ym.mec.biz.dal.page.StudentRegistrationQueryInfo;
|
|
@@ -118,9 +115,9 @@ public class StudentRegistrationController extends BaseController {
|
|
|
@ApiOperation(value = "开启缴费")
|
|
|
@PostMapping("/openPayment")
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentRegistration/openPayment')")
|
|
|
- @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "报名id", required = true, dataType = "int")})
|
|
|
- public HttpResponseResult openPayment(Long id) {
|
|
|
- return succeed(studentRegistrationService.openPayment(id));
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "ids", value = "报名id(不是userId)", required = true, dataType = "array")})
|
|
|
+ public HttpResponseResult openPayment(@RequestBody Set<Long> ids) {
|
|
|
+ return succeed(studentRegistrationService.openPayment(ids));
|
|
|
}
|
|
|
|
|
|
}
|