This commit is contained in:
van
2026-05-17 18:09:35 +08:00
parent 8770ea92ed
commit 77776802f2
2 changed files with 52 additions and 6 deletions

View File

@@ -221,13 +221,14 @@
<if test="reviewPostedDate != null"> review_posted_date = #{reviewPostedDate},</if>
<if test="rebateRemarkJson != null"> rebate_remark_json = #{rebateRemarkJson},</if>
<if test="rebateRemarkHasAbnormal != null"> rebate_remark_has_abnormal = #{rebateRemarkHasAbnormal},</if>
<if test="extraCost != null"> extra_cost = #{extraCost},</if>
<!-- extra_cost:随列表保存一并写入 applyProfitFields避免仅写了 profit 却未持久化额外成本 -->
<if test="params != null and params.applyProfitFields != null and params.applyProfitFields == true">
selling_price_type = #{sellingPriceType,jdbcType=VARCHAR},
selling_price = #{sellingPrice,jdbcType=DOUBLE},
profit = #{profit,jdbcType=DOUBLE},
selling_price_manual = #{sellingPriceManual,jdbcType=INTEGER},
profit_manual = #{profitManual,jdbcType=INTEGER},
extra_cost = COALESCE(#{extraCost,jdbcType=DOUBLE}, 0),
</if>
update_time = now()
</set>