zouxuan 3 лет назад
Родитель
Сommit
1f0f5ff048

+ 4 - 1
mec-teacher/src/main/java/com/ym/mec/teacher/controller/TeacherPracticeGroupController.java

@@ -45,7 +45,10 @@ public class TeacherPracticeGroupController extends BaseController {
 			return failed("用户信息获取失败");
 		}
 		Teacher teacher = teacherDao.get(sysUser.getId());
-		return succeed(practiceGroupSellPriceDao.get(teacher.getOrganId()));
+		if(Objects.isNull(teacher)){
+			return failed("请指定指导老师!");
+		}
+		return succeed(practiceGroupSellPriceDao.get(teacher.getTeacherOrganId()));
 	}
 
 	@ApiOperation("课酬总费用")

+ 1 - 9
mec-web/src/main/java/com/ym/mec/web/controller/PracticeGroupManageController.java

@@ -177,15 +177,7 @@ public class PracticeGroupManageController extends BaseController {
     @RequestMapping("/queryPracticeGroupSellPrice")
     @PreAuthorize("@pcs.hasPermissions('practiceGroupManage/queryPracticeGroupSellPrice')")
     public Object queryPracticeGroupSellPrice(Integer organId){
-        SysUser sysUser = sysUserFeignService.queryUserInfo();
-        if (sysUser == null) {
-            return failed("用户信息获取失败");
-        }
-        Teacher teacher = teacherDao.get(sysUser.getId());
-        if(Objects.isNull(teacher)){
-            return failed("请指定指导老师!");
-        }
-        return succeed(practiceGroupSellPriceDao.get(teacher.getTeacherOrganId()));
+        return succeed(practiceGroupSellPriceDao.get(organId));
     }
 
     @ApiOperation(value = "网管课申请")