package {mapperNS};
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import {entityNS}.{entityName};
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Select;
|
import org.springframework.stereotype.Repository;
|
|
/**
|
* {bak}
|
* @author WWW
|
*/
|
@Mapper
|
@Repository
|
public interface {mapperName} extends BaseMapper<{entityName}> {
|
/**
|
* 查询一条
|
*
|
* @param {id}
|
* @return
|
*/
|
@Select("{selectSql}")
|
{entityName} selectOne(@Param("{id}") Integer {id});
|
}
|