weaver-hrm-organization/src/com/engine/organization/mapper/extend/ExtMapper.java

58 lines
1.1 KiB
Java
Raw Normal View History

package com.engine.organization.mapper.extend;
2022-06-23 16:55:26 +08:00
import com.engine.organization.entity.extend.param.ExtendInfoParams;
2022-08-22 09:10:00 +08:00
import org.apache.ibatis.annotations.Param;
import java.util.Map;
/**
2022-06-14 11:07:48 +08:00
* @description:
* @author:dxfeng
* @createTime: 2022/05/20
* @version: 1.0
*/
public interface ExtMapper {
/**
* 根据主表id,查询主表拓展表数据
*
2022-06-23 16:55:26 +08:00
* @param params
* @return
*/
2022-06-23 16:55:26 +08:00
Map<String, Object> listExt(ExtendInfoParams params);
2022-05-20 17:34:18 +08:00
/**
* 判断当前数据是否存在
*
2022-06-23 16:55:26 +08:00
* @param params
2022-05-20 17:34:18 +08:00
* @return
*/
2022-06-23 16:55:26 +08:00
int countExtById(ExtendInfoParams params);
2022-05-20 17:34:18 +08:00
/**
2022-08-12 09:34:19 +08:00
* 插入主表
2022-05-20 17:34:18 +08:00
*
2022-06-23 16:55:26 +08:00
* @param params
2022-05-20 17:34:18 +08:00
* @return
*/
2022-08-12 09:34:19 +08:00
int insertTable(ExtendInfoParams params);
/**
* 插入拓展表
*
* @param params
* @return
*/
int insertExtTable(ExtendInfoParams params);
2022-05-20 17:34:18 +08:00
/**
* 更新主表拓展表
*
2022-06-23 16:55:26 +08:00
* @param params
2022-05-20 17:34:18 +08:00
* @return
*/
2022-08-12 09:34:19 +08:00
int updateTable(ExtendInfoParams params);
2022-08-22 09:10:00 +08:00
int deleteByID(@Param("tableName") String tableName, @Param("id") long id);
}