|
@@ -20,6 +20,7 @@ import java.util.Optional;
|
|
|
import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import com.ym.mec.biz.service.StudentExtracurricularExercisesSituationService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -85,6 +86,8 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
@Autowired
|
|
|
private StudentExtracurricularExercisesSituationDao studentExtracurricularExercisesSituationDao;
|
|
|
@Autowired
|
|
|
+ private StudentExtracurricularExercisesSituationService studentExtracurricularExercisesSituationService;
|
|
|
+ @Autowired
|
|
|
private StudentServeService studentServeService;
|
|
|
@Autowired
|
|
|
private SysTenantConfigService sysTenantConfigService;
|
|
@@ -322,7 +325,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
currentPage=currentPage.add(BigDecimal.ONE);
|
|
|
}
|
|
|
|
|
|
- studentExtracurricularExercisesSituationDao.deleteByMonday(monDayDate.toString(), null);
|
|
|
+ studentExtracurricularExercisesSituationService.deleteByMonday(monDayDate.toString(), null);
|
|
|
|
|
|
BigDecimal currentPage1=BigDecimal.ONE,
|
|
|
pageSize1=new BigDecimal(10000),
|
|
@@ -331,7 +334,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
|
|
|
while (currentPage1.compareTo(totalPage1)<=0){
|
|
|
List<StudentExtracurricularExercisesSituation> rows=results.stream().skip(pageSize1.multiply(currentPage1.subtract(BigDecimal.ONE)).longValue()).limit(pageSize1.longValue()).collect(Collectors.toList());
|
|
|
- studentExtracurricularExercisesSituationDao.batchInsert(rows);
|
|
|
+ studentExtracurricularExercisesSituationService.batchInsert(rows);
|
|
|
currentPage1=currentPage1.add(BigDecimal.ONE);
|
|
|
}
|
|
|
}
|
|
@@ -389,7 +392,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
|
|
|
//节假日不产生服务指标
|
|
|
if(weekInHoliday){
|
|
|
- studentExtracurricularExercisesSituationDao.deleteByMonday(monDayDate.toString(), studentIds);
|
|
|
+ studentExtracurricularExercisesSituationService.deleteByMonday(monDayDate.toString(), studentIds);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -660,7 +663,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- studentExtracurricularExercisesSituationDao.deleteByMonday(monDayDate.toString(), null);
|
|
|
+ studentExtracurricularExercisesSituationService.deleteByMonday(monDayDate.toString(), null);
|
|
|
|
|
|
BigDecimal currentPage1=BigDecimal.ONE,
|
|
|
pageSize1=new BigDecimal(10000),
|
|
@@ -670,7 +673,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
while (currentPage1.compareTo(totalPage1)<=0){
|
|
|
List<StudentExtracurricularExercisesSituation> rows=results.stream().skip(pageSize1.multiply(currentPage1.subtract(BigDecimal.ONE)).longValue()).limit(pageSize1.longValue()).collect(Collectors.toList());
|
|
|
|
|
|
- studentExtracurricularExercisesSituationDao.batchInsert(rows);
|
|
|
+ studentExtracurricularExercisesSituationService.batchInsert(rows);
|
|
|
|
|
|
currentPage1=currentPage1.add(BigDecimal.ONE);
|
|
|
}
|
|
@@ -1090,12 +1093,4 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private Date LocalDateToUdate(LocalDate localDate) {
|
|
|
- ZoneId zone = ZoneId.systemDefault();
|
|
|
- Instant instant = localDate.atStartOfDay().atZone(zone).toInstant();
|
|
|
- return Date.from(instant);
|
|
|
- }
|
|
|
}
|