|
|
@ -12,7 +12,6 @@ import cn.teammodel.repository.CommentRepository;
|
|
|
|
import cn.teammodel.repository.SchoolRepository;
|
|
|
|
import cn.teammodel.repository.SchoolRepository;
|
|
|
|
import cn.teammodel.utils.MonthToNumberConverter;
|
|
|
|
import cn.teammodel.utils.MonthToNumberConverter;
|
|
|
|
import com.azure.cosmos.models.PartitionKey;
|
|
|
|
import com.azure.cosmos.models.PartitionKey;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
@ -41,9 +40,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
|
//获取当前学校该学段下详细信息
|
|
|
|
//获取当前学校该学段下详细信息
|
|
|
|
List<School.Period> period = schoolRepository.findPeriodById(gcDto.getSchoolId(), gcDto.getPeriodId());
|
|
|
|
List<School.Period> period = schoolRepository.findPeriodById(gcDto.getSchoolId(), gcDto.getPeriodId());
|
|
|
|
List<ClassInfo> classes = classRepository.findClassBySchoolIdAndPeriodId(gcDto.getPeriodId());
|
|
|
|
List<ClassInfo> classes = classRepository.findClassBySchoolIdAndPeriodId(gcDto.getPeriodId());
|
|
|
|
int year = 0;
|
|
|
|
int year;
|
|
|
|
int mon = 0;
|
|
|
|
int mon;
|
|
|
|
int day = 0;
|
|
|
|
int day;
|
|
|
|
if (gcDto.getTime() != null && gcDto.getTime() != 0L) {
|
|
|
|
if (gcDto.getTime() != null && gcDto.getTime() != 0L) {
|
|
|
|
LocalDate date = Instant.ofEpochMilli(gcDto.getTime()).atZone(ZoneId.systemDefault()).toLocalDate();
|
|
|
|
LocalDate date = Instant.ofEpochMilli(gcDto.getTime()).atZone(ZoneId.systemDefault()).toLocalDate();
|
|
|
|
year = date.getYear();
|
|
|
|
year = date.getYear();
|
|
|
|