1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user