|
@@ -2,18 +2,16 @@ package com.ym.mec.teacher.controller;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
-import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
|
-import com.ym.mec.biz.dal.entity.Employee;
|
|
|
import com.ym.mec.biz.dal.entity.StudentGoodsSell;
|
|
|
import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
|
|
|
+import com.ym.mec.biz.dal.entity.Teacher;
|
|
|
import com.ym.mec.biz.dal.enums.DealStatusEnum;
|
|
|
import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
import com.ym.mec.biz.dal.enums.OrderTypeEnum;
|
|
|
import com.ym.mec.biz.dal.page.GoodsCategoryQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.GoodsQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.GoodsSellQueryInfo;
|
|
|
-import com.ym.mec.biz.dal.page.RepairStudentQueryInfo;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
@@ -23,7 +21,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -40,7 +37,7 @@ public class EduRepairController extends BaseController {
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Autowired
|
|
|
- private EmployeeDao employeeDao;
|
|
|
+ private TeacherService teacherService;
|
|
|
@Autowired
|
|
|
private StudentRepairService studentRepairService;
|
|
|
@Autowired
|
|
@@ -104,14 +101,14 @@ public class EduRepairController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
return failed("用户信息获取失败");
|
|
|
}
|
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
+ Teacher teacher = teacherService.get(sysUser.getId());
|
|
|
if (queryInfo.getStudentShowOrganId() == null &&
|
|
|
queryInfo.getEducationShowOrganId() == null &&
|
|
|
queryInfo.getCourseFeeShowOrganId() == null &&
|
|
|
queryInfo.getMemberFeeShowOrganId() == null &&
|
|
|
queryInfo.getReplacementShowOrganId() == null) {
|
|
|
- queryInfo.setEducationShowOrganId(employee.getOrganIdList());
|
|
|
- } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
+ queryInfo.setEducationShowOrganId(teacher.getOrganId().toString());
|
|
|
+ } else if (Objects.isNull(teacher.getOrganId())) {
|
|
|
return failed("用户所在分部异常");
|
|
|
}
|
|
|
return succeed(goodsService.queryPage(queryInfo));
|