feat(student-plan): 实现学生学案查询功能
- 新增FindStudentPlansReqVO和FindStudentPlansRspVO定义请求和响应数据结构 - 新增LessonPlanItem用于描述单个学案项 - StudentLessonPlansDO模型新增isFinished属性 - 扩展StudentLessonPlansDOMapper,添加分页及按姓名查询学生学案列表方法及统计总数方法 - 扩展LessonPlansDOMapper,新增按学案ID列表批量查询方法 - 实现StudentLessonPlansService及LessonPlansService接口对应查询方法 - 新增StudentLessonPlansController,提供学生学案分页查询接口 - 在前端LearningPlan.vue添加学案查询界面及分页、搜索功能 - 封装studentLessonPlans接口axios方法,支持分页按姓名查询学生学案数据 - 添加单元测试更新验证数据库查询正确性
This commit is contained in:
@@ -17,7 +17,7 @@ public class PlanTest {
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
LessonPlansDO lessonPlansDO = lessonPlansDOMapper.selectById(21);
|
||||
LessonPlansDO lessonPlansDO = lessonPlansDOMapper.selectById(58);
|
||||
Map<String, Object> stringObjectMap = JsonUtils.parseMap(lessonPlansDO.getContentDetails(), String.class, Object.class);
|
||||
for (Map.Entry<String, Object> entry : stringObjectMap.entrySet()) {
|
||||
System.out.println(entry.getKey());
|
||||
|
||||
Reference in New Issue
Block a user