手动完成修改 修改sql
This commit is contained in:
@@ -177,6 +177,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="list[0].spare4 != null">spare4,</if>
|
||||
<if test="list[0].spare5 != null">spare5,</if>
|
||||
<if test="list[0].spare6 != null">spare6,</if>
|
||||
<if test="list[0].productId != null">product_id,</if>
|
||||
</trim>
|
||||
VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
@@ -205,6 +206,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="item.spare4 != null">#{item.spare4},</if>
|
||||
<if test="item.spare5 != null">#{item.spare5},</if>
|
||||
<if test="item.spare6 != null">#{item.spare6},</if>
|
||||
<if test="item.productId != null">#{item.productId},</if>
|
||||
</trim>
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
Reference in New Issue
Block a user