INSERT INTO auth_license(id, appid, name, apiKey, secretKey, createDate, customerId, companyName)
values (#{id}, #{appid}, #{name,jdbcType=VARCHAR}, #{apiKey,jdbcType=VARCHAR},
#{secretKey,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{customerId}, #{companyName})
UPDATE auth_license
appid=#{appid},name=#{name},apiKey=#{apiKey},secretKey=#{secretKey},createDate=#{createDate}customerId=#{customerId}companyName=#{companyName}
WHERE id=#{id}
delete
from auth_license
where id = #{id}
delete
from auth_license
where customerId = #{customerId}
update auth_license
apikey=#{apikey},secretkey=#{secretkey},
where name = #{name}