Commit 5c833180 by 林永健

fix(service): 修复课程查询参数日志输出和数据分页问题

- 修复StaffTagCourseService中日志输出参数错误问题
- 修复SmartCarLife中北森课程查询结果处理逻辑
- 修复分页数据传输过程中缺失页面信息的问题
- 优化数据库查询中删除标记的过滤条件
- 添加课程数据按course_id分组以避免重复
1 parent 7cd573f8
...@@ -93,7 +93,7 @@ public class StaffTagCourseService { ...@@ -93,7 +93,7 @@ public class StaffTagCourseService {
CourseSearchReuqestDTO condition = rpcPagination.getCondition(); CourseSearchReuqestDTO condition = rpcPagination.getCondition();
parseCourseIdByStaffPhone(condition); parseCourseIdByStaffPhone(condition);
parseCourseIdByTagId(condition); parseCourseIdByTagId(condition);
log.info("查询课程参数:{}", condition); log.info("查询课程参数:{}", rpcPagination);
Page<StaffBeisenSourse> page = PageHelper.startPage(rpcPagination.getPageNum(), Page<StaffBeisenSourse> page = PageHelper.startPage(rpcPagination.getPageNum(),
rpcPagination.getPageSize()); rpcPagination.getPageSize());
staffBeisenSourseMapper.findStaffTagCoursePage(condition); staffBeisenSourseMapper.findStaffTagCoursePage(condition);
......
...@@ -60,10 +60,9 @@ ...@@ -60,10 +60,9 @@
bc.*, bc.*,
group_concat(distinct bct.tag_name) as tag_name group_concat(distinct bct.tag_name) as tag_name
from staff_beisen_course bc from staff_beisen_course bc
left join staff_beisen_course_tag bct on bct.course_id = bc.course_id left join staff_beisen_course_tag bct on bct.course_id = bc.course_id and bct.deleted_flag = "N"
where 1=1 where 1=1
and bc.deleted_flag = "N" and bc.deleted_flag = "N"
and bct.deleted_flag = "N"
and bc.course_status=40 and bc.course_status=40
<if test="condition.courseName != null"> <if test="condition.courseName != null">
and bc.course_title like concat('%',#{condition.courseName},'%') and bc.course_title like concat('%',#{condition.courseName},'%')
...@@ -86,6 +85,7 @@ ...@@ -86,6 +85,7 @@
<if test="condition.publishTimeEnd != null"> <if test="condition.publishTimeEnd != null">
and bc.publish_time &lt; #{condition.publishTimeEnd} and bc.publish_time &lt; #{condition.publishTimeEnd}
</if> </if>
group by bc.course_id
</select> </select>
<select id="findStaffTagCourseByCondition" resultMap="BaseResultMap"> <select id="findStaffTagCourseByCondition" resultMap="BaseResultMap">
select select
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!