Sfoglia il codice sorgente

refactor(system): 将 AppCourese 相关类名统一修改为 AppCourses

- 修改了 AppCoureseServiceImpl、AppCoureseMapper 和 AppCoursesMapper 的类名- 更新了相关的 XML 文件名- 调整了 AppHomeServiceImpl 中的相关引用
SheepHy 3 settimane fa
parent
commit
0d1bcf93bd

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

@@ -30,7 +30,7 @@ public class AppHomeServiceImpl implements IAppHomeService {
     @Resource
     private AppBannerMapper appBannerMapper;
     @Resource
-    private AppCoureseMapper appCoureseMapper;
+    private AppCoursesMapper appCoursesMapper;
     @Resource
     private AppInstructorMapper appInstructorMapper;
     @Resource
@@ -49,11 +49,11 @@ public class AppHomeServiceImpl implements IAppHomeService {
                 .eq(AppBanner::getDelFlag, 0).eq(AppBanner::getIsEnabled,1));
 
         // 精品课程(最多3个)
-        List<AppCourese> appCoureseFine = appCoureseMapper.selectList(Wrappers.<AppCourese>lambdaQuery()
+        List<AppCourese> appCoureseFine = appCoursesMapper.selectList(Wrappers.<AppCourese>lambdaQuery()
                 .eq(AppCourese::getPriceType, 0).last("LIMIT 3"));
 
         // 免费课程(最多3个)
-        List<AppCourese> appCoureseFree = appCoureseMapper.selectList(Wrappers.<AppCourese>lambdaQuery()
+        List<AppCourese> appCoureseFree = appCoursesMapper.selectList(Wrappers.<AppCourese>lambdaQuery()
                 .eq(AppCourese::getPriceType, 1).last("LIMIT 3"));
 
         // 合并课程信息
@@ -93,7 +93,7 @@ public class AppHomeServiceImpl implements IAppHomeService {
                             .eq(SysDepart::getOrgCode, sysUser.getOrgCode())).getDepartName());
 
             // 获取该教练的课程(最多取2个)
-            List<AppCourese> courses = appCoureseMapper.selectList(
+            List<AppCourese> courses = appCoursesMapper.selectList(
                     Wrappers.<AppCourese>lambdaQuery().eq(AppCourese::getUserId, userId).last("LIMIT 2"));
 
             List<InstructorVO.CourseInfoVO> courseInfoVOS = courses.stream()
@@ -226,7 +226,7 @@ public class AppHomeServiceImpl implements IAppHomeService {
      **/
     private Page<SearchVO.SearchTrainVO> convertSearchTrainVOPage(SearchDTO searchDTO) {
         Page<SearchVO.SearchTrainVO> page = new Page<>(searchDTO.getCurrent(), searchDTO.getSize());
-        Page<SearchVO.SearchTrainVO> searchTrainVOPage = appCoureseMapper.convertSearchTrainVOPage(page, searchDTO);
+        Page<SearchVO.SearchTrainVO> searchTrainVOPage = appCoursesMapper.convertSearchTrainVOPage(page, searchDTO);
         searchTrainVOPage.getRecords().forEach(trainVO -> {
             //todo 待申请第三方地图接口
             trainVO.setKm(0.0);

+ 2 - 2
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/AppCoureseMapper.java → national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/AppCoursesMapper.java

@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import org.apache.ibatis.annotations.Param;
 import org.jeecg.modules.app.dto.SearchDTO;
 import org.jeecg.modules.app.vo.SearchVO;
-import org.jeecg.modules.system.app.entity.AppCourese;
+import org.jeecg.modules.system.app.entity.AppCourses;
 
 /**
  * @Description: 课程/培训表
@@ -13,7 +13,7 @@ import org.jeecg.modules.system.app.entity.AppCourese;
  * @Date:   2025-07-03
  * @Version: V1.0
  */
-public interface AppCoureseMapper extends BaseMapper<AppCourese> {
+public interface AppCoursesMapper extends BaseMapper<AppCourses> {
     /**
      * @Author SheepHy
      * @Description 培训课程分页查询

+ 1 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppCoureseMapper.xml → national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppCoursesMapper.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="org.jeecg.modules.system.app.mapper.AppCoureseMapper">
+<mapper namespace="org.jeecg.modules.system.app.mapper.AppCoursesMapper">
     <select id="convertSearchTrainVOPage" resultType="org.jeecg.modules.app.vo.SearchVO$SearchTrainVO">
         SELECT
             a.id,

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

@@ -7,7 +7,7 @@ import org.jeecg.common.system.vo.LoginUser;
 import org.jeecg.modules.system.app.dto.AppCoursesDTO;
 import org.jeecg.modules.system.app.entity.AppCourses;
 import org.jeecg.modules.system.app.entity.AppCoursesPriceRules;
-import org.jeecg.modules.system.app.mapper.AppCoureseMapper;
+import org.jeecg.modules.system.app.mapper.AppCoursesMapper;
 import org.jeecg.modules.system.app.mapper.AppCoursesPriceRulesMapper;
 import org.jeecg.modules.system.app.service.IAppCoureseService;
 import org.springframework.stereotype.Service;
@@ -26,7 +26,7 @@ import static org.jeecg.common.constant.CommonConstant.SC_INTERNAL_SERVER_ERROR_
  * @Version: V1.0
  */
 @Service
-public class AppCoureseServiceImpl extends ServiceImpl<AppCoureseMapper, AppCourses> implements IAppCoureseService {
+public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCourses> implements IAppCoureseService {
     @Resource
     AppCoursesPriceRulesMapper coursesPriceRulesMapper;