Bläddra i källkod

refactor(app): 重构课程信息获取接口

- 修改 getCourseInfo 方法返回类型,从 VerifyCourseInfoDTO 列表改为 CoursesPriceRulesVO 列表
- 移除 VerifyCourseInfoDTO 类,简化数据结构
- 优化课程信息处理逻辑,直接在查询结果中添加额外字段
- 更新相关 mapper 和 controller 接口
SheepHy 4 dagar sedan
förälder
incheckning
7afc93e17f

+ 2 - 2
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/service/impl/AppCoureseServiceImpl.java

@@ -304,9 +304,9 @@ public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCour
                     coursesPriceRulesVO.setOrDone(true);
                 }
                 if (today.isAfter(localDate)) {
-                    coursesPriceRulesVO.setOrToday(true);
-                } else {
                     coursesPriceRulesVO.setOrToday(false);
+                } else {
+                    coursesPriceRulesVO.setOrToday(true);
                 }
                 coursesPriceRulesVO.setCourseType(key);
                 verifyCourseInfoDTOList.add(coursesPriceRulesVO);