Dao层
mapper接口
@MyBatisDao
public interface ExtendMapper {
List<ExtendKeyMapping> queryExtendKeyMappingList(@Param("sourceName") String sourceName,
@Param("sourceKey") String sourceKey,
@Param("pageSize") Integer pageSize,
@Param("offset") Integer offset);
Integer queryExtendKeyMappingListCount(@Param("sourceName") String sourceName,
@Param("sourceKey") String sourceKey);
}
mapper.xml映射文件
<!
<select id="queryExtendKeyMappingList" resultType="com.emrubik.domain.ExtendKeyMapping">
select id,
source_name,
source_key,
url,
uc_app_id,
uc_app_secret,
app_key
from wbmp.wbmp_app_exten