1.报错内容:因为Java执行以下内容时
出现报错内容
2. 报错原因:end_time的数据类型为Time,而求和结果大于23:59:59,超出Time类型的范围,所以报出溢出错误。
3. 解决方法:使用CONVERT(value,type)函数,把Time类型的求和结果转化为varchar类型的字符串,以{字段名,查询结果(注:String类型)}的形式,赋给queryList,具体查询语句如下图所示
----源自杨学姐的解决方案