公告板
版本库
filestore
活动
搜索
登录
main
/
cube-quick-start
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
3.25标签功能
zxl
2026-03-25
d1dfb6e35f38e27fd960dc3ad0130c8d0f5c39bb
[cube-quick-start.git]
/
jyz-base-start
/
src
/
main
/
java
/
com
/
tievd
/
jyz
/
mapper
/
LabelMapper.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.tievd.jyz.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tievd.jyz.entity.Label;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* Label
* @author cube
* @since 2023-02-27
* @version V2.0.0
*/
public interface LabelMapper extends BaseMapper<Label> {
@Select("select SUBSTRING_INDEX( SUBSTRING_INDEX( a.label_name, ',', b.help_topic_id + 1 ), ',',- 1 ) from t_label a JOIN mysql.help_topic b ON b.help_topic_id < ( LENGTH( a.label_name ) - LENGTH( REPLACE ( a.label_name, ',', '' ) ) + 1 );")
List<String> listLabel();
}