65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
package ${packageName}.mapper;
|
|
|
|
import java.util.List;
|
|
import ${packageName}.domain.${ClassName};
|
|
#if($table.sub)
|
|
import ${packageName}.domain.${subClassName};
|
|
#end
|
|
|
|
/**
|
|
* ${functionName}Mapper接口
|
|
*
|
|
* @author ${author}
|
|
* @date ${datetime}
|
|
*/
|
|
public interface ${ClassName}Mapper
|
|
{
|
|
/**
|
|
* 查询${functionName}
|
|
*
|
|
* @param ${pkColumn.javaField} ${functionName}ID
|
|
* @return ${functionName}
|
|
*/
|
|
${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField});
|
|
|
|
/**
|
|
* 查询${functionName}列表
|
|
*
|
|
* @param ${className} ${functionName}
|
|
* @return ${functionName}集合
|
|
*/
|
|
List<${ClassName}> select${ClassName}List(${ClassName} ${className});
|
|
|
|
/**
|
|
* 查询${functionName}对象
|
|
*
|
|
* @param ${className} ${functionName}
|
|
* @return ${functionName}
|
|
*/
|
|
${ClassName} find${ClassName}(${ClassName} ${className});
|
|
|
|
/**
|
|
* 新增${functionName}
|
|
*
|
|
* @param ${className} ${functionName}
|
|
* @return 结果
|
|
*/
|
|
int insert${ClassName}(${ClassName} ${className});
|
|
|
|
/**
|
|
* 修改${functionName}
|
|
*
|
|
* @param ${className} ${functionName}
|
|
* @return 结果
|
|
*/
|
|
int update${ClassName}(${ClassName} ${className});
|
|
|
|
/**
|
|
* 批量删除${functionName}
|
|
*
|
|
* @param ${pkColumn.javaField}s 需要删除的数据ID
|
|
* @return 结果
|
|
*/
|
|
int delete${ClassName}ByIds(String[] ${pkColumn.javaField}s);
|
|
}
|