
mybatis
文章平均质量分 72
韩大帅666
无时无刻都需要激励自己努力
展开
-
mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.String'
在使用mybaitis传参数的时候,如果仅传入一个类型为String的参数,那么在 xml文件中应该使用_parameter来代替参数名。正确的写法:[html] view plain copy print?span style="font-size:18px;"> select id="isCarg原创 2017-06-27 12:55:39 · 426 阅读 · 0 评论 -
Mybatis Integer类型,值为0被认为是空字符串的解决办法
mybatis写update时,正常是set了值才会进行update操作,我们一般是这样写。if test="sampleBatchNo != null and sampleBatchNo != ''" > SAMPLE_BATCH_NO = #{sampleBatchNo,jdbcType=VARCHAR}, if>123123如果不空null并且不是空字转载 2017-03-29 15:35:30 · 1834 阅读 · 1 评论