You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.engine.organization.mapper.extend;
|
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @description: TODO
|
|
|
|
* @author:dxfeng
|
|
|
|
* @createTime: 2022/05/20
|
|
|
|
* @version: 1.0
|
|
|
|
*/
|
|
|
|
public interface ExtMapper {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据主表id,查询主表拓展表数据
|
|
|
|
*
|
|
|
|
* @param tableName
|
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
Map<String, Object> listExt(@Param("tableName") String tableName, @Param("fields") String fields, @Param("id") long id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 判断当前数据是否存在
|
|
|
|
*
|
|
|
|
* @param tableName
|
|
|
|
* @param id
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int countExtById(@Param("tableName") String tableName, @Param("id") long id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 插入主表拓展表
|
|
|
|
*
|
|
|
|
* @param map
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int insertExt(@Param("tableName") String tableName, @Param("map") Map<String, Object> map);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 更新主表拓展表
|
|
|
|
*
|
|
|
|
* @param map
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int updateExt(@Param("tableName") String tableName, @Param("id") long id, @Param("map") Map<String, Object> map);
|
|
|
|
}
|