![](https://img-blog.csdnimg.cn/20200521172324673.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
mybatis
mybatis mp 使用参考
ABrotherCount
十年磨一剑
展开
-
mybatis count统计加条件,除法保留两位小数,分组统计,日期格式化 between and
直接上代码,很简单,自己悟: <!--新客短信促活统计列表--> <select id="findSmsMarketingTotalListByQuery" resultType="com.rand.safc.common.model.promotion.entity.SmsMarketingTotalListVO" parameterType="com.rand.safc.common.model.promotion.entity.SmsMar原创 2020-07-31 16:14:55 · 1061 阅读 · 0 评论 -
mybatis 新增后返回主键ID
如果想要insert返回主键 设置两个属性就OK(useGeneratedKeys="true" keyProperty="id"),看下面代码:<insert id="insertSelective" parameterType="com.rocky.fintech.boss.entity.product.ProductDO" useGeneratedKeys...原创 2020-01-15 15:19:06 · 252 阅读 · 0 评论