mybatis中insert插入之后返回主键useGeneratedKeys="true" keyProperty="id"

useGeneratedKeys="true" keyProperty="id"

<insert id="InsertYyzz" parameterType="java.util.Map" useGeneratedKeys="true" keyProperty="id">
  INSERT INTO business_licence
   (registerNum_id,companyName,companyType,companyLocation,legalUser,CreateDate,DateLimit,registMoney,picture_url,baidu_result)
   VALUES(#{registerNum},#{companyName},#{companyType},#{companyLocation},#{legalUser},#{createDate},#{dateLimit},#{registMoney},#{pictureUrl},#{baidu_result});
 </insert>

posted @ 2017-05-12 10:39  lc_smile36  阅读(3828)  评论(0编辑  收藏  举报