代码成就万世基积沙镇海,梦想永在凌云意|

又一岁荣枯

园龄:3年4个月粉丝:11关注:6

未解决的的问题

传智健康项目

1. 在Controller层中构造出Date数据类型,传入Dao层时与mysql中的date字段类型不能匹配(也可能是mybatis的问题),查出的值始终为0

Service层

Date orderDate = orderSetting.getOrderDate();
long count = orderSettingDao.findCountByOrderDate(orderDate);

Dao层的mybatis配置文件

<select id="findCountByOrderDate" parameterType="date" resultType="long">
	select count(id) from t_ordersetting where orderDate = #{orderDate};
</select>

本文作者:又一岁荣枯

本文链接:https://www.cnblogs.com/java-six/p/16462749.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   又一岁荣枯  阅读(24)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起