mybatis
道友请留步s
这个作者很懒,什么都没留下…
展开
-
MyBatis中大于号以及小于号的表达方式
殊字符 替代符号大于 >:>小于 <:<大于等于 >= :>=小于等于 <= :<=原创 2021-03-05 09:28:22 · 402 阅读 · 2 评论 -
mybatis 批量修改和插入报错但在数据库运行成功
在数据库连接中加入 allowMultiQueries=true 即可解决1.可以在sql语句后携带分号,实现多语句执行。2.可以执行批处理,同时发出多个SQL语句。原创 2020-10-19 09:23:26 · 368 阅读 · 0 评论 -
mysql字符串转时间
and STR_TO_DATE(deviceAccept.accept_date, '%Y-%m-%d') between STR_TO_DATE(#{beginDate}, '%Y-%m-%d') and STR_TO_DATE( #{endDate}, '%Y-%m-%d')原创 2020-06-23 09:09:03 · 294 阅读 · 0 评论 -
mybatis if 字符串条件
<if test="type=='y'"> and status = 0 </if>转载 2019-04-02 11:14:07 · 885 阅读 · 0 评论 -
mybatis批量插入
<insert id="insertList" parameterType="java.util.List"> insert into resource_parsing (id,resource_id,resource_url,submit_time) values <foreach collection="list" item=...原创 2019-04-04 14:26:35 · 154 阅读 · 0 评论 -
mybatsi 入参单个字符串 String时容易报错解决
1.入参值改成 #{_parameter}<select id="select" parameterType="java.lang.String" resultType="hashMap"> select * from user <where> PROJECT_ID=#{_parameter} </where> </sele原创 2019-01-02 09:22:40 · 186 阅读 · 0 评论 -
mybatis大于号小于号
第一种写法(1):原符号 &amp;lt; &amp;lt;= &amp;gt; &amp;gt;= &amp;amp; ’ &quot;替换符号 &amp;lt; &amp;lt;= &amp;gt; &amp;gt;= &转载 2018-12-13 14:29:24 · 438 阅读 · 0 评论 -
mybatis 批量插入 语句和报错信息 Translating SQLException with SQL state '42000', error code '1064',
@Serviceint updateAllUserProject(List<PubUserProject> mapInfo){}@ControllerList<PubUserProject> pubUserProjects = userProjectService.getUserProjectInfo(f);int updateAllCount = userP...转载 2018-12-03 15:02:47 · 1702 阅读 · 0 评论 -
mybatis xml语句返回map类型
<select id="selectByPrimaryKey" resultType="java.util.Map" parameterType="java.lang.String" > select <include refid="Base_Column_List" /> from pub_user where ID = #{id,jd原创 2018-11-10 10:05:24 · 9108 阅读 · 1 评论 -
mybatis if else
<where> <choose> <when test="beginTime != null and beginTime !='' and endTime !=null and endTime !='' "> </when> <otherwise> <..原创 2018-12-15 14:22:19 · 1342 阅读 · 0 评论