develop
hhb@hotmail.com 3 weeks ago
parent a04ba227ec
commit af6536c0fe

@ -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();

@ -734,7 +734,7 @@ public class TeacherServiceImpl implements TeacherService {
try { try {
gradeMap = GroupUtil.getTeacherInfo(gpTeacherDto,new GroupUtil(env), request); gradeMap = GroupUtil.getTeacherInfo(gpTeacherDto,new GroupUtil(env), request);
}catch (Exception e) { }catch (Exception e) {
throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "数据转换错误"); throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "国培数据转换错误");
} }
return gradeMap; return gradeMap;

Loading…
Cancel
Save