UPDATE
e_card_charge
SET
card_charge_order_status = '1',
card_charge_order_time = #{cardChargeOrderTime},
card_charge_order_status = #{cardChargeOrderStatus}
WHERE
is_delete = 0 AND card_charge_id = #{cardChargeId}
INSERT INTO e_card_charge(
card_charge_id,
card_charge_price,
card_charge_end,
card_charge_mode,
card_charge_company_id,
card_charge_company_number,
card_charge_status,
card_charge_remark,
card_charge_user_id,
card_charge_invitation_user_id,
card_charge_order_number,
card_charge_order_status,
card_charge_order_time,
card_charge_order_out_time,
card_template_id,
card_charge_role,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{cardChargeId},
#{cardChargePrice},
#{cardChargeEnd},
#{cardChargeMode},
#{cardChargeCompanyId},
#{cardChargeCompanyNumber},
#{cardChargeStatus},
#{cardChargeRemark},
#{cardChargeUserId},
#{cardChargeInvitationUserId},
#{cardChargeOrderNumber},
#{cardChargeOrderStatus},
#{cardChargeOrderTime},
#{cardChargeOrderOutTime},
#{cardTemplateId},
#{cardChargeRole},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
e_card_charge
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
card_charge_id IN
#{cardChargeIds[${index}]}
DELETE FROM
e_card_charge
WHERE
card_charge_id IN
#{cardChargeIds[${index}]}
UPDATE
e_card_charge
SET
card_charge_price = #{cardChargePrice},
card_charge_end = #{cardChargeEnd},
card_charge_mode = #{cardChargeMode},
card_charge_company_id = #{cardChargeCompanyId},
card_charge_company_number = #{cardChargeCompanyNumber},
card_charge_status = #{cardChargeStatus},
card_charge_remark = #{cardChargeRemark},
card_charge_user_id = #{cardChargeUserId},
card_charge_invitation_user_id = #{cardChargeInvitationUserId},
card_charge_order_number = #{cardChargeOrderNumber},
card_template_id = #{cardTemplateId},
gmt_modified = #{gmtModified},
modifier = #{modifier},
card_charge_id = card_charge_id
WHERE
card_charge_id = #{cardChargeId}