Commit 68acc9ee by zhouhaibao

[+]策略中心新增学习进度

1 parent 2fde22f2
...@@ -14,4 +14,6 @@ public interface StrategyCourseRelMapper extends OreMapper<StrategyCourseRel> { ...@@ -14,4 +14,6 @@ public interface StrategyCourseRelMapper extends OreMapper<StrategyCourseRel> {
List<BeiSenCourseStaff> queryCourseLearnSituation(@Param("beisenUserId") Integer beisenUserId, @Param("courseIdList") List<String> courseIdList); List<BeiSenCourseStaff> queryCourseLearnSituation(@Param("beisenUserId") Integer beisenUserId, @Param("courseIdList") List<String> courseIdList);
List<BeiSenCourse> queryCourseDetail(@Param("courseIdList") List<String> courseIdList); List<BeiSenCourse> queryCourseDetail(@Param("courseIdList") List<String> courseIdList);
List<StrategyCourseRel> queryStrategyCourseRelList(@Param("strategyId") Integer strategyId);
} }
\ No newline at end of file \ No newline at end of file
...@@ -61,10 +61,7 @@ public class StrategyCourseRelService { ...@@ -61,10 +61,7 @@ public class StrategyCourseRelService {
* @return 策略课程关联关系 * @return 策略课程关联关系
*/ */
public List<StrategyCourseRel> queryStrategyCourseRelList(Integer strategyId) { public List<StrategyCourseRel> queryStrategyCourseRelList(Integer strategyId) {
Example example = new Example(StrategyCourseRel.class); return strategyCourseRelMapper.queryStrategyCourseRelList(strategyId);
example.createCriteria().andEqualTo("strategyId", strategyId)
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue());
return strategyCourseRelMapper.selectByExample(example);
} }
public List<BeiSenCourseStaff> queryCourseLearnSituation(Integer beisenUserId, List<String> courseIdList) { public List<BeiSenCourseStaff> queryCourseLearnSituation(Integer beisenUserId, List<String> courseIdList) {
......
...@@ -59,4 +59,20 @@ ...@@ -59,4 +59,20 @@
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="queryStrategyCourseRelList"
resultMap="BaseResultMap">
SELECT
cr.id,
cr.strategy_id,
cr.course_id,
bc.title AS course_name,
cr.created_by,
cr.created_date,
cr.updated_by,
cr.updated_date,
cr.deleted_flag
FROM dj_car_life_strategy_course_rel cr
LEFT JOIN dj_beisen_course bc ON cr.course_id = bc.id
WHERE cr.strategy_id = #{strategyId,jdbcType=INTEGER}
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!