|
@@ -11,15 +11,13 @@ import com.ym.mec.biz.dal.enums.CourseStatusEnum;
|
|
|
import com.ym.mec.biz.dal.enums.StudentMusicGroupStatusEnum;
|
|
|
import com.ym.mec.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.ym.mec.biz.dal.page.*;
|
|
|
-import com.ym.mec.biz.service.CloudTeacherOrderService;
|
|
|
-import com.ym.mec.biz.service.StudentManageService;
|
|
|
-import com.ym.mec.biz.service.StudentService;
|
|
|
-import com.ym.mec.biz.service.SysConfigService;
|
|
|
+import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.entity.ImResult;
|
|
|
import com.ym.mec.common.entity.ImUserModel;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.ym.mec.im.ImFeignService;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
@@ -104,6 +102,8 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
private OrganizationDegreeCourseFeeDao organizationDegreeCourseFeeDao;
|
|
|
@Autowired
|
|
|
private ActivityUserMapperDao activityUserMapperDao;
|
|
|
+ @Autowired
|
|
|
+ private SysTenantConfigService sysTenantConfigService;
|
|
|
|
|
|
@Override
|
|
|
public PageInfo<StudentManageListDto> findStudentsByOrganId(StudentManageQueryInfo queryInfo) {
|
|
@@ -912,6 +912,12 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
//学员请假异常提醒(获取前两个月的)
|
|
|
Date date = new Date();
|
|
|
PageInfo<StudentErrorLeaveDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
+
|
|
|
+ Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
+ String studentErrorLeaveNum = sysTenantConfigService.getTenantConfigValue(SysConfigService.STUDENT_ERROR_LEAVE_NUM, tenantId);
|
|
|
+ if(StringUtils.isEmpty(studentErrorLeaveNum)){
|
|
|
+ return pageInfo;
|
|
|
+ }
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
params.put("offset", pageInfo.getOffset());
|
|
@@ -931,6 +937,7 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
List<StudentErrorLeaveDto> dataList = new ArrayList<>();
|
|
|
if (count > 0) {
|
|
|
//获取近两个月异常请假次数
|
|
|
+ params.put("studentErrorLeave",studentErrorLeaveNum);
|
|
|
Map<Integer,BigDecimal> leaveNumMap = MapUtil.convertIntegerMap(indexBaseMonthDataDao.getStudentErrorLeaveNumMap(params));
|
|
|
pageInfo.setTotal(count);
|
|
|
dataList = indexBaseMonthDataDao.queryStudentErrorLeave(params);
|