Commit 318b3b53 authored by zhangqingle's avatar zhangqingle

修改编辑章节问题

parent c1d60db3
...@@ -310,7 +310,7 @@ public class BChapterServiceImpl implements BChapterService { ...@@ -310,7 +310,7 @@ public class BChapterServiceImpl implements BChapterService {
int x = bFileRepository.updateUploadFile(bFile); int x = bFileRepository.updateUploadFile(bFile);
// 判断 新文件 更新 课程学习进度(总进度 此章节进度) // 判断 新文件 更新 课程学习进度(总进度 此章节进度)
if (!(bFileOld.getVideoUrl().equals(dto.getVideoUrl())) ) { if (StringUtils.isNotEmpty(dto.getVideoUrl()) && !(bFileOld.getVideoUrl().equals(dto.getVideoUrl())) ) {
// 所有学习过此课程的 学生课程信息 // 所有学习过此课程的 学生课程信息
List<BLessonPerson> bLessonPersonList = bLessonPersonRepository.selectByLessonId(chapterDTO.getLessonId()); List<BLessonPerson> bLessonPersonList = bLessonPersonRepository.selectByLessonId(chapterDTO.getLessonId());
BLesson bLesson = bLessonRepository.selectByPrimaryKey(chapterDTO.getLessonId()); BLesson bLesson = bLessonRepository.selectByPrimaryKey(chapterDTO.getLessonId());
......
...@@ -28,7 +28,7 @@ public interface BDictionaryRepository extends BaseMapper<BDictionary> { ...@@ -28,7 +28,7 @@ public interface BDictionaryRepository extends BaseMapper<BDictionary> {
" <if test=\"configList != null and configList.size()>0 \">and type in " + " <if test=\"configList != null and configList.size()>0 \">and type in " +
" <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> " + " <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> " +
" </if> " + " </if> " +
" order by sort"+ " order by CAST(sort AS UNSIGNED) "+
" </script>") " </script>")
@ResultMap(value = "BaseResultMap" ) @ResultMap(value = "BaseResultMap" )
List<BDictionary> findAllColumnConfig(@Param("curUser") CurUser curUser, @Param("configList") List<String> configList); List<BDictionary> findAllColumnConfig(@Param("curUser") CurUser curUser, @Param("configList") List<String> configList);
......
...@@ -58,7 +58,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -58,7 +58,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where " + " where " +
" blp.del_flag != 1 and blp.flag = 1 " + " blp.del_flag != 1 and blp.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " + " <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " +
" and blp.lesson_id = #{param.lessonId}) countAll, " + " and blp.lesson_id = #{param.lessonId}) countAll, " +
...@@ -66,7 +66,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -66,7 +66,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where " + " where " +
" blp.del_flag != 1 and blp.flag = 1 " + " blp.del_flag != 1 and blp.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and blp.is_finish = 0 " + " and blp.is_finish = 0 " +
" <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " + " <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " +
" and blp.lesson_id = #{param.lessonId}) countNotStart, " + " and blp.lesson_id = #{param.lessonId}) countNotStart, " +
...@@ -75,7 +75,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -75,7 +75,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where " + " where " +
" blp.del_flag != 1 and blp.flag = 1 " + " blp.del_flag != 1 and blp.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and blp.is_finish = 1 " + " and blp.is_finish = 1 " +
" <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " + " <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " +
" and blp.lesson_id = #{param.lessonId}) countOngoing, " + " and blp.lesson_id = #{param.lessonId}) countOngoing, " +
...@@ -84,7 +84,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -84,7 +84,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where " + " where " +
" blp.del_flag != 1 and blp.flag = 1 " + " blp.del_flag != 1 and blp.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and blp.is_finish = 2 " + " and blp.is_finish = 2 " +
" <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " + " <if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " +
" and blp.lesson_id = #{param.lessonId}) countFinish" + " and blp.lesson_id = #{param.lessonId}) countFinish" +
...@@ -108,11 +108,11 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> { ...@@ -108,11 +108,11 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
// "left join b_appoint ba on ba.lesson_id = bl.business_id " + // "left join b_appoint ba on ba.lesson_id = bl.business_id " +
"where blp.del_flag != 1 and blp.flag = 1 " + "where blp.del_flag != 1 and blp.flag = 1 " +
"and bl.del_flag != 1 and bl.flag = 1 " + "and bl.del_flag != 1 and bl.flag = 1 " +
"and su.del_flag != 1 and su.flag = 1 " + // "and su.del_flag != 1 and su.flag = 1 " +
"and bl.corp_id = #{param.corpId} "+ "and bl.corp_id = #{param.corpId} "+
// "and blp.corp_id = #{param.corpId} "+ // "and blp.corp_id = #{param.corpId} "+
"and su.corp_id = #{param.corpId} "+ // "and su.corp_id = #{param.corpId} "+
"and bl.business_id = #{param.lessonId} "+ "and bl.business_id = #{param.lessonId} "+
"<if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " + "<if test= \" param.isAppoint != null and param.isAppoint != ''\">and blp.is_appoint = #{param.isAppoint} </if> " +
......
...@@ -594,7 +594,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -594,7 +594,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where blp.del_flag != 1 and blp.flag = 1 " + " where blp.del_flag != 1 and blp.flag = 1 " +
" and bl.del_flag != 1 and bl.flag = 1 " + " and bl.del_flag != 1 and bl.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and bl.lesson_type = 1 " + " and bl.lesson_type = 1 " +
" and blp.lesson_id = #{lessonId} and blp.train_is_sign is not null ) learnAllCount, " + " and blp.lesson_id = #{lessonId} and blp.train_is_sign is not null ) learnAllCount, " +
...@@ -603,7 +603,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -603,7 +603,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where blp.del_flag != 1 and blp.flag = 1 " + " where blp.del_flag != 1 and blp.flag = 1 " +
" and bl.del_flag != 1 and bl.flag = 1 " + " and bl.del_flag != 1 and bl.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and bl.lesson_type = 1 " + " and bl.lesson_type = 1 " +
" and blp.lesson_id = #{lessonId} and blp.train_is_sign = '2') finishCount, " + " and blp.lesson_id = #{lessonId} and blp.train_is_sign = '2') finishCount, " +
...@@ -612,7 +612,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -612,7 +612,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where blp.del_flag != 1 and blp.flag = 1 " + " where blp.del_flag != 1 and blp.flag = 1 " +
" and bl.del_flag != 1 and bl.flag = 1 " + " and bl.del_flag != 1 and bl.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and bl.lesson_type = 1 " + " and bl.lesson_type = 1 " +
" and blp.lesson_id = #{lessonId} and blp.train_is_sign = '1') notFinishCount, " + " and blp.lesson_id = #{lessonId} and blp.train_is_sign = '1') notFinishCount, " +
...@@ -621,7 +621,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -621,7 +621,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" left join s_user su on blp.person_id = su.business_id " + " left join s_user su on blp.person_id = su.business_id " +
" where blp.del_flag != 1 and blp.flag = 1 " + " where blp.del_flag != 1 and blp.flag = 1 " +
" and bl.del_flag != 1 and bl.flag = 1 " + " and bl.del_flag != 1 and bl.flag = 1 " +
" and su.del_flag != 1 and su.flag = 1 " + // " and su.del_flag != 1 and su.flag = 1 " +
" and bl.lesson_type = 1 " + " and bl.lesson_type = 1 " +
" and blp.lesson_id = #{lessonId} and blp.train_is_sign = '0') notStartCount " + " and blp.lesson_id = #{lessonId} and blp.train_is_sign = '0') notStartCount " +
"</script>"}) "</script>"})
......
...@@ -76,7 +76,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> { ...@@ -76,7 +76,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> {
" <if test=\"viewParam!=null and viewParam != ''\">and su.name like CONCAT('%',#{viewParam},'%')</if>" + " <if test=\"viewParam!=null and viewParam != ''\">and su.name like CONCAT('%',#{viewParam},'%')</if>" +
" and brs.type = '0' "+ " and brs.type = '0' "+
" and br.lesson_id = #{lessonId}" + " and br.lesson_id = #{lessonId}" +
" order by brs.sort asc "+ " order by CAST(brs.sort AS UNSIGNED) asc "+
"</script>") "</script>")
List<FindLessonRecommendRspDTO> queryRecommendPersonByLessonId(FindLessonRecommendDTO param); List<FindLessonRecommendRspDTO> queryRecommendPersonByLessonId(FindLessonRecommendDTO param);
...@@ -96,7 +96,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> { ...@@ -96,7 +96,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> {
" </if> " + " </if> " +
" and br.lesson_id = #{lessonId}" + " and br.lesson_id = #{lessonId}" +
" order by brs.sort asc "+ " order by CAST(brs.sort AS UNSIGNED) asc "+
"</script>") "</script>")
List<FindLessonRecommendRspDTO> queryRecommendDepartByLessonId(FindLessonRecommendDTO param); List<FindLessonRecommendRspDTO> queryRecommendDepartByLessonId(FindLessonRecommendDTO param);
} }
......
...@@ -62,7 +62,7 @@ public interface BViewrangeRepository extends BaseMapper<BViewrange> { ...@@ -62,7 +62,7 @@ public interface BViewrangeRepository extends BaseMapper<BViewrange> {
" and bv.corp_id = #{corpId} "+ " and bv.corp_id = #{corpId} "+
" order by bvs.sort asc "+ " order by CAST(bvs.sort AS UNSIGNED) asc "+
"</script>") "</script>")
List<BViewRangeSonDTO> selectDepartByLessonId(@Param("corpId") String corpId,@Param("lessonId")String lessonId); List<BViewRangeSonDTO> selectDepartByLessonId(@Param("corpId") String corpId,@Param("lessonId")String lessonId);
...@@ -81,7 +81,7 @@ public interface BViewrangeRepository extends BaseMapper<BViewrange> { ...@@ -81,7 +81,7 @@ public interface BViewrangeRepository extends BaseMapper<BViewrange> {
" and bv.corp_id = #{corpId} "+ " and bv.corp_id = #{corpId} "+
" order by bvs.sort asc "+ " order by CAST(bvs.sort AS UNSIGNED) asc "+
"</script>") "</script>")
List<BViewRangeSonDTO> selectPersonByLessonId(@Param("corpId") String corpId,@Param("lessonId")String lessonId); List<BViewRangeSonDTO> selectPersonByLessonId(@Param("corpId") String corpId,@Param("lessonId")String lessonId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment