提交 17f554a5 作者: han

添加课程订单sql修改

上级 d3581a5e
...@@ -38,15 +38,34 @@ ...@@ -38,15 +38,34 @@
</insert> </insert>
<insert id="insertCurriculumOrder" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO"> <insert id="insertCurriculumOrder" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO">
insert into curriculum_order insert into curriculum_order
( id,order_no,user_account_id <trim prefix="(" suffix=")" suffixOverrides=",">
,order_total_amount,salary_amount <if test="id != null">id,</if>
,cash_amount,we_chat,wechat_pay_order_number <if test="orderNo != null">order_no,</if>
, curriculum_info_id, jifen_consume) <if test="userAccountId != null">user_account_id,</if>
values (#{id},#{orderNo},#{userAccountId} <if test="orderTotalAmount != null">order_total_amount,</if>
,#{orderTotalAmount},#{salaryAmount} <if test="salaryAmount != null">salary_amount,</if>
,#{cashAmount},#{weChat},#{wechatPayOrderNumber} <if test="cashAmount != null">cash_amount,</if>
,#{curriculumInfoId} <if test="weChat != null">we_chat,</if>
,#{jifenConsume}) <if test="wechatPayOrderNumber != null">wechat_pay_order_number,</if>
<if test="curriculumInfoId != null">curriculum_info_id,</if>
<if test="jifenConsume != null">jifen_consume,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id,jdbcType=INTEGER},</if>
<if test="orderNo != null">#{orderNo,jdbcType=VARCHAR},</if>
<if test="userAccountId != null">#{userAccountId,jdbcType=INTEGER},</if>
<if test="orderTotalAmount != null">#{orderTotalAmount,jdbcType=DECIMAL},</if>
<if test="salaryAmount != null">#{salaryAmount,jdbcType=DECIMAL},</if>
<if test="cashAmount != null">#{cashAmount,jdbcType=DECIMAL},</if>
<if test="weChat != null">#{weChat,jdbcType=DECIMAL},</if>
<if test="wechatPayOrderNumber != null">#{wechatPayOrderNumber,jdbcType=VARCHAR},</if>
<if test="curriculumInfoId != null">#{curriculumInfoId,jdbcType=VARCHAR},</if>
<if test="jifenConsume != null">#{jifenConsume,jdbcType=VARCHAR},,</if>
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
</trim>
</insert> </insert>
<update id="updateCurriculum" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumInfoDO"> <update id="updateCurriculum" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumInfoDO">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论