手动完成修改 修改sql

This commit is contained in:
liuhanqing
2025-06-23 14:51:21 +08:00
parent db00d83407
commit b7beba8b0f

View File

@@ -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>