blinkfox / fenix

This is an extension library to the Spring Data JPA complex or dynamic SQL query. 这是一个比 MyBatis 更加强大的 Spring Data JPA 扩展库,为解决复杂动态 JPQL (或 SQL) 而生。https://blinkfox.github.io/fenix
https://blinkfox.github.io/fenix
Apache License 2.0
345 stars 72 forks source link

怎么接受不定字段的返回值 用 List<HashMap<String,Object>>接受不到 #80

Open BigQing98021282 opened 1 year ago

BigQing98021282 commented 1 year ago

怎么接受不定字段的返回值 用 List<HashMap<String,Object>>接受不到

public interface BiSellerReportDao extends JpaRepository<BiSellerReport, Long>, JpaSpecificationExecutor { @QueryFenix(value = "BiSellerReportDao.page", nativeQuery = true) Page page(@Param("vo") BiSellerReportVo vo, Pageable pageable);

 BiSellerReport findByComputingTimeAndAndIsDeletedFalseAndSellerCode(String dateTime,String sellerCode);

 @QueryFenix(value = "BiSellerReportDao.queryBiSellerReport")
 List<HashMap<String,Object>> queryBiSellerReport(@Param("vo") BiSellerReportVo vo, Pageable pageable);

}

BigQing98021282 commented 1 year ago

解决了 xml里面不要写 resultType就行了