insert into tb_pluss_member_order(merchantCode, merchantName, storeId, storeName, memberCode, nickName,
createDt, orderType, orderFee, orderStatus, rechargeType, staffCode,
staffName, orderNumber, weChatTransNo, aliPayTransNo)
VALUES (#{merchantCode}, #{merchantName}, #{storeId}, #{storeName}, #{memberCode}, #{nickName}, #{createDt},
#{orderType}, #{orderFee}, #{orderStatus}, #{rechargeType}, #{staffCode}, #{staffName}, #{orderNumber},
#{weChatTransNo}, #{aliPayTransNo})
insert into
tb_pluss_member_order(merchantCode,merchantName,storeId,storeName,memberCode,nickName,createDt,orderType,orderFee,orderStatus,rechargeType,staffCode,staffName)
VALUES
(#{merchantCode},#{merchantName},#{storeId},#{storeName},#{memberCode},#{nickName},#{createDt},#{orderType},#{orderFee},#{orderStatus},#{rechargeType},#{staffCode},#{staffName}
)
update tb_pluss_member_order
merchantCode = #{merchantCode},
merchantName = #{merchantName},
storeId = #{storeId},
storeName = #{storeName},
memberCode = #{memberCode},
nickName = #{nickName},
createDt = #{createDt},
orderType = #{orderType},
orderFee = #{orderFee},
orderStatus = #{orderStatus},
rechargeType = #{rechargeType},
staffCode = #{staffCode},
staffName = #{staffName},
orderNumber = #{orderNumber},
weChatTransNo = #{weChatTransNo},
aliPayTransNo = #{aliPayTransNo},
channelNo = #{channelNo}
where id=#{id}
DELETE
FROM tb_pluss_member_order
where id = #{id}