|
@@ -1,11 +1,17 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
-import com.ym.mec.biz.service.SysTenantConfigService;
|
|
|
+import com.ym.mec.biz.dal.dto.StudentVipGroupShowListDto;
|
|
|
+import com.ym.mec.biz.dal.page.StudentVipGroupQueryInfo;
|
|
|
+import com.ym.mec.biz.service.*;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -17,11 +23,10 @@ import com.ym.mec.biz.dal.dao.TeacherDao;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
import com.ym.mec.biz.dal.entity.SysUserCashAccount;
|
|
|
import com.ym.mec.biz.dal.entity.Teacher;
|
|
|
-import com.ym.mec.biz.service.ImGroupService;
|
|
|
-import com.ym.mec.biz.service.PracticeGroupService;
|
|
|
-import com.ym.mec.biz.service.PracticeLessonApplyService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RequestMapping("api")
|
|
|
@Api(tags = "对外接口")
|
|
|
@RestController
|
|
@@ -43,6 +48,10 @@ public class APIController extends BaseController {
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Autowired
|
|
|
private SysTenantConfigService sysTenantConfigService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserService sysUserService;
|
|
|
+ @Autowired
|
|
|
+ private VipGroupService vipGroupService;
|
|
|
|
|
|
@GetMapping("/createCashAccount")
|
|
|
public Boolean createCashAccount(Integer userId,Integer tenantId) {
|
|
@@ -103,4 +112,15 @@ public class APIController extends BaseController {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取可购买vip、网管课列表")
|
|
|
+ @RequestMapping(value = "/queryVipPracticeGroups")
|
|
|
+ public Boolean queryVipPracticeGroups(){
|
|
|
+ SysUser sysUser = sysUserService.getUser();
|
|
|
+ StudentVipGroupQueryInfo queryInfo = new StudentVipGroupQueryInfo();
|
|
|
+ queryInfo.setOrganId(sysUser.getOrganId());
|
|
|
+ queryInfo.setUserId(sysUser.getId());
|
|
|
+ List<StudentVipGroupShowListDto> listDtos = vipGroupService.queryVipPracticeGroups(queryInfo);
|
|
|
+ return CollectionUtils.isEmpty(listDtos)?false:true;
|
|
|
+ }
|
|
|
+
|
|
|
}
|