DongJigong opened a new issue #6219: URL: https://github.com/apache/shardingsphere/issues/6219
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? ``` <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <version>4.1.1</version> </dependency> ``` ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ### Expected behavior ### Actual behavior ``` .PersistenceException: ### Error querying database. Cause: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer ### The error may exist in file [/Users/jonnyosborn/Workspace/petsuu-mall/petsuu-mall-admin/target/classes/dao/OmsOrderDao.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT o.*, orr.refund_time as refundTime, orr.refund_money as refundMoney, uc.user_id AS claimUserId, uc.admin_id AS claimAdminId, uc.admin_name AS claimAdminName, uc.user_name AS claimUserName FROM oms_order AS o LEFT JOIN oms_order_refund_record AS orr ON o.id = orr.order_id LEFT JOIN oms_payment_transaction AS opt ON o.id = opt.order_id LEFT JOIN ums_claim AS uc ON o.user_id = uc.user_id WHERE delete_status = 0 AND DATE_FORMAT( o.create_time, '%Y-%m-%d' ) >= DATE_FORMAT( ?, '%Y-%m-%d' ) ORDER BY id desc LIMIT ? ### Cause: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer] with root cause java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer ``` ### Reason analyze (If you can) get page count result error ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ![image](https://user-images.githubusercontent.com/8855265/86102547-3ad14f00-baee-11ea-8c77-e0428555f76a.png) ### Example codes for reproduce this issue (such as a github link). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org