package com.vci.web.dao; import com.vci.starter.web.pagemodel.PageHelper; import com.vci.web.model.OsCodeGenSchemaDO; import java.util.List; import java.util.Map; /** * 代码生成器的数据操作层 * @author weidy * @date 2021-08-22 */ public interface OsCodeGenSchemaDaoI { /** * 使用主键删除 * @param oid 主键 * @return 受影响的个数 */ int deleteByPrimaryKey(String oid); /** * 插入数据 * @param record 数据的对象 * @return 受影响的个数 */ int insert(OsCodeGenSchemaDO record); /** * 使用主键查询 * @param oid 主键 * @return 数据对象 */ OsCodeGenSchemaDO selectByPrimaryKey(String oid); /** * 查询全部 * @return 数据对象 */ List selectAll(); /** * 使用主键更新 * @param record 数据对象 * @return 受影响的行数 */ int updateByPrimaryKey(OsCodeGenSchemaDO record); /** * 根据查询条件查询数据 * @param conditionMap 查询条件 * @param pageHelper 分页对象 * @return 数据对象列表 */ List selectByWrapper(Map conditionMap, PageHelper pageHelper); /** * 根据查询条件来查询总数 * @param conditionMap 查询条件 * @return 总数 */ Integer countByWrapper(Map conditionMap); }