问题修复

This commit is contained in:
zhh
2018-06-07 14:01:44 +08:00
parent 2b0372f46d
commit 1d7e490d13
2 changed files with 25 additions and 2 deletions

View File

@@ -3,11 +3,12 @@
<mapper namespace="com.macro.mall.dao.PmsMemberPriceDao">
<!--批量新增回写主键支持-->
<insert id="insertList">
INSERT INTO pms_member_price (product_id, member_level_id, member_price) VALUES
INSERT INTO pms_member_price (product_id, member_level_id, member_price,member_level_name) VALUES
<foreach collection="list" separator="," item="item" index="index">
(#{item.productId,jdbcType=BIGINT},
#{item.memberLevelId,jdbcType=BIGINT},
#{item.memberPrice,jdbcType=DECIMAL})
#{item.memberPrice,jdbcType=DECIMAL},
#{item.memberLevelName,jdbcType=VARCHAR})
</foreach>
</insert>
</mapper>