177 lines
6.3 KiB
XML
177 lines
6.3 KiB
XML
<?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.chaozhanggui.system.cashierservice.dao.GUserSetMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.GUserSet">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="app_id" jdbcType="VARCHAR" property="appId" />
|
|
<result column="store_id" jdbcType="VARCHAR" property="storeId" />
|
|
<result column="store_name" jdbcType="VARCHAR" property="storeName" />
|
|
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName" />
|
|
<result column="token" jdbcType="VARCHAR" property="token" />
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" />
|
|
<result column="nofiy_url" jdbcType="VARCHAR" property="nofiyUrl" />
|
|
<result column="public_key" jdbcType="VARCHAR" property="publicKey" />
|
|
<result column="private_key" jdbcType="VARCHAR" property="privateKey" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, app_id, store_id, store_name, merchant_name, token, ip, nofiy_url, public_key,
|
|
private_key, create_time, update_time
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from g_user_set
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from g_user_set
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.GUserSet">
|
|
insert into g_user_set (id, app_id, store_id,
|
|
store_name, merchant_name, token,
|
|
ip, nofiy_url, public_key,
|
|
private_key, create_time, update_time
|
|
)
|
|
values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{storeId,jdbcType=VARCHAR},
|
|
#{storeName,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR},
|
|
#{ip,jdbcType=VARCHAR}, #{nofiyUrl,jdbcType=VARCHAR}, #{publicKey,jdbcType=VARCHAR},
|
|
#{privateKey,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.GUserSet">
|
|
insert into g_user_set
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="appId != null">
|
|
app_id,
|
|
</if>
|
|
<if test="storeId != null">
|
|
store_id,
|
|
</if>
|
|
<if test="storeName != null">
|
|
store_name,
|
|
</if>
|
|
<if test="merchantName != null">
|
|
merchant_name,
|
|
</if>
|
|
<if test="token != null">
|
|
token,
|
|
</if>
|
|
<if test="ip != null">
|
|
ip,
|
|
</if>
|
|
<if test="nofiyUrl != null">
|
|
nofiy_url,
|
|
</if>
|
|
<if test="publicKey != null">
|
|
public_key,
|
|
</if>
|
|
<if test="privateKey != null">
|
|
private_key,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="appId != null">
|
|
#{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="storeId != null">
|
|
#{storeId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="storeName != null">
|
|
#{storeName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="merchantName != null">
|
|
#{merchantName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="token != null">
|
|
#{token,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ip != null">
|
|
#{ip,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="nofiyUrl != null">
|
|
#{nofiyUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="publicKey != null">
|
|
#{publicKey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="privateKey != null">
|
|
#{privateKey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.GUserSet">
|
|
update g_user_set
|
|
<set>
|
|
<if test="appId != null">
|
|
app_id = #{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="storeId != null">
|
|
store_id = #{storeId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="storeName != null">
|
|
store_name = #{storeName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="merchantName != null">
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="token != null">
|
|
token = #{token,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ip != null">
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="nofiyUrl != null">
|
|
nofiy_url = #{nofiyUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="publicKey != null">
|
|
public_key = #{publicKey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="privateKey != null">
|
|
private_key = #{privateKey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.GUserSet">
|
|
update g_user_set
|
|
set app_id = #{appId,jdbcType=VARCHAR},
|
|
store_id = #{storeId,jdbcType=VARCHAR},
|
|
store_name = #{storeName,jdbcType=VARCHAR},
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR},
|
|
token = #{token,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
nofiy_url = #{nofiyUrl,jdbcType=VARCHAR},
|
|
public_key = #{publicKey,jdbcType=VARCHAR},
|
|
private_key = #{privateKey,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |