| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?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.tdba.cxb.ares.api.repository.UserBindMapper">
- <insert id="insertSelective">
- insert into user_bind
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="null != uid">
- uid,
- </if>
- <if test="null != create_time">
- create_time,
- </if>
- <if test="null != del_flag">
- del_flag,
- </if>
- <if test="null != bind_uid">
- bind_uid,
- </if>
- <if test="null != type">
- type,
- </if>
- <if test="null != name">
- name,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="null != uid">
- #{ uid },
- </if>
- <if test="null != create_time">
- #{create_time},
- </if>
- <if test="null != del_flag">
- #{del_flag},
- </if>
- <if test="null != bind_uid">
- #{bind_uid},
- </if>
- <if test="null != type">
- #{ type },
- </if>
- <if test="null != name">
- #{name},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective">
- update user_bind
- <set>
- <if test="null != uid">
- uid = #{ uid },
- </if>
- <if test="null != create_time">
- create_time = #{create_time},
- </if>
- <if test="null != del_flag">
- del_flag = #{del_flag},
- </if>
- <if test="null != bind_uid">
- bind_uid = #{bind_uid},
- </if>
- <if test="null != type">
- type = #{ type },
- </if>
- <if test="null != name">
- type = #{name},
- </if>
- </set>
- where id = #{id}
- </update>
- <select id="selectByUid" resultType="com.tdba.cxb.ares.api.model.UserBind">
- select * from user_bind where del_flag = 0 and uid = #{uid}
- </select>
- <select id="selectUid" resultType="java.lang.Integer">
- select uid from user_bind where del_flag = 0 and type = 0 and bind_uid = #{bindUid}
- </select>
- </mapper>
|