All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.summerboot.orm.service.BaseDao Maven / Gradle / Ivy

The newest version!
package top.summerboot.orm.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author xieshuang
 * @date 2021-02-22 13:51
 */
public interface BaseDao{

    void ddl(@Param("sql") String sql);

    int insert(String tableName, Map map);

    int insert(Object entity);

    int insert(String tableName, Object entity);

    int update(String tableName, Wrapper updateWrapper);

    int delete(String tableName, Wrapper wrapper);

    int insertBySql(String sql);

    int updateBySql(String sql);

    int updateBySql(String sql, Wrapper queryWrapper);

    int deleteBySql(String sql);

    long selectCount(String tableName, Wrapper queryWrapper);

    long selectCountBySql(String sql, Wrapper queryWrapper);

    JSONObject selectOne(String tableName, Wrapper queryWrapper);

    JSONObject selectOneBySql(String sql, Wrapper queryWrapper);

    List selectList(String tableName, Wrapper queryWrapper);

    List selectListBySql(String sql, Wrapper queryWrapper);

    IPage selectPage(IPage page, String sql, Wrapper queryWrapper);

    IPage selectPageBySql(IPage page, String sql, Wrapper queryWrapper);

    Object getObjectBySql(String sql, Wrapper queryWrapper);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy