liaokailin

 通过list

   <insert id="saveByList" useGeneratedKeys="true" parameterType="java.util.List"> 
     insert into T_App_Default_User(UserID,AppType,CreateTime)
    values  
    <foreach collection="list" item="item" index="index" separator="," >  
        (#{item.userId},#{item.appType},now())  
    </foreach> 
    </insert>
    

对应的Mapper文件

public interface AppDefaultUserMapper {
    void saveByList(List<Map<String, Long>> list);
}

搞定~~~

 

分类:

技术点:

相关文章:

  • 2021-12-01
  • 2021-09-14
  • 2021-07-28
猜你喜欢
  • 2021-09-14
  • 2021-11-17
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
相关资源
相似解决方案