瀏覽代碼

integralShareId

姜永辉 1 年之前
父節點
當前提交
91887869f6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/resources/mapper/TradeMapper.xml

+ 3 - 1
src/main/resources/mapper/TradeMapper.xml

@@ -188,7 +188,9 @@
     <update id="updateById">
         update dkic_a.t_cp_trade
         set wx_trade_no  = #{wxTradeNo},
-            integral_share_id  = #{integralShareId},
+            <if test="integralShareId != null">
+                integral_share_id = #{integralShareId}::uuid,
+            </if>
             trade_status = #{tradeStatus}
         where trade_id = #{tradeId}
     </update>