|
@@ -7,7 +7,6 @@ import com.ym.mec.auth.api.enums.YesOrNoEnum;
|
|
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.*;
|
|
-import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
|
import com.ym.mec.biz.dal.page.*;
|
|
import com.ym.mec.biz.dal.page.*;
|
|
import com.ym.mec.biz.service.ClassGroupService;
|
|
import com.ym.mec.biz.service.ClassGroupService;
|
|
import com.ym.mec.biz.service.OaUserService;
|
|
import com.ym.mec.biz.service.OaUserService;
|
|
@@ -623,11 +622,6 @@ public class TeacherServiceImpl extends BaseServiceImpl<Integer, Teacher> implem
|
|
teacherServiceMap = teacherExercisesServiceSituations.stream().collect(Collectors.toMap(TeacherExercisesServiceDto::getTeacherId, t -> t));
|
|
teacherServiceMap = teacherExercisesServiceSituations.stream().collect(Collectors.toMap(TeacherExercisesServiceDto::getTeacherId, t -> t));
|
|
}
|
|
}
|
|
|
|
|
|
- Map<Integer, String> operatingStudentsNum = MapUtil.convertMybatisMap(studentDao.getTeacherOperatingStudentsNum(id.toString()));
|
|
|
|
- Map<Integer, String> practiceStudentsNum = MapUtil.convertMybatisMap(studentDao.getBuyNums(id.toString(), GroupType.PRACTICE));
|
|
|
|
- Map<Integer, String> vipStudentsNum = MapUtil.convertMybatisMap(studentDao.getBuyNums(id.toString(), GroupType.VIP));
|
|
|
|
- Map<Integer, String> practiceAndVipStudentsNum = MapUtil.convertMybatisMap(studentDao.getPracticeAndVipNums(id.toString()));
|
|
|
|
-
|
|
|
|
//获取老师教学点列表
|
|
//获取老师教学点列表
|
|
List<School> teacherSchools = schoolDao.findByUserId(id);
|
|
List<School> teacherSchools = schoolDao.findByUserId(id);
|
|
teacher.setTeacherSchools(teacherSchools);
|
|
teacher.setTeacherSchools(teacherSchools);
|
|
@@ -654,18 +648,6 @@ public class TeacherServiceImpl extends BaseServiceImpl<Integer, Teacher> implem
|
|
} else {
|
|
} else {
|
|
teacher.setServiceIndex(BigDecimal.ZERO);
|
|
teacher.setServiceIndex(BigDecimal.ZERO);
|
|
}
|
|
}
|
|
- //运营指标
|
|
|
|
- String studentNum = operatingStudentsNum.get(id);
|
|
|
|
- if (studentNum != null) {
|
|
|
|
- String practiceNum = practiceStudentsNum.get(id) == null ? "0" : practiceStudentsNum.get(id);
|
|
|
|
- String vipNum = vipStudentsNum.get(id) == null ? "0" : vipStudentsNum.get(id);
|
|
|
|
- String practiceAndVipNum = practiceAndVipStudentsNum.get(id) == null ? "0" : practiceAndVipStudentsNum.get(id);
|
|
|
|
- int allNum = Integer.parseInt(practiceNum) + Integer.parseInt(vipNum) - Integer.parseInt(practiceAndVipNum);
|
|
|
|
- BigDecimal operatingIndex = new BigDecimal(allNum).multiply(new BigDecimal(100)).divide(new BigDecimal(studentNum), CommonConstants.DECIMAL_FINAL_PLACE, BigDecimal.ROUND_HALF_UP);
|
|
|
|
- teacher.setOperatingIndex(operatingIndex);
|
|
|
|
- } else {
|
|
|
|
- teacher.setOperatingIndex(BigDecimal.ZERO);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
return teacher;
|
|
return teacher;
|
|
}
|
|
}
|