<insert id="saveBatchForList" parameterType="java.util.List"> insert into T_PRICE_PPI_BASEWEIGHT (BASEYEAR,ORGCODE,ORGNAME, BASECODE, BASENAME,WEIGHT,DATA_TYPE,STARTTIME,CREATOR,CREATETIME,AREACODE,AREANAME,GROUP_ITEM_TYPE,AMOUNT,STATUS,BASEWEIGHT_VERSION) values <foreach collection="list" item="item" index="index" separator=","> (#{item.baseyear},#{item.orgcode},#{item.orgname},#{item.basecode},#{item.basename},#{item.weight},#{item.dataType},#{item.starttime},#{item.creator}, #{item.createtime},#{item.areacode},#{item.areaname},#{item.groupItemType},#{item.amount},#{item.status},#{item.baseweightVersion}) </foreach> </insert>
标签:批量,保存,item,mybatis,BASEWEIGHT,TYPE From: https://www.cnblogs.com/chenTo/p/17582276.html