Commit 8b6fa377 authored by luzhuang's avatar luzhuang

feat: 外链管理

parent 17ac1eba
......@@ -52,6 +52,13 @@ public class BExternalLink extends IdEntity<BExternalLink> {
private String corpId;
@ApiModelProperty(value = "平台推送标志(1:推荐 其他:非推荐)")
private String isPush;
@ApiModelProperty(value = "推送源主键id")
private String supperId;
public BExternalLink(String businessId){
this.businessId = businessId;
}
......
......@@ -801,7 +801,7 @@ public class BLessonController extends PaginationController<BLesson> {
* @return
*/
@ApiOperation(value = "646 分页查询平台推荐", notes = "分页查询平台推荐", response = BLesson.class)
@GetMapping(value = "/queryPersonMoreByPagination")
@GetMapping(value = "/queryPushByPagination")
public Result queryPushByPagination(CurUser curUser, BindingResult bindingResult) {
bLessonService.queryPushByPagination(getPaginationUtility(), curUser);
GridModel gridModel = getGridModelResponse();
......
......@@ -357,7 +357,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @param lessonId
* @return
*/
@Select(" <script> select * from ( " +
@Select("select * from ( " +
"select business_id businessId,l_name lName from b_label " +
"where business_id in (SELECT " +
"SUBSTRING_INDEX(SUBSTRING_INDEX((select push_lable from b_lesson where business_id = #{lessonId}),',',help_topic_id+1),',',-1) AS num " +
......@@ -380,8 +380,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" AND bls.flag = 1 " +
" AND bls.business_id = #{lessonId} " +
"ORDER BY " +
" CAST( bll.sort AS UNSIGNED ) ASC) b"+
" </script>")
" CAST( bll.sort AS UNSIGNED ) ASC) b ")
List<QueryLabelResDTO> queryPushLabelByLessonId(String lessonId);
/**
......
......@@ -17,6 +17,8 @@
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="sort" jdbcType="INTEGER" property="sort"/>
<result column="corp_id" jdbcType="VARCHAR" property="corpId"/>
<result column="is_push" jdbcType="VARCHAR" property="isPush"/>
<result column="supper_id" jdbcType="VARCHAR" property="supperId"/>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
......
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