2022-05-19 18:47:03 +08:00
|
|
|
package com.engine.organization.mapper.extend;
|
|
|
|
|
|
|
|
|
|
import com.engine.organization.entity.extend.po.ExtendInfoPO;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
2022-06-17 10:54:59 +08:00
|
|
|
import java.util.Collection;
|
2022-05-19 18:47:03 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
2022-06-14 11:07:48 +08:00
|
|
|
* @description:
|
2022-05-19 18:47:03 +08:00
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2022/05/19
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public interface ExtendInfoMapper {
|
2022-06-15 17:17:34 +08:00
|
|
|
|
2022-06-16 14:19:54 +08:00
|
|
|
List<ExtendInfoPO> listFields(@Param("extendType") String extendType, @Param("extendGroupId") String extendGroupId, @Param("tableName") String tableName, @Param("operateType") String operateType);
|
2022-06-14 15:29:22 +08:00
|
|
|
|
2022-06-17 10:54:59 +08:00
|
|
|
int countFieldsByGroupId(@Param("tableName") String tableName, @Param("groupId") Long groupId);
|
2022-06-15 17:17:34 +08:00
|
|
|
|
2022-06-16 09:37:36 +08:00
|
|
|
int updateExtendInfo(ExtendInfoPO extendInfo);
|
|
|
|
|
|
2022-06-16 14:19:54 +08:00
|
|
|
int insertExtendInfo(ExtendInfoPO extendInfo);
|
|
|
|
|
|
|
|
|
|
// 添加表结构
|
|
|
|
|
void addTableColumn(@Param("tableName") String tableName, @Param("fieldName") String fieldName, @Param("dbType") String dbType);
|
|
|
|
|
|
|
|
|
|
Long getMaxId();
|
|
|
|
|
|
2022-06-16 17:53:48 +08:00
|
|
|
List<Object> listFieldsByTableName(@Param("tableName") String tableName, @Param("fieldName") String fieldName);
|
|
|
|
|
|
2022-06-17 10:54:59 +08:00
|
|
|
int deleteExtendInfoByIds(@Param("ids") Collection<Long> ids);
|
|
|
|
|
|
|
|
|
|
void deleteTableColumn(@Param("tableName") String tableName, @Param("fieldName") String fieldName);
|
|
|
|
|
|
|
|
|
|
List<ExtendInfoPO> getExtendInfosByIds(@Param("ids") Collection<Long> ids);
|
|
|
|
|
|
2022-06-15 17:17:34 +08:00
|
|
|
|
2022-05-19 18:47:03 +08:00
|
|
|
}
|