1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <insert id="batchUpdateItem"> REPLACE INTO item ( id, item_id, sku_id,creed_id, `name`, tags,specifications, unit_price, `type`,category, quantity, quantity_send, quantity_recept, own_amount, parent_id,repository_id, repository_name, image,icon, units, manufacturer, place_of_origin, creator, modifier,gmt_created, gmt_modified, is_del,is_history, quantity_return ) values <foreach collection="records" index="index" item="item" separator=","> ( #{item.id,jdbcType=BIGINT},#{item.itemId,jdbcType=BIGINT}, #{item.skuId,jdbcType=BIGINT},#{item.creedId,jdbcType=BIGINT}, #{item.name,jdbcType=VARCHAR},#{item.tags,jdbcType=VARCHAR}, #{item.specifications,jdbcType=VARCHAR},#{item.unitPrice,jdbcType=BIGINT}, #{item.type,jdbcType=CHAR},#{item.category,jdbcType=VARCHAR}, #{item.quantity,jdbcType=BIGINT},#{item.quantitySend,jdbcType=BIGINT}, #{item.quantityRecept,jdbcType=BIGINT},#{item.ownAmount,jdbcType=BIGINT}, #{item.parentId,jdbcType=BIGINT},#{item.repositoryId,jdbcType=BIGINT}, #{item.repositoryName,jdbcType=VARCHAR},#{item.image,jdbcType=VARCHAR}, #{item.icon,jdbcType=VARCHAR},#{item.units,jdbcType=VARCHAR}, #{item.manufacturer,jdbcType=VARCHAR},#{item.placeOfOrigin,jdbcType=VARCHAR}, #{item.creator,jdbcType=BIGINT},#{item.modifier,jdbcType=BIGINT}, #{item.gmtCreated,jdbcType=TIMESTAMP},#{item.gmtModified,jdbcType=TIMESTAMP}, #{item.isDel,jdbcType=BIT},#{item.isHistory,jdbcType=TINYINT}, #{item.quantityReturn,jdbcType=BIGINT} ) </foreach> </insert>
|