|
@@ -2,11 +2,9 @@ package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.OrganizationDao;
|
|
import com.ym.mec.biz.dal.dao.OrganizationDao;
|
|
import com.ym.mec.biz.dal.dto.IndexBaseDto;
|
|
import com.ym.mec.biz.dal.dto.IndexBaseDto;
|
|
|
|
+import com.ym.mec.biz.dal.entity.IndexErrInfoDto;
|
|
import com.ym.mec.biz.dal.entity.Organization;
|
|
import com.ym.mec.biz.dal.entity.Organization;
|
|
-import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
|
-import com.ym.mec.biz.dal.enums.IndexDataType;
|
|
|
|
-import com.ym.mec.biz.dal.enums.JobNatureEnum;
|
|
|
|
-import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.common.constant.CommonConstants;
|
|
import com.ym.mec.common.constant.CommonConstants;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
@@ -279,4 +277,18 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
indexBaseMonthDataDao.deleteWithMonthAndType(Arrays.asList(startMonth), indexDataType);
|
|
indexBaseMonthDataDao.deleteWithMonthAndType(Arrays.asList(startMonth), indexDataType);
|
|
indexBaseMonthDataDao.batchInsertWithDataType(dataList, indexDataType);
|
|
indexBaseMonthDataDao.batchInsertWithDataType(dataList, indexDataType);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<IndexErrInfoDto> getIndexErrData(String organIdsStr) {
|
|
|
|
+ Set<Integer> organIds = null;
|
|
|
|
+ if(StringUtils.isNotBlank(organIdsStr)){
|
|
|
|
+ organIds = Arrays.stream(organIdsStr.split(",")).map(Integer::new).collect(Collectors.toSet());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<IndexErrInfoDto> result = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ result.add(new IndexErrInfoDto(IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE, IndexErrorType.HIGH_CLASS_STUDENT_LESS_THAN_THREE.getMsg(), indexBaseMonthDataDao.getLessThenThreeMusicGroup(organIds)));
|
|
|
|
+
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
}
|
|
}
|