| | |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uiet_update_time" property="updateTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uiet_relation_valid" property="relationValid" |
| | | jdbcType="BOOLEAN" /> |
| | | <result column="uiet_special_valid" property="specialValid" |
| | | jdbcType="BOOLEAN" /> |
| | | <result column="uiet_taobao_uid" property="taoBaoUid" jdbcType="VARCHAR" /> |
| | | |
| | | <result column="uiet_taobao_order_end_6_num" property="taoBaoOrderEnd6Num" |
| | | jdbcType="VARCHAR" /> |
| | | |
| | | <association property="user" column="uiet_uid" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="uiet_uid" property="id" /> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">uiet_id,uiet_uid,uiet_relation_id,uiet_relation_update_time,uiet_special_id,uiet_special_update_time,uiet_create_time,uiet_update_time |
| | | <sql id="Base_Column_List">uiet_id,uiet_uid,uiet_relation_id,uiet_relation_update_time,uiet_special_id,uiet_special_update_time,uiet_create_time,uiet_update_time,uiet_relation_valid,uiet_special_valid,uiet_taobao_uid,uiet_taobao_order_end_6_num |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | |
| | | from yeshi_ec_user_info_extra_taobao where uiet_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByUid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_info_extra_taobao where uiet_uid = |
| | | #{0} limit 1 |
| | | </select> |
| | | |
| | | <select id="selectByTaoBaoUid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_info_extra_taobao where uiet_taobao_uid = |
| | | #{0} limit 1 |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_user_info_extra_taobao where uiet_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_user_info_extra_taobao |
| | | (uiet_id,uiet_uid,uiet_relation_id,uiet_relation_update_time,uiet_special_id,uiet_special_update_time,uiet_create_time,uiet_update_time) |
| | | (uiet_id,uiet_uid,uiet_relation_id,uiet_relation_update_time,uiet_special_id,uiet_special_update_time,uiet_create_time,uiet_update_time,uiet_relation_valid,uiet_special_valid,uiet_taobao_uid,uiet_taobao_order_end_6_num) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{relationId,jdbcType=VARCHAR},#{relationUpdateTime,jdbcType=TIMESTAMP},#{specialId,jdbcType=VARCHAR},#{specialUpdateTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) |
| | | (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{relationId,jdbcType=VARCHAR},#{relationUpdateTime,jdbcType=TIMESTAMP},#{specialId,jdbcType=VARCHAR},#{specialUpdateTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{relationValid,jdbcType=BOOLEAN},#{specialValid,jdbcType=BOOLEAN},#{taoBaoUid,jdbcType=VARCHAR},#{taoBaoOrderEnd6Num,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | |
| | | <if test="specialUpdateTime != null">uiet_special_update_time,</if> |
| | | <if test="createTime != null">uiet_create_time,</if> |
| | | <if test="updateTime != null">uiet_update_time,</if> |
| | | <if test="relationValid != null">uiet_relation_valid,</if> |
| | | <if test="specialValid != null">uiet_special_valid,</if> |
| | | <if test="taoBaoUid != null">uiet_taobao_uid,</if> |
| | | <if test="taoBaoOrderEnd6Num != null">uiet_taobao_order_end_6_num,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="specialUpdateTime != null">#{specialUpdateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="relationValid != null">#{relationValid,jdbcType=BOOLEAN},</if> |
| | | <if test="specialValid != null">#{specialValid,jdbcType=BOOLEAN},</if> |
| | | <if test="taoBaoUid != null">#{taoBaoUid,jdbcType=VARCHAR},</if> |
| | | <if test="taoBaoOrderEnd6Num != null">#{taoBaoOrderEnd6Num,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo">update |
| | | yeshi_ec_user_info_extra_taobao set uiet_uid = |
| | | #{user.id,jdbcType=BIGINT},uiet_relation_id = |
| | |
| | | #{specialId,jdbcType=VARCHAR},uiet_special_update_time = |
| | | #{specialUpdateTime,jdbcType=TIMESTAMP},uiet_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP},uiet_update_time = |
| | | #{updateTime,jdbcType=TIMESTAMP} where uiet_id = #{id,jdbcType=BIGINT} |
| | | #{updateTime,jdbcType=TIMESTAMP} ,uiet_relation_valid |
| | | =#{relationValid,jdbcType=BOOLEAN} ,uiet_special_valid |
| | | =#{specialValid,jdbcType=BOOLEAN} ,uiet_taobao_uid |
| | | =#{taoBaoUid,jdbcType=VARCHAR},uiet_taobao_order_end_6_num |
| | | =#{taoBaoOrderEnd6Num,jdbcType=VARCHAR} |
| | | where uiet_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo"> |
| | | update yeshi_ec_user_info_extra_taobao |
| | |
| | | </if> |
| | | <if test="createTime != null">uiet_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">uiet_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="id !=null">uiet_id =#{id,jdbcType=BIGINT},</if> |
| | | <if test="relationValid !=null">uiet_relation_valid =#{relationValid,jdbcType=BOOLEAN}, |
| | | </if> |
| | | <if test="specialValid !=null">uiet_special_valid =#{specialValid,jdbcType=BOOLEAN}, |
| | | </if> |
| | | <if test="taoBaoUid !=null">uiet_taobao_uid =#{taoBaoUid,jdbcType=VARCHAR},</if> |
| | | <if test="taoBaoOrderEnd6Num !=null">uiet_taobao_order_end_6_num=#{taoBaoOrderEnd6Num,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | where uiet_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="clearUid" parameterType="java.lang.Long"> |
| | | update |
| | | yeshi_ec_user_info_extra_taobao set uiet_uid=null where uiet_uid=#{0} |
| | | </update> |
| | | </mapper> |