ludc
2023-05-30 695e4a085727ef5017597dd1ab72a47d0e9883e6
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
package com.vci.ubcs.code.mapper;
 
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * 公共查詢mapper
 *
 * @author ludc
 * @date 2022-01-24
 */
public interface CommonsMapper {
 
    @MapKey("count")
    Map<String,String> selectByCount(@Param("tableName") String tableName,@Param("oid") String oid,@Param("btm") String btm);
 
    List<String> selectById(@Param("inSql") String inSql);
 
    List<Map> selectBySql(@Param("inSql") String inSql);
 
    /**
     * 传入表明,map,list<map>完成批量更新操作
     * @param tableName 表名
     * @param columnMap 单条map用于获取key作为字段
     * @param mapList 需要插入的所有记录
     * @return 插入成功的条数
     */
    Integer insertByBaseModel(String tableName,Map<String,String> columnMap,List<Map<String,String>> mapList);
 
}