|
@@ -2,6 +2,7 @@ package com.ym.mec.student.controller;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
|
+import com.ym.mec.biz.dal.dao.StudentPaymentOrderDao;
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
import com.ym.mec.biz.dal.dto.BuyDoubleEleven2021Dto;
|
|
import com.ym.mec.biz.dal.dto.BuyDoubleEleven2021Dto;
|
|
import com.ym.mec.biz.dal.dto.HorseRaceLampDto;
|
|
import com.ym.mec.biz.dal.dto.HorseRaceLampDto;
|
|
@@ -43,6 +44,8 @@ public class ActivityController extends BaseController {
|
|
private PracticeGroupService practiceGroupService;
|
|
private PracticeGroupService practiceGroupService;
|
|
@Autowired
|
|
@Autowired
|
|
private SysConfigDao sysConfigDao;
|
|
private SysConfigDao sysConfigDao;
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentPaymentOrderDao studentPaymentOrderDao;
|
|
|
|
|
|
@ApiOperation(value = "分部双11活动信息")
|
|
@ApiOperation(value = "分部双11活动信息")
|
|
@GetMapping("/doubleEleven2020")
|
|
@GetMapping("/doubleEleven2020")
|
|
@@ -112,4 +115,22 @@ public class ActivityController extends BaseController {
|
|
buyDoubleEleven2021Dto.setUserId(sysUser.getId());
|
|
buyDoubleEleven2021Dto.setUserId(sysUser.getId());
|
|
return succeed(practiceGroupService.buyDoubleEleven2021(buyDoubleEleven2021Dto));
|
|
return succeed(practiceGroupService.buyDoubleEleven2021(buyDoubleEleven2021Dto));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "学员已购买的双十一活动信息")
|
|
|
|
+ @GetMapping("/queryStudentDoubleEleven2021Order")
|
|
|
|
+ public Object queryStudentDoubleEleven2021Order() {
|
|
|
|
+ SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (user == null) {
|
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
|
+ }
|
|
|
|
+ String activitys = studentPaymentOrderDao.queryStudentDoubleEleven2021Order(user.getId());
|
|
|
|
+ if(StringUtils.isNotEmpty(activitys)){
|
|
|
|
+ activitys = activitys.replace("215","2")
|
|
|
|
+ .replace("216","1")
|
|
|
|
+ .replace("217","4")
|
|
|
|
+ .replace("218","3")
|
|
|
|
+ .replace("219","5");
|
|
|
|
+ }
|
|
|
|
+ return succeed(activitys);
|
|
|
|
+ }
|
|
}
|
|
}
|