| | |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_invite_code" property="inviteCode" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="uie_lottery_newbies" property="lotteryNewbies" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_coupon_news" property="couponNews" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_synch_navbar" property="synchNavbar" |
| | |
| | | <result column="uie_weixin" property="weiXin" jdbcType="VARCHAR" /> |
| | | <result column="uie_ercode" property="erCode" jdbcType="VARCHAR" /> |
| | | <result column="uie_gold_coin" property="goldCoin" jdbcType="INTEGER" /> |
| | | <result column="uie_auto_extract" property="autoExtract" |
| | | jdbcType="BOOLEAN" /> |
| | | <result column="uie_close_time_extract" property="closeTimeExtract" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_active_time" property="activeTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_mark" property="mark" jdbcType="VARCHAR" /> |
| | |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_invite_code" property="inviteCode" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="uie_lottery_newbies" property="lotteryNewbies" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_coupon_news" property="couponNews" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_synch_navbar" property="synchNavbar" |
| | |
| | | <result column="uie_weixin" property="weiXin" jdbcType="VARCHAR" /> |
| | | <result column="uie_ercode" property="erCode" jdbcType="VARCHAR" /> |
| | | <result column="uie_gold_coin" property="goldCoin" jdbcType="INTEGER" /> |
| | | <result column="uie_auto_extract" property="autoExtract" |
| | | jdbcType="BOOLEAN" /> |
| | | <result column="uie_close_time_extract" property="closeTimeExtract" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_active_time" property="activeTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_mark" property="mark" jdbcType="VARCHAR" /> |
| | |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_invite_code" property="inviteCode" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="uie_lottery_newbies" property="lotteryNewbies" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_coupon_news" property="couponNews" |
| | | jdbcType="INTEGER" /> |
| | | <result column="uie_synch_navbar" property="synchNavbar" |
| | |
| | | <result column="uie_weixin" property="weiXin" jdbcType="VARCHAR" /> |
| | | <result column="uie_ercode" property="erCode" jdbcType="VARCHAR" /> |
| | | <result column="uie_gold_coin" property="goldCoin" jdbcType="INTEGER" /> |
| | | <result column="uie_auto_extract" property="autoExtract" |
| | | jdbcType="BOOLEAN" /> |
| | | <result column="uie_close_time_extract" property="closeTimeExtract" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_active_time" property="activeTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="uie_mark" property="mark" jdbcType="VARCHAR" /> |
| | |
| | | <association property="userRank" column="uie_rank_id" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.user.UserRankMapper.BaseResultMap" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">uie_id,uie_uid,uie_rank_id,uie_rank_source,uie_rank_order_num,uie_rank_update_time,uie_invite_code,uie_lottery_newbies,uie_coupon_news,uie_synch_navbar,uie_first_login_time,uie_sex,uie_weixin,uie_gold_coin,uie_create_time,uie_update_time,uie_auto_extract,uie_close_time_extract,uie_active_time,uie_mark,uie_invite_code_vip,uie_ercode |
| | | <sql id="Base_Column_List">uie_id,uie_uid,uie_rank_id,uie_rank_source,uie_rank_order_num,uie_rank_update_time,uie_invite_code,uie_coupon_news,uie_synch_navbar,uie_first_login_time,uie_sex,uie_weixin,uie_gold_coin,uie_create_time,uie_update_time,uie_active_time,uie_mark,uie_invite_code_vip,uie_ercode |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserInfoExtra" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_user_info_extra |
| | | (uie_id,uie_uid,uie_rank_id,uie_rank_source,uie_rank_order_num,uie_rank_update_time,uie_invite_code,uie_lottery_newbies,uie_coupon_news,uie_synch_navbar,uie_first_login_time,uie_sex,uie_weixin,uie_gold_coin,uie_create_time,uie_update_time,uie_auto_extract,uie_close_time_extract,uie_active_time,uie_mark,uie_invite_code_vip,uie_ercode) |
| | | (uie_id,uie_uid,uie_rank_id,uie_rank_source,uie_rank_order_num,uie_rank_update_time,uie_invite_code,uie_coupon_news,uie_synch_navbar,uie_first_login_time,uie_sex,uie_weixin,uie_gold_coin,uie_create_time,uie_update_time,uie_active_time,uie_mark,uie_invite_code_vip,uie_ercode) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{userRank.id,jdbcType=BIGINT},#{rankSource,jdbcType=INTEGER},#{rankOrderNum,jdbcType=INTEGER},#{rankUpdateTime,jdbcType=TIMESTAMP},#{inviteCode,jdbcType=VARCHAR},#{lotteryNewbies,jdbcType=INTEGER},#{couponNews,jdbcType=INTEGER},#{synchNavbar,jdbcType=VARCHAR},#{firstLoginTime,jdbcType=TIMESTAMP},#{sex,jdbcType=INTEGER},#{weiXin,jdbcType=VARCHAR},#{goldCoin,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{autoExtract,jdbcType=BOOLEAN},#{closeTimeExtract,jdbcType=TIMESTAMP},#{activeTime,jdbcType=TIMESTAMP},#{mark,jdbcType=VARCHAR},#{inviteCodeVip,jdbcType=VARCHAR},#{erCode,jdbcType=VARCHAR}) |
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{userRank.id,jdbcType=BIGINT},#{rankSource,jdbcType=INTEGER},#{rankOrderNum,jdbcType=INTEGER},#{rankUpdateTime,jdbcType=TIMESTAMP},#{inviteCode,jdbcType=VARCHAR},#{couponNews,jdbcType=INTEGER},#{synchNavbar,jdbcType=VARCHAR},#{firstLoginTime,jdbcType=TIMESTAMP},#{sex,jdbcType=INTEGER},#{weiXin,jdbcType=VARCHAR},#{goldCoin,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{activeTime,jdbcType=TIMESTAMP},#{mark,jdbcType=VARCHAR},#{inviteCodeVip,jdbcType=VARCHAR},#{erCode,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserInfoExtra" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | |
| | | <if test="rankOrderNum != null">uie_rank_order_num,</if> |
| | | <if test="rankUpdateTime != null">uie_rank_update_time,</if> |
| | | <if test="inviteCode != null">uie_invite_code,</if> |
| | | <if test="lotteryNewbies != null">uie_lottery_newbies,</if> |
| | | <if test="couponNews != null">uie_coupon_news,</if> |
| | | <if test="synchNavbar != null">uie_synch_navbar,</if> |
| | | <if test="firstLoginTime != null">uie_first_login_time,</if> |
| | |
| | | <if test="goldCoin != null">uie_gold_coin,</if> |
| | | <if test="createTime != null">uie_create_time,</if> |
| | | <if test="updateTime != null">uie_update_time,</if> |
| | | <if test="autoExtract != null">uie_auto_extract,</if> |
| | | <if test="closeTimeExtract != null">uie_close_time_extract,</if> |
| | | <if test="activeTime != null">uie_active_time,</if> |
| | | <if test="mark != null">uie_mark,</if> |
| | | <if test="inviteCodeVip != null">uie_invite_code_vip,</if> |
| | |
| | | <if test="rankOrderNum != null">#{rankOrderNum,jdbcType=INTEGER},</if> |
| | | <if test="rankUpdateTime != null">#{rankUpdateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="inviteCode != null">#{inviteCode,jdbcType=VARCHAR},</if> |
| | | <if test="lotteryNewbies != null">#{lotteryNewbies,jdbcType=INTEGER},</if> |
| | | <if test="couponNews != null">#{couponNews,jdbcType=INTEGER},</if> |
| | | <if test="synchNavbar != null">#{synchNavbar,jdbcType=VARCHAR},</if> |
| | | <if test="firstLoginTime != null">#{firstLoginTime,jdbcType=TIMESTAMP},</if> |
| | |
| | | <if test="goldCoin != null">#{goldCoin,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="autoExtract != null">#{autoExtract,jdbcType=BOOLEAN},</if> |
| | | <if test="closeTimeExtract != null">#{closeTimeExtract,jdbcType=TIMESTAMP},</if> |
| | | <if test="activeTime != null">#{activeTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="mark != null">#{mark,jdbcType=VARCHAR},</if> |
| | | <if test="inviteCodeVip != null">#{inviteCodeVip,jdbcType=VARCHAR}</if> |
| | |
| | | #{rankSource,jdbcType=INTEGER},uie_rank_order_num = |
| | | #{rankOrderNum,jdbcType=INTEGER},uie_rank_update_time = |
| | | #{rankUpdateTime,jdbcType=TIMESTAMP},uie_invite_code = |
| | | #{inviteCode,jdbcType=VARCHAR},uie_lottery_newbies = |
| | | #{lotteryNewbies,jdbcType=INTEGER},uie_coupon_news = |
| | | #{inviteCode,jdbcType=VARCHAR},uie_coupon_news = |
| | | #{couponNews,jdbcType=INTEGER},uie_synch_navbar = |
| | | #{synchNavbar,jdbcType=VARCHAR},uie_first_login_time = |
| | | #{firstLoginTime,jdbcType=TIMESTAMP},uie_sex = |
| | |
| | | #{erCode,jdbcType=VARCHAR},uie_gold_coin = |
| | | #{goldCoin,jdbcType=INTEGER},uie_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP},uie_update_time = |
| | | #{updateTime,jdbcType=TIMESTAMP},uie_auto_extract = |
| | | #{autoExtract,jdbcType=BOOLEAN},uie_close_time_extract = |
| | | #{closeTimeExtract,jdbcType=TIMESTAMP},uie_active_time = |
| | | #{updateTime,jdbcType=TIMESTAMP},uie_active_time = |
| | | #{activeTime,jdbcType=TIMESTAMP},uie_mark = #{mark,jdbcType=VARCHAR} |
| | | ,uie_invite_code_vip =#{inviteCodeVip,jdbcType=VARCHAR} where |
| | | uie_id = #{id,jdbcType=BIGINT} |
| | |
| | | <if test="rankUpdateTime != null">uie_rank_update_time=#{rankUpdateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="inviteCode != null">uie_invite_code=#{inviteCode,jdbcType=VARCHAR},</if> |
| | | <if test="lotteryNewbies != null">uie_lottery_newbies=#{lotteryNewbies,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="couponNews != null">uie_coupon_news=#{couponNews,jdbcType=INTEGER},</if> |
| | | <if test="synchNavbar != null">uie_synch_navbar=#{synchNavbar,jdbcType=VARCHAR},</if> |
| | | <if test="firstLoginTime != null">uie_first_login_time=#{firstLoginTime,jdbcType=TIMESTAMP}, |
| | |
| | | <if test="goldCoin != null">uie_gold_coin=#{goldCoin,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">uie_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">uie_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="autoExtract != null">uie_auto_extract=#{autoExtract,jdbcType=BOOLEAN},</if> |
| | | <if test="closeTimeExtract != null">uie_close_time_extract=#{closeTimeExtract,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="activeTime != null">uie_active_time=#{activeTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="mark != null">uie_mark=#{mark,jdbcType=VARCHAR},</if> |
| | | <if test="inviteCodeVip !=null">uie_invite_code_vip=#{inviteCodeVip,jdbcType=VARCHAR}, |
| | |
| | | <if test="rankUpdateTime != null">uie_rank_update_time=#{rankUpdateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="inviteCode != null">uie_invite_code=#{inviteCode,jdbcType=VARCHAR},</if> |
| | | <if test="lotteryNewbies != null">uie_lottery_newbies=#{lotteryNewbies,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="couponNews != null">uie_coupon_news=#{couponNews,jdbcType=INTEGER},</if> |
| | | <if test="synchNavbar != null">uie_synch_navbar=#{synchNavbar,jdbcType=VARCHAR},</if> |
| | | <if test="firstLoginTime != null">uie_first_login_time=#{firstLoginTime,jdbcType=TIMESTAMP}, |
| | |
| | | <if test="goldCoin != null">uie_gold_coin=#{goldCoin,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">uie_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">uie_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="autoExtract != null">uie_auto_extract=#{autoExtract,jdbcType=BOOLEAN},</if> |
| | | <if test="closeTimeExtract != null">uie_close_time_extract=#{closeTimeExtract,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="activeTime != null">uie_active_time=#{activeTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="mark != null">uie_mark=#{mark,jdbcType=VARCHAR},</if> |
| | | </set> |
| | |
| | | yeshi_ec_user_info_extra ue LEFT JOIN yeshi_ec_user_rank rk ON |
| | | rk.`ur_id` = ue.`uie_rank_id` WHERE ue.`uie_uid` = #{uid} |
| | | </select> |
| | | <update id="updateAutoExtract">UPDATE |
| | | yeshi_ec_user_info_extra SET uie_auto_extract = 1 WHERE |
| | | uie_auto_extract = 0 AND DATEDIFF(NOW(),uie_close_time_extract) <![CDATA[>]]> |
| | | #{days} |
| | | </update> |
| | | </mapper> |