fix(sip): 修复项目产品信息更新语句中的 ID 引用错误

- 将更新语句中的 where 条件从 id = #{id} 修改为 id = #{item.id}
- 此修改确保了在批量更新操作中,每个项目产品信息的更新都能正确地应用到对应的记录
master
chenhao 2025-06-06 14:16:44 +08:00
parent 7343ddac08
commit 7d23b0ade8
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="item.discount != null">discount = #{item.discount},</if>
<if test="item.remark != null">remark = #{item.remark},</if>
</trim>
where id = #{id}
where id = #{item.id}
</foreach>
</update>