nested exception is org.apache.ibatis.executor.ExecutorException: No constructor found in com.chengg

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/monica1_1/article/details/82628526

报错:

2018-09-11 16:33:51.280 [http-nio-15601-exec-6] DEBUG org.springframework.web.servlet.DispatcherServlet -Could not complete request
feign.FeignException: status 500 reading IOrderProvider#getRenewalDetailSum(Long);content:{"timestamp":"2018-09-11 16:33:51","status":500,"error":"Internal Server Error","message":"nested exception is org.apache.ibatis.executor.ExecutorException: No constructor found in com.chenggutek.cloud.riskctrl.biz.cashloan.comm.model.order.RenewalDetailResponse matching [java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal]","path":"/order/base/renewal/detail/1"}
    at feign.FeignException.errorStatus(FeignException.java:62)

 

大致的意思是返回的三个参数类型应该是 BigDecimal

解决:查看SQL语句

 sum计算 但是我给他们三个的返回类型是Integer、BigDecimal、BigDecimal

后来百度百科发现,sum的返回值类型是double的所以导致。

修改返回类型Integer为Double即可

CSDN技术交流群:681223095

关注公众号,更多学习内容给予推送,争取每日更新

猜你喜欢

转载自blog.csdn.net/monica1_1/article/details/82628526
今日推荐