package com.engine.organization.mapper.extend; import org.apache.ibatis.annotations.Param; import java.util.Map; /** * @description: * @author:dxfeng * @createTime: 2022/05/20 * @version: 1.0 */ public interface ExtMapper { /** * 根据主表id,查询主表拓展表数据 * * @param tableName * @param id * @return */ Map 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 map); /** * 更新主表拓展表 * * @param map * @return */ int updateExt(@Param("tableName") String tableName, @Param("id") long id, @Param("map") Map map); }