|
@@ -0,0 +1,42 @@
|
|
|
+package com.keao.edu.user.controller;
|
|
|
+
|
|
|
+import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
+import com.keao.edu.auth.api.entity.SysUser;
|
|
|
+import com.keao.edu.common.controller.BaseController;
|
|
|
+import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import com.keao.edu.user.entity.ExamRegistrationPayment;
|
|
|
+import com.keao.edu.user.entity.ExamSong;
|
|
|
+import com.keao.edu.user.service.ExamRegistrationPaymentService;
|
|
|
+import com.keao.edu.user.service.ExamRegistrationService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+@RestController
|
|
|
+@Api(tags = "报名订单服务")
|
|
|
+@RequestMapping(value = "examOrder")
|
|
|
+public class ExamOrderController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ExamRegistrationPaymentService examRegistrationPaymentService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
+
|
|
|
+ @ApiOperation("获取用户项目未支付的订单")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "examinationBasicId", value = "项目id", required = true, dataType = "Integer")})
|
|
|
+ @GetMapping(value = "/getExamIngOrder")
|
|
|
+ public HttpResponseResult<ExamRegistrationPayment> getExamIngOrder(Integer examinationBasicId) {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ return succeed(examRegistrationPaymentService.getExamIngOrder(examinationBasicId, sysUser.getId()));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|