insert into tb_pluss_device_merchant_buy(orderNo, transNo, merchantCode, merchantName, venderModel, status,
payCode, payName, createDt, transDt, refundNo, refundDt, expressNo,
provinces, address, orderAmount, quantity, linkName, linkPhone,
venderCode, email, snNo,logistNo)
VALUES (#{orderNo}, #{transNo}, #{merchantCode}, #{merchantName}, #{venderModel}, #{status}, #{payCode},
#{payName}, now(), #{transDt}, #{refundNo}, #{refundDt}, #{expressNo}, #{provinces}, #{address},
#{orderAmount}, #{quantity}, #{linkName}, #{linkPhone}, #{venderCode}, #{email}, #{snNo},#{logistNo})
insert into
tb_pluss_device_merchant_buy(orderNo,transNo,merchantCode,merchantName,venderModel,status,payCode,payName,createDt,transDt,refundNo,snNo,logistNo)
VALUES
(#{orderNo},#{transNo},#{merchantCode},#{merchantName},#{venderModel},#{status},#{payCode},#{payName},#{createDt},#{transDt},#{refundNo},#{snNo},#{logistNo})
update tb_pluss_device_merchant_buy
orderNo = #{orderNo},
transNo = #{transNo},
merchantCode = #{merchantCode},
merchantName = #{merchantName},
venderModel = #{venderModel},
status = #{status},
payCode = #{payCode},
payName = #{payName},
createDt = #{createDt},
transDt = #{transDt},
refundNo = #{refundNo},
refundDt = #{refundDt},
expressNo = #{expressNo},
provinces = #{provinces},
address = #{address},
orderAmount = #{orderAmount},
quantity = #{quantity},
linkName = #{linkName},
linkPhone = #{linkPhone},
venderCode = #{venderCode},
email = #{email},
actStatus = #{actStatus},
snNo = #{snNo},
logistNo = #{logistNo}
where id=#{id}
DELETE
FROM tb_pluss_device_merchant_buy
where id = #{id}