|
|
|
@ -2,7 +2,9 @@ package cn.teammodel;
|
|
|
|
|
|
|
|
|
|
import cn.teammodel.model.entity.appraise.Appraise;
|
|
|
|
|
import cn.teammodel.model.entity.appraise.AppraiseTreeNode;
|
|
|
|
|
import cn.teammodel.model.entity.school.Semester;
|
|
|
|
|
import cn.teammodel.service.impl.EvaluationServiceImpl;
|
|
|
|
|
import cn.teammodel.utils.SchoolDateUtil;
|
|
|
|
|
import com.dingtalk.api.DefaultDingTalkClient;
|
|
|
|
|
import com.dingtalk.api.DingTalkClient;
|
|
|
|
|
import com.dingtalk.api.request.OapiRobotSendRequest;
|
|
|
|
@ -11,6 +13,7 @@ import com.taobao.api.ApiException;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -136,6 +139,16 @@ public class TestWithoutSpring {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testLocalDateTime() {
|
|
|
|
|
List<Semester> semesters = Arrays.asList(
|
|
|
|
|
new Semester("1", "上学期", 1, 2, 1),
|
|
|
|
|
new Semester("3", "下学期", 0, 8, 1),
|
|
|
|
|
new Semester("4", "下学期", 0, 11, 1),
|
|
|
|
|
new Semester("2", "下学期", 0, 5, 1)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
LocalDate currentDate = LocalDate.of(2024, 1, 1);
|
|
|
|
|
|
|
|
|
|
String currentSemester = SchoolDateUtil.getSemesterByNow(semesters, currentDate);
|
|
|
|
|
System.out.println(currentSemester);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|