|
@@ -2,6 +2,8 @@ package com.ym.mec.student.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.biz.dal.dao.*;
|
|
import com.ym.mec.biz.dal.dao.*;
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
@@ -28,6 +30,7 @@ import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.http.HttpStatus;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.DigestUtils;
|
|
import org.springframework.util.DigestUtils;
|
|
@@ -78,6 +81,8 @@ public class StudentOrderController extends BaseController {
|
|
private LuckDrawCountService luckDrawCountService;
|
|
private LuckDrawCountService luckDrawCountService;
|
|
@Autowired
|
|
@Autowired
|
|
private DegreeRegistrationDao degreeRegistrationDao;
|
|
private DegreeRegistrationDao degreeRegistrationDao;
|
|
|
|
+ @Autowired
|
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
|
|
|
|
@Value("${spring.profiles.active:dev}")
|
|
@Value("${spring.profiles.active:dev}")
|
|
@@ -747,4 +752,14 @@ public class StudentOrderController extends BaseController {
|
|
practice4Organs = practice4Organs.stream().sorted(Comparator.comparingDouble(Practice4OrganDto::getScale).reversed()).collect(Collectors.toList());
|
|
practice4Organs = practice4Organs.stream().sorted(Comparator.comparingDouble(Practice4OrganDto::getScale).reversed()).collect(Collectors.toList());
|
|
return succeed(practice4Organs);
|
|
return succeed(practice4Organs);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @GetMapping("/getUserApplyOrders")
|
|
|
|
+ public HttpResponseResult<List<StudentPaymentOrderExportDto>> getUserApplyOrders(String musicGroupId){
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (sysUser == null) {
|
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
|
+ }
|
|
|
|
+ return succeed(studentPaymentOrderDao.getUserApplyOrders(sysUser.getId(),musicGroupId));
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|