|
@@ -0,0 +1,46 @@
|
|
|
+package com.ym.mec.student.controller;
|
|
|
+
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
|
+import com.ym.mec.biz.dal.dao.StudentDao;
|
|
|
+import com.ym.mec.biz.dal.dto.DegreeFeeDto;
|
|
|
+import com.ym.mec.biz.dal.dto.DegreePayDto;
|
|
|
+import com.ym.mec.biz.dal.entity.ChildrenDayDegreeDetail;
|
|
|
+import com.ym.mec.biz.dal.entity.ChildrenDayReserve;
|
|
|
+import com.ym.mec.biz.dal.enums.YesOrNoEnum;
|
|
|
+import com.ym.mec.biz.service.ChildrenDayDegreeDetailService;
|
|
|
+import com.ym.mec.biz.service.ChildrenDayReserveService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
+@RequestMapping("childrenDayDegreeDetail")
|
|
|
+@Api(tags = "6.1儿童节活动报名详情")
|
|
|
+@RestController
|
|
|
+public class ChildrenDayDegreeDetailController extends BaseController {
|
|
|
+ @Autowired
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
+ @Autowired
|
|
|
+ private ChildrenDayDegreeDetailService childrenDayDegreeDetailService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取用户已报名的详情,类型 1-乐器考级 2-乐理考级 3-vip1v1,4-vip1v2 5-乐理课")
|
|
|
+ @GetMapping("/getUserDegreeInfo")
|
|
|
+ public HttpResponseResult<List<ChildrenDayDegreeDetail>> getFeeInfo() {
|
|
|
+ SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
+ if (Objects.isNull(user)) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
+ }
|
|
|
+ return succeed(childrenDayDegreeDetailService.getUserDegreeInfo(user.getId()));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|