zxl
2026-03-25 d1dfb6e35f38e27fd960dc3ad0130c8d0f5c39bb
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();
}