|
@@ -63,13 +63,13 @@
|
|
#{clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
#{stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
</insert>
|
|
</insert>
|
|
- <insert id="batchInsert">
|
|
|
|
|
|
+ <insert id="batchInsert" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
|
|
INSERT INTO goods
|
|
INSERT INTO goods
|
|
(goods_category_id_,name_,brand_,specification_,image_,market_price_,
|
|
(goods_category_id_,name_,brand_,specification_,image_,market_price_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,update_time_,create_time_,type_,agree_cost_price_,sn_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,update_time_,create_time_,type_,agree_cost_price_,sn_,
|
|
stock_count_,tax_stock_count_,client_show_,stock_warning_,stock_type_)
|
|
stock_count_,tax_stock_count_,client_show_,stock_warning_,stock_type_)
|
|
VALUES
|
|
VALUES
|
|
- <foreach collection="goodsList" separator="," item="goods">
|
|
|
|
|
|
+ <foreach collection="list" separator="," item="goods">
|
|
(#{goods.goodsCategoryId},#{goods.name},#{goods.brand},#{goods.specification},#{goods.image},#{goods.marketPrice},
|
|
(#{goods.goodsCategoryId},#{goods.name},#{goods.brand},#{goods.specification},#{goods.image},#{goods.marketPrice},
|
|
#{goods.discountPrice},#{goods.groupPurchasePrice},#{goods.brief},#{goods.desc},now(),now(),
|
|
#{goods.discountPrice},#{goods.groupPurchasePrice},#{goods.brief},#{goods.desc},now(),now(),
|
|
#{goods.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goods.agreeCostPrice},#{goods.sn},
|
|
#{goods.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goods.agreeCostPrice},#{goods.sn},
|