![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
小巷陌影
这个作者很懒,什么都没留下…
展开
-
前端js 丢失精度问题
数据库类型bigint,导致js接收数据后丢失精度。 1、在后台查询完毕后遍历集合更改。 public List numAccuracy(List<Map<Object,Object>> list,String name) { for(int i = 0; i<list.size(); i++) { Object id = list.get(i)....原创 2019-03-16 16:12:58 · 1963 阅读 · 0 评论 -
mybatis 字段int类型条件为0时,查询结果不正确
当传入条件为0时,查询结果有误,没有过滤state条件。将state !=''判断去掉即可 原始写法 <if test="state != null and state != '' "> state = #{state} </if> 更改后 <if test="state != null"> state = ${state} </if&g...原创 2019-09-11 13:07:53 · 847 阅读 · 0 评论