zxl
2025-05-12 49067588d021a8dce13d9857c4a032daaa68f646
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.ycl.platform.mapper;
 
import com.ycl.platform.domain.entity.DynamicColumn;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycl.platform.domain.entity.DynamicColumnValue;
import com.ycl.platform.domain.query.DynamicColumnQuery;
import com.ycl.platform.domain.vo.DynamicColumnVO;
import com.ycl.platform.domain.form.DynamicColumnForm;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * 动态列 Mapper 接口
 *
 * @author xp
 * @since 2024-08-16
 */
@Mapper
public interface DynamicColumnMapper extends BaseMapper<DynamicColumn> {
 
    /**
     * id查找动态列
     * @param id
     * @return
     */
    DynamicColumnVO getById(Integer id);
 
    /**
     * 获取动态列数据
     * @param
     * @return
     */
    List<DynamicColumnVO> getData();
 
    List<DynamicColumnVO> getDynamicsByIds(@Param("tableName")String tableName,@Param("ids") List<Integer> ids);
    List<String> getHeader(String tableName);
    /**
    *  分页
    */
    IPage getPage(IPage page, @Param("query") DynamicColumnQuery query);
 
    void saveBatch( @Param("insertList") List<DynamicColumnValue> insertList);
 
    void updateBatch( @Param("updateList") List<DynamicColumnValue> updateList);
 
    void deleteBatch(@Param("deleteList") List<Integer> deleteList);
 
    List<DynamicColumnVO> getDynamicColumnByTable(@Param("tableName")String tableName,@Param("id")String id);
    List<DynamicColumnVO> getDynamicColumnByTableName(@Param("tableName")String tableName);
 
}