a.id AS "id",
a.shopID AS "shopID",
a.name AS "name",
a.bankAccountName AS "bankAccountName",
a.bankAccount AS "bankAccount",
a.bankName AS "bankName",
a.type AS "type",
a.totalAmount AS "totalAmount",
a.balancePayFee AS "balancePayFee",
a.transferPayFee AS "transferPayFee",
a.payType AS "payType",
a.wipePayment AS "wipePayment",
a.wipeRemarks AS "wipeRemarks",
a.wipeRemarkImages AS "wipeRemarkImages",
a.applicant AS "applicant",
a.applyTime AS "applyTime",
a.wipeTime AS "wipeTime",
a.reviewer AS "reviewer",
a.reviewTime AS "reviewTime",
a.payTime AS "payTime",
a.status AS "status",
a.reason AS "reason",
a.delFlag AS "delFlag"
INSERT INTO cm_pay_shop(
shopID,
name,
bankAccountName,
bankAccount,
bankName,
type,
totalAmount,
balancePayFee,
transferPayFee,
payType,
wipePayment,
wipeRemarks,
wipeRemarkImages,
wipeTime,
applicant,
applyTime,
reviewer,
reviewTime,
payTime,
status,
reason,
delFlag
) VALUES (
#{shopID},
#{name},
#{bankAccountName},
#{bankAccount},
#{bankName},
#{type},
#{totalAmount},
#{balancePayFee},
#{transferPayFee},
#{payType},
#{wipePayment},
#{wipeRemarks},
#{wipeRemarkImages},
#{wipeTime},
#{applicant},
#{applyTime},
#{reviewer},
#{reviewTime},
#{payTime},
#{status},
#{reason},
#{delFlag}
)
UPDATE cm_pay_shop SET
shopID = #{shopID},
name = #{name},
bankAccountName = #{bankAccountName},
bankAccount = #{bankAccount},
bankName = #{bankName},
type = #{type},
totalAmount = #{totalAmount},
balancePayFee = #{balancePayFee},
transferPayFee = #{transferPayFee},
payType = #{payType},
wipePayment = #{wipePayment},
wipeRemarks = #{wipeRemarks},
wipeRemarkImages = #{wipeRemarkImages},
wipeTime = #{wipeTime},
applicant = #{applicant},
applyTime = #{applyTime},
reviewer = #{reviewer},
reviewTime = #{reviewTime},
payTime = #{payTime},
status = #{status},
reason = #{reason},
delFlag = #{delFlag}
WHERE id = #{id}
DELETE FROM cm_pay_shop
WHERE id = #{id}
update cm_pay_online_switch set
status=#{status},
sysUserId=#{userId},
updateTime=NOW()
where id=1