add api-admin/src/main/resources/mybatis/mapper/auth/AuthLicenseDao.xml.

平台授权
master
cqf 3 years ago committed by Gitee
parent 2dd74c91a7
commit 3b90b725cf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.glxp.sale.admin.dao.auth.AuthLicenseDao">
<select id="get" resultType="com.glxp.sale.admin.entity.auth.AuthLicense">
SELECT *
FROM auth_license where id = #{id}
</select>
<insert id="save" keyProperty="id" parameterType="com.glxp.sale.admin.entity.auth.AuthLicense">
INSERT INTO auth_license(id,appid,name,api_key,secret_key,create_date)
values
(#{id},#{appid},#{name,jdbcType=VARCHAR},#{apiKey,jdbcType=VARCHAR},#{secretKey,jdbcType=VARCHAR},#{createDate,jdbcType=TIMESTAMP})
</insert>
<update id="update" parameterType="com.glxp.sale.admin.entity.auth.AuthLicense">
UPDATE auth_license
<set>
<if test="appid != null">appid=#{appid},</if>
<if test="name != null">name=#{name},</if>
<if test="apiKey != null">api_Key=#{apiKey},</if>
<if test="secretKey != null">secret_Key=#{secretKey},</if>
<if test="createDate != null">create_Date=#{createDate}</if>
</set>
WHERE id=#{id}
</update>
<delete id="remove">
delete
from auth_license
where id = #{id}
</delete>
</mapper>
Loading…
Cancel
Save