123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883 |
- <?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.game.business.mapper.AppUserMapper">
-
- <resultMap type="com.game.business.domain.AppUser" id="AppUserResult">
- <result property="userid" column="userid" />
- <result property="address" column="address" />
- <result property="agentId" column="agent_id" />
- <result property="amount" column="amount" />
- <result property="anchorGrade" column="anchor_grade" />
- <result property="anchorPoint" column="anchor_point" />
- <result property="appVersion" column="app_version" />
- <result property="appVersionCode" column="app_version_code" />
- <result property="avatar" column="avatar" />
- <result property="awardLoginDay" column="award_login_day" />
- <result property="birthday" column="birthday" />
- <result property="broadCast" column="broad_cast" />
- <result property="channelId" column="channel_id" />
- <result property="chargeShow" column="charge_show" />
- <result property="charmGrade" column="charm_grade" />
- <result property="charmPoint" column="charm_point" />
- <result property="city" column="city" />
- <result property="cityEdit" column="city_edit" />
- <result property="coin" column="coin" />
- <result property="coinCash" column="coin_cash" />
- <result property="constellation" column="constellation" />
- <result property="consumption" column="consumption" />
- <result property="createTime" column="create_time" />
- <result property="dealScalePlan" column="deal_scale_plan" />
- <result property="delFlag" column="del_flag" />
- <result property="deviceId" column="device_id" />
- <result property="devoteShow" column="devote_show" />
- <result property="giftGlobalBroadcast" column="gift_global_broadcast" />
- <result property="goodnum" column="goodnum" />
- <result property="groupId" column="group_id" />
- <result property="gsRoomId" column="gs_room_id" />
- <result property="gsRoomType" column="gs_room_type" />
- <result property="guildId" column="guild_id" />
- <result property="headNo" column="head_no" />
- <result property="height" column="height" />
- <result property="hideDistance" column="hide_distance" />
- <result property="inviteCode" column="invite_code" />
- <result property="bindCode" column="bind_code" />
- <result property="ipaddr" column="ipaddr" />
- <result property="isAnchorAuth" column="is_anchor_auth" />
- <result property="isAutomatic" column="is_automatic" />
- <result property="isJoinJg" column="is_join_jg" />
- <result property="isLiveAccount" column="is_live_account" />
- <result property="isNotDisturb" column="is_not_disturb" />
- <result property="isOooAccount" column="is_ooo_account" />
- <result property="isPush" column="is_push" />
- <result property="isRecommend" column="is_recommend" />
- <result property="isShowHomePage" column="is_show_home_page" />
- <result property="isSvip" column="is_svip" />
- <result property="isTone" column="is_tone" />
- <result property="isYouthModel" column="is_youth_model" />
- <result property="ishot" column="ishot" />
- <result property="isrecord" column="isrecord" />
- <result property="issuper" column="issuper" />
- <result property="iszombie" column="iszombie" />
- <result property="iszombiep" column="iszombiep" />
- <result property="joinRoomShow" column="join_room_show" />
- <result property="kickTime" column="kick_time" />
- <result property="lastGameNum" column="last_game_num" />
- <result property="lastLoginDay" column="last_login_day" />
- <result property="lastLoginIp" column="last_login_ip" />
- <result property="lastLoginTime" column="last_login_time" />
- <result property="lastOffLineTime" column="last_off_line_time" />
- <result property="lat" column="lat" />
- <result property="level" column="level" />
- <result property="liveFunction" column="live_function" />
- <result property="liveStatus" column="live_status" />
- <result property="liveThumb" column="live_thumb" />
- <result property="liveThumbs" column="live_thumbs" />
- <result property="lng" column="lng" />
- <result property="lockReason" column="lock_reason" />
- <result property="lockTime" column="lock_time" />
- <result property="loginType" column="login_type" />
- <result property="managerCoId" column="manager_co_id" />
- <result property="managerId" column="manager_id" />
- <result property="maxSignCount" column="max_sign_count" />
- <result property="mobile" column="mobile" />
- <result property="nickname" column="nickname" />
- <result property="nobleGrade" column="noble_grade" />
- <result property="onlineStatus" column="online_status" />
- <result property="oooHomePageSortNo" column="ooo_home_page_sort_no" />
- <result property="oooLiveStatus" column="ooo_live_status" />
- <result property="oooTwoClassifyId" column="ooo_two_classify_id" />
- <result property="openLiveZombieNum" column="open_live_zombie_num" />
- <result property="openid" column="openid" />
- <result property="optUserName" column="opt_user_name" />
- <result property="password" column="password" />
- <result property="phoneFirm" column="phone_firm" />
- <result property="phoneModel" column="phone_model" />
- <result property="phoneSystem" column="phone_system" />
- <result property="phoneUuid" column="phone_uuid" />
- <result property="pid" column="pid" />
- <result property="portrait" column="portrait" />
- <result property="poster" column="poster" />
- <result property="province" column="province" />
- <result property="pushPlatform" column="push_platform" />
- <result property="pushRegisterId" column="push_register_id" />
- <result property="readShortVideoNumber" column="read_short_video_number" />
- <result property="regType" column="reg_type" />
- <result property="registerIp" column="register_ip" />
- <result property="role" column="role" />
- <result property="roomId" column="room_id" />
- <result property="roomTitle" column="room_title" />
- <result property="roomType" column="room_type" />
- <result property="roomTypeVal" column="room_type_val" />
- <result property="salt" column="salt" />
- <result property="sanwei" column="sanwei" />
- <result property="score" column="score" />
- <result property="sex" column="sex" />
- <result property="signCount" column="sign_count" />
- <result property="signTime" column="sign_time" />
- <result property="signature" column="signature" />
- <result property="smsRegion" column="sms_region" />
- <result property="source" column="source" />
- <result property="starId" column="star_id" />
- <result property="status" column="status" />
- <result property="totalAmount" column="total_amount" />
- <result property="totalAmountCash" column="total_amount_cash" />
- <result property="totalCash" column="total_cash" />
- <result property="totalCharge" column="total_charge" />
- <result property="unionid" column="unionid" />
- <result property="updatePwdTime" column="update_pwd_time" />
- <result property="userActivationKey" column="user_activation_key" />
- <result property="userEmail" column="user_email" />
- <result property="userGrade" column="user_grade" />
- <result property="userPoint" column="user_point" />
- <result property="userSetOnlineStatus" column="user_set_online_status" />
- <result property="userType" column="user_type" />
- <result property="userUrl" column="user_url" />
- <result property="username" column="username" />
- <result property="video" column="video" />
- <result property="videoCoin" column="video_coin" />
- <result property="videoImg" column="video_img" />
- <result property="vocation" column="vocation" />
- <result property="voice" column="voice" />
- <result property="voiceCoin" column="voice_coin" />
- <result property="voiceStatus" column="voice_status" />
- <result property="voipToken" column="voip_token" />
- <result property="votes" column="votes" />
- <result property="votestotal" column="votestotal" />
- <result property="wealthGrade" column="wealth_grade" />
- <result property="wechat" column="wechat" />
- <result property="weight" column="weight" />
- <result property="whetherEnablePositioningShow" column="whether_enable_positioning_show" />
- <result property="youthPassword" column="youth_password" />
- <result property="zombieMaxNum" column="zombie_max_num" />
- <result property="zombieRatio" column="zombie_ratio" />
- <result property="agentGrade" column="agent_grade" />
- <result property="liveDividedInto" column="live_divided_into" />
- <result property="gameDividedInto" column="game_divided_into" />
- <result property="inviteBindTime" column="invite_bind_time" />
- <result property="fundPassword" column="fund_password" />
- <result property="diamondCoin" column="diamond_coin" />
- <result property="diamondCoinCash" column="diamond_coin_cash" />
- <result property="diamondCoinTotal" column="diamond_coin_total" />
- <result property="diamondCoinCashTotal" column="diamond_coin_cash_total" />
- <result property="agentFlag" column="agent_flag" />
- <result property="withdrawAble" column="withdraw_able" />
- <result property="withdraw" column="withdraw" />
- </resultMap>
- <sql id="selectAppUserVo">
- select userid, address, agent_id, amount, anchor_grade, anchor_point, app_version, app_version_code, avatar, award_login_day, birthday, broad_cast, channel_id, charge_show, charm_grade, charm_point, city, city_edit, coin,coin_cash, constellation, consumption, create_time, deal_scale_plan, del_flag, device_id, devote_show, gift_global_broadcast, goodnum, group_id, gs_room_id, gs_room_type, guild_id, head_no, height, hide_distance, invite_code, bind_code, ipaddr, is_anchor_auth, is_automatic, is_join_jg, is_live_account, is_not_disturb, is_ooo_account, is_push, is_recommend, is_show_home_page, is_svip, is_tone, is_youth_model, ishot, isrecord, issuper, iszombie, iszombiep, join_room_show, kick_time, last_game_num, last_login_day, last_login_ip, last_login_time, last_off_line_time, lat, level, live_function, live_status, live_thumb, live_thumbs, lng, lock_reason, lock_time, login_type, manager_co_id, manager_id, max_sign_count, mobile, nickname, noble_grade, online_status, ooo_home_page_sort_no, ooo_live_status, ooo_two_classify_id, open_live_zombie_num, openid, opt_user_name, password, phone_firm, phone_model, phone_system, phone_uuid, pid, portrait, poster, province, push_platform, push_register_id, read_short_video_number, reg_type, register_ip, role, room_id, room_title, room_type, room_type_val, salt, sanwei, score, sex, sign_count, sign_time, signature, sms_region, source, star_id, status, total_amount, total_amount_cash, total_cash, total_charge, unionid, update_pwd_time, user_activation_key, user_email, user_grade, user_point, user_set_online_status, user_type, user_url, username, video, video_coin, video_img, vocation, voice, voice_coin, voice_status, voip_token, votes, votestotal, wealth_grade, wechat, weight, whether_enable_positioning_show, youth_password, zombie_max_num, zombie_ratio, agent_grade, live_divided_into, game_divided_into, invite_bind_time, fund_password, diamond_coin,diamond_coin_cash, diamond_coin_total, diamond_coin_cash_total,withdraw_able,withdraw from app_user
- </sql>
- <select id="selectAppUserList" parameterType="com.game.business.domain.AppUser" resultMap="AppUserResult">
- <include refid="selectAppUserVo"/>
- <where>
- <if test="userid != null"> and userid = #{userid}</if>
- <if test="address != null and address != ''"> and address = #{address}</if>
- <if test="agentId != null "> and agent_id = #{agentId}</if>
- <if test="amount != null "> and amount = #{amount}</if>
- <if test="anchorGrade != null "> and anchor_grade = #{anchorGrade}</if>
- <if test="anchorPoint != null "> and anchor_point = #{anchorPoint}</if>
- <if test="appVersion != null and appVersion != ''"> and app_version = #{appVersion}</if>
- <if test="appVersionCode != null and appVersionCode != ''"> and app_version_code = #{appVersionCode}</if>
- <if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
- <if test="awardLoginDay != null "> and award_login_day = #{awardLoginDay}</if>
- <if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if>
- <if test="broadCast != null "> and broad_cast = #{broadCast}</if>
- <if test="channelId != null "> and channel_id = #{channelId}</if>
- <if test="chargeShow != null "> and charge_show = #{chargeShow}</if>
- <if test="charmGrade != null "> and charm_grade = #{charmGrade}</if>
- <if test="charmPoint != null "> and charm_point = #{charmPoint}</if>
- <if test="city != null and city != ''"> and city = #{city}</if>
- <if test="cityEdit != null "> and city_edit = #{cityEdit}</if>
- <if test="coin != null "> and coin = #{coin}</if>
- <if test="coinCash != null "> and coin_cash = #{coinCash}</if>
- <if test="constellation != null and constellation != ''"> and constellation = #{constellation}</if>
- <if test="consumption != null "> and consumption = #{consumption}</if>
- <if test="dealScalePlan != null "> and deal_scale_plan = #{dealScalePlan}</if>
- <if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
- <if test="devoteShow != null "> and devote_show = #{devoteShow}</if>
- <if test="giftGlobalBroadcast != null "> and gift_global_broadcast = #{giftGlobalBroadcast}</if>
- <if test="goodnum != null and goodnum != ''"> and goodnum = #{goodnum}</if>
- <if test="groupId != null "> and group_id = #{groupId}</if>
- <if test="gsRoomId != null "> and gs_room_id = #{gsRoomId}</if>
- <if test="gsRoomType != null "> and gs_room_type = #{gsRoomType}</if>
- <if test="guildId != null "> and guild_id = #{guildId}</if>
- <if test="headNo != null "> and head_no = #{headNo}</if>
- <if test="height != null "> and height = #{height}</if>
- <if test="hideDistance != null "> and hide_distance = #{hideDistance}</if>
- <if test="inviteCode != null and inviteCode != ''"> and invite_code = #{inviteCode}</if>
- <if test="bindCode != null and bindCode != ''"> and bind_code = #{bindCode}</if>
- <if test="ipaddr != null and ipaddr != ''"> and ipaddr = #{ipaddr}</if>
- <if test="isAnchorAuth != null "> and is_anchor_auth = #{isAnchorAuth}</if>
- <if test="isAutomatic != null "> and is_automatic = #{isAutomatic}</if>
- <if test="isJoinJg != null "> and is_join_jg = #{isJoinJg}</if>
- <if test="isLiveAccount != null "> and is_live_account = #{isLiveAccount}</if>
- <if test="isNotDisturb != null "> and is_not_disturb = #{isNotDisturb}</if>
- <if test="isOooAccount != null "> and is_ooo_account = #{isOooAccount}</if>
- <if test="isPush != null "> and is_push = #{isPush}</if>
- <if test="isRecommend != null "> and is_recommend = #{isRecommend}</if>
- <if test="isShowHomePage != null "> and is_show_home_page = #{isShowHomePage}</if>
- <if test="isSvip != null "> and is_svip = #{isSvip}</if>
- <if test="isTone != null "> and is_tone = #{isTone}</if>
- <if test="isYouthModel != null "> and is_youth_model = #{isYouthModel}</if>
- <if test="ishot != null "> and ishot = #{ishot}</if>
- <if test="isrecord != null "> and isrecord = #{isrecord}</if>
- <if test="issuper != null "> and issuper = #{issuper}</if>
- <if test="iszombie != null "> and iszombie = #{iszombie}</if>
- <if test="iszombiep != null "> and iszombiep = #{iszombiep}</if>
- <if test="joinRoomShow != null "> and join_room_show = #{joinRoomShow}</if>
- <if test="kickTime != null "> and kick_time = #{kickTime}</if>
- <if test="lastGameNum != null "> and last_game_num = #{lastGameNum}</if>
- <if test="lastLoginDay != null "> and last_login_day = #{lastLoginDay}</if>
- <if test="lastLoginIp != null and lastLoginIp != ''"> and last_login_ip = #{lastLoginIp}</if>
- <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
- <if test="lastOffLineTime != null "> and last_off_line_time = #{lastOffLineTime}</if>
- <if test="lat != null "> and lat = #{lat}</if>
- <if test="level != null "> and level = #{level}</if>
- <if test="liveFunction != null "> and live_function = #{liveFunction}</if>
- <if test="liveStatus != null "> and live_status = #{liveStatus}</if>
- <if test="liveThumb != null and liveThumb != ''"> and live_thumb = #{liveThumb}</if>
- <if test="liveThumbs != null and liveThumbs != ''"> and live_thumbs = #{liveThumbs}</if>
- <if test="lng != null "> and lng = #{lng}</if>
- <if test="lockReason != null and lockReason != ''"> and lock_reason = #{lockReason}</if>
- <if test="lockTime != null "> and lock_time = #{lockTime}</if>
- <if test="loginType != null and loginType != ''"> and login_type = #{loginType}</if>
- <if test="managerCoId != null "> and manager_co_id = #{managerCoId}</if>
- <if test="managerId != null "> and manager_id = #{managerId}</if>
- <if test="maxSignCount != null "> and max_sign_count = #{maxSignCount}</if>
- <if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
- <if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
- <if test="nobleGrade != null "> and noble_grade = #{nobleGrade}</if>
- <if test="onlineStatus != null "> and online_status = #{onlineStatus}</if>
- <if test="oooHomePageSortNo != null "> and ooo_home_page_sort_no = #{oooHomePageSortNo}</if>
- <if test="oooLiveStatus != null "> and ooo_live_status = #{oooLiveStatus}</if>
- <if test="oooTwoClassifyId != null "> and ooo_two_classify_id = #{oooTwoClassifyId}</if>
- <if test="openLiveZombieNum != null "> and open_live_zombie_num = #{openLiveZombieNum}</if>
- <if test="openid != null and openid != ''"> and openid = #{openid}</if>
- <if test="optUserName != null and optUserName != ''"> and opt_user_name like concat('%', #{optUserName}, '%')</if>
- <if test="password != null and password != ''"> and password = #{password}</if>
- <if test="phoneFirm != null and phoneFirm != ''"> and phone_firm = #{phoneFirm}</if>
- <if test="phoneModel != null and phoneModel != ''"> and phone_model = #{phoneModel}</if>
- <if test="phoneSystem != null and phoneSystem != ''"> and phone_system = #{phoneSystem}</if>
- <if test="phoneUuid != null and phoneUuid != ''"> and phone_uuid = #{phoneUuid}</if>
- <if test="pid != null "> and pid = #{pid}</if>
- <if test="portrait != null and portrait != ''"> and portrait = #{portrait}</if>
- <if test="poster != null and poster != ''"> and poster = #{poster}</if>
- <if test="province != null and province != ''"> and province = #{province}</if>
- <if test="pushPlatform != null "> and push_platform = #{pushPlatform}</if>
- <if test="pushRegisterId != null and pushRegisterId != ''"> and push_register_id = #{pushRegisterId}</if>
- <if test="readShortVideoNumber != null "> and read_short_video_number = #{readShortVideoNumber}</if>
- <if test="regType != null "> and reg_type = #{regType}</if>
- <if test="registerIp != null and registerIp != ''"> and register_ip = #{registerIp}</if>
- <if test="role != null "> and role = #{role}</if>
- <if test="roomId != null "> and room_id = #{roomId}</if>
- <if test="roomTitle != null and roomTitle != ''"> and room_title = #{roomTitle}</if>
- <if test="roomType != null "> and room_type = #{roomType}</if>
- <if test="roomTypeVal != null and roomTypeVal != ''"> and room_type_val = #{roomTypeVal}</if>
- <if test="salt != null and salt != ''"> and salt = #{salt}</if>
- <if test="sanwei != null and sanwei != ''"> and sanwei = #{sanwei}</if>
- <if test="score != null "> and score = #{score}</if>
- <if test="sex != null "> and sex = #{sex}</if>
- <if test="signCount != null "> and sign_count = #{signCount}</if>
- <if test="signTime != null "> and sign_time = #{signTime}</if>
- <if test="signature != null and signature != ''"> and signature = #{signature}</if>
- <if test="smsRegion != null and smsRegion != ''"> and sms_region = #{smsRegion}</if>
- <if test="source != null and source != ''"> and source = #{source}</if>
- <if test="starId != null "> and star_id = #{starId}</if>
- <if test="status != null "> and status = #{status}</if>
- <if test="totalAmount != null "> and total_amount = #{totalAmount}</if>
- <if test="totalAmountCash != null "> and total_amount_cash = #{totalAmountCash}</if>
- <if test="totalCash != null "> and total_cash = #{totalCash}</if>
- <if test="totalCharge != null "> and total_charge = #{totalCharge}</if>
- <if test="unionid != null and unionid != ''"> and unionid = #{unionid}</if>
- <if test="updatePwdTime != null "> and update_pwd_time = #{updatePwdTime}</if>
- <if test="userActivationKey != null and userActivationKey != ''"> and user_activation_key = #{userActivationKey}</if>
- <if test="userEmail != null and userEmail != ''"> and user_email = #{userEmail}</if>
- <if test="userGrade != null "> and user_grade = #{userGrade}</if>
- <if test="userPoint != null "> and user_point = #{userPoint}</if>
- <if test="userSetOnlineStatus != null "> and user_set_online_status = #{userSetOnlineStatus}</if>
- <if test="userType != null "> and user_type = #{userType}</if>
- <if test="userUrl != null and userUrl != ''"> and user_url = #{userUrl}</if>
- <if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
- <if test="video != null and video != ''"> and video = #{video}</if>
- <if test="videoCoin != null "> and video_coin = #{videoCoin}</if>
- <if test="videoImg != null and videoImg != ''"> and video_img = #{videoImg}</if>
- <if test="vocation != null and vocation != ''"> and vocation = #{vocation}</if>
- <if test="voice != null and voice != ''"> and voice = #{voice}</if>
- <if test="voiceCoin != null "> and voice_coin = #{voiceCoin}</if>
- <if test="voiceStatus != null "> and voice_status = #{voiceStatus}</if>
- <if test="voipToken != null and voipToken != ''"> and voip_token = #{voipToken}</if>
- <if test="votes != null "> and votes = #{votes}</if>
- <if test="votestotal != null "> and votestotal = #{votestotal}</if>
- <if test="wealthGrade != null "> and wealth_grade = #{wealthGrade}</if>
- <if test="wechat != null and wechat != ''"> and wechat = #{wechat}</if>
- <if test="weight != null "> and weight = #{weight}</if>
- <if test="whetherEnablePositioningShow != null "> and whether_enable_positioning_show = #{whetherEnablePositioningShow}</if>
- <if test="youthPassword != null and youthPassword != ''"> and youth_password = #{youthPassword}</if>
- <if test="zombieMaxNum != null "> and zombie_max_num = #{zombieMaxNum}</if>
- <if test="zombieRatio != null "> and zombie_ratio = #{zombieRatio}</if>
- <if test="agentGrade != null "> and agent_grade = #{agentGrade}</if>
- <if test="liveDividedInto != null "> and live_divided_into = #{liveDividedInto}</if>
- <if test="gameDividedInto != null "> and game_divided_into = #{gameDividedInto}</if>
- <if test="inviteBindTime != null "> and invite_bind_time = #{inviteBindTime}</if>
- <if test="fundPassword != null and fundPassword != ''"> and fund_password = #{fundPassword}</if>
- <if test="diamondCoin != null "> and diamond_coin = #{diamondCoin}</if>
- <if test="diamondCoinCash != null "> and diamond_coin_cash = #{diamondCoinCash}</if>
- <if test="diamondCoinTotal != null "> and diamond_coin_total = #{diamondCoinTotal}</if>
- <if test="diamondCoinCashTotal != null "> and diamond_coin_cash_total = #{diamondCoinCashTotal}</if>
- <if test="agentFlag != null and agentFlag != ''"> and agent_flag = #{agentFlag}</if>
- <if test="withdrawAble != null"> and withdraw_able = #{withdrawAble}</if>
- <if test="withdraw != null"> and withdraw = #{withdraw}</if>
- </where>
- </select>
-
- <select id="selectAppUserByUserid" parameterType="Long" resultMap="AppUserResult">
- <include refid="selectAppUserVo"/>
- where userid = #{userid}
- </select>
-
- <insert id="insertAppUser" parameterType="com.game.business.domain.AppUser" keyProperty="userid" useGeneratedKeys="true">
- insert into app_user
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="userid != null">userid,</if>
- <if test="address != null">address,</if>
- <if test="agentId != null">agent_id,</if>
- <if test="amount != null">amount,</if>
- <if test="anchorGrade != null">anchor_grade,</if>
- <if test="anchorPoint != null">anchor_point,</if>
- <if test="appVersion != null">app_version,</if>
- <if test="appVersionCode != null">app_version_code,</if>
- <if test="avatar != null">avatar,</if>
- <if test="awardLoginDay != null">award_login_day,</if>
- <if test="birthday != null">birthday,</if>
- <if test="broadCast != null">broad_cast,</if>
- <if test="channelId != null">channel_id,</if>
- <if test="chargeShow != null">charge_show,</if>
- <if test="charmGrade != null">charm_grade,</if>
- <if test="charmPoint != null">charm_point,</if>
- <if test="city != null">city,</if>
- <if test="cityEdit != null">city_edit,</if>
- <if test="coin != null">coin,</if>
- <if test="coinCash != null">coin_cash,</if>
- <if test="constellation != null">constellation,</if>
- <if test="consumption != null">consumption,</if>
- <if test="createTime != null">create_time,</if>
- <if test="dealScalePlan != null">deal_scale_plan,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="deviceId != null">device_id,</if>
- <if test="devoteShow != null">devote_show,</if>
- <if test="giftGlobalBroadcast != null">gift_global_broadcast,</if>
- <if test="goodnum != null">goodnum,</if>
- <if test="groupId != null">group_id,</if>
- <if test="gsRoomId != null">gs_room_id,</if>
- <if test="gsRoomType != null">gs_room_type,</if>
- <if test="guildId != null">guild_id,</if>
- <if test="headNo != null">head_no,</if>
- <if test="height != null">height,</if>
- <if test="hideDistance != null">hide_distance,</if>
- <if test="inviteCode != null">invite_code,</if>
- <if test="bindCode != null">bind_code,</if>
- <if test="ipaddr != null">ipaddr,</if>
- <if test="isAnchorAuth != null">is_anchor_auth,</if>
- <if test="isAutomatic != null">is_automatic,</if>
- <if test="isJoinJg != null">is_join_jg,</if>
- <if test="isLiveAccount != null">is_live_account,</if>
- <if test="isNotDisturb != null">is_not_disturb,</if>
- <if test="isOooAccount != null">is_ooo_account,</if>
- <if test="isPush != null">is_push,</if>
- <if test="isRecommend != null">is_recommend,</if>
- <if test="isShowHomePage != null">is_show_home_page,</if>
- <if test="isSvip != null">is_svip,</if>
- <if test="isTone != null">is_tone,</if>
- <if test="isYouthModel != null">is_youth_model,</if>
- <if test="ishot != null">ishot,</if>
- <if test="isrecord != null">isrecord,</if>
- <if test="issuper != null">issuper,</if>
- <if test="iszombie != null">iszombie,</if>
- <if test="iszombiep != null">iszombiep,</if>
- <if test="joinRoomShow != null">join_room_show,</if>
- <if test="kickTime != null">kick_time,</if>
- <if test="lastGameNum != null">last_game_num,</if>
- <if test="lastLoginDay != null">last_login_day,</if>
- <if test="lastLoginIp != null">last_login_ip,</if>
- <if test="lastLoginTime != null">last_login_time,</if>
- <if test="lastOffLineTime != null">last_off_line_time,</if>
- <if test="lat != null">lat,</if>
- <if test="level != null">level,</if>
- <if test="liveFunction != null">live_function,</if>
- <if test="liveStatus != null">live_status,</if>
- <if test="liveThumb != null">live_thumb,</if>
- <if test="liveThumbs != null">live_thumbs,</if>
- <if test="lng != null">lng,</if>
- <if test="lockReason != null">lock_reason,</if>
- <if test="lockTime != null">lock_time,</if>
- <if test="loginType != null">login_type,</if>
- <if test="managerCoId != null">manager_co_id,</if>
- <if test="managerId != null">manager_id,</if>
- <if test="maxSignCount != null">max_sign_count,</if>
- <if test="mobile != null">mobile,</if>
- <if test="nickname != null">nickname,</if>
- <if test="nobleGrade != null">noble_grade,</if>
- <if test="onlineStatus != null">online_status,</if>
- <if test="oooHomePageSortNo != null">ooo_home_page_sort_no,</if>
- <if test="oooLiveStatus != null">ooo_live_status,</if>
- <if test="oooTwoClassifyId != null">ooo_two_classify_id,</if>
- <if test="openLiveZombieNum != null">open_live_zombie_num,</if>
- <if test="openid != null">openid,</if>
- <if test="optUserName != null">opt_user_name,</if>
- <if test="password != null">password,</if>
- <if test="phoneFirm != null">phone_firm,</if>
- <if test="phoneModel != null">phone_model,</if>
- <if test="phoneSystem != null">phone_system,</if>
- <if test="phoneUuid != null">phone_uuid,</if>
- <if test="pid != null">pid,</if>
- <if test="portrait != null">portrait,</if>
- <if test="poster != null">poster,</if>
- <if test="province != null">province,</if>
- <if test="pushPlatform != null">push_platform,</if>
- <if test="pushRegisterId != null">push_register_id,</if>
- <if test="readShortVideoNumber != null">read_short_video_number,</if>
- <if test="regType != null">reg_type,</if>
- <if test="registerIp != null">register_ip,</if>
- <if test="role != null">role,</if>
- <if test="roomId != null">room_id,</if>
- <if test="roomTitle != null">room_title,</if>
- <if test="roomType != null">room_type,</if>
- <if test="roomTypeVal != null">room_type_val,</if>
- <if test="salt != null">salt,</if>
- <if test="sanwei != null">sanwei,</if>
- <if test="score != null">score,</if>
- <if test="sex != null">sex,</if>
- <if test="signCount != null">sign_count,</if>
- <if test="signTime != null">sign_time,</if>
- <if test="signature != null">signature,</if>
- <if test="smsRegion != null">sms_region,</if>
- <if test="source != null">source,</if>
- <if test="starId != null">star_id,</if>
- <if test="status != null">status,</if>
- <if test="totalAmount != null">total_amount,</if>
- <if test="totalAmountCash != null">total_amount_cash,</if>
- <if test="totalCash != null">total_cash,</if>
- <if test="totalCharge != null">total_charge,</if>
- <if test="unionid != null">unionid,</if>
- <if test="updatePwdTime != null">update_pwd_time,</if>
- <if test="userActivationKey != null">user_activation_key,</if>
- <if test="userEmail != null">user_email,</if>
- <if test="userGrade != null">user_grade,</if>
- <if test="userPoint != null">user_point,</if>
- <if test="userSetOnlineStatus != null">user_set_online_status,</if>
- <if test="userType != null">user_type,</if>
- <if test="userUrl != null">user_url,</if>
- <if test="username != null">username,</if>
- <if test="video != null">video,</if>
- <if test="videoCoin != null">video_coin,</if>
- <if test="videoImg != null">video_img,</if>
- <if test="vocation != null">vocation,</if>
- <if test="voice != null">voice,</if>
- <if test="voiceCoin != null">voice_coin,</if>
- <if test="voiceStatus != null">voice_status,</if>
- <if test="voipToken != null">voip_token,</if>
- <if test="votes != null">votes,</if>
- <if test="votestotal != null">votestotal,</if>
- <if test="wealthGrade != null">wealth_grade,</if>
- <if test="wechat != null">wechat,</if>
- <if test="weight != null">weight,</if>
- <if test="whetherEnablePositioningShow != null">whether_enable_positioning_show,</if>
- <if test="youthPassword != null">youth_password,</if>
- <if test="zombieMaxNum != null">zombie_max_num,</if>
- <if test="zombieRatio != null">zombie_ratio,</if>
- <if test="agentGrade != null">agent_grade,</if>
- <if test="liveDividedInto != null">live_divided_into,</if>
- <if test="gameDividedInto != null">game_divided_into,</if>
- <if test="inviteBindTime != null">invite_bind_time,</if>
- <if test="fundPassword != null">fund_password,</if>
- <if test="diamondCoin != null">diamond_coin,</if>
- <if test="diamondCoinCash != null">diamond_coin_cash,</if>
- <if test="diamondCoinTotal != null">diamond_coin_total,</if>
- <if test="diamondCoinCashTotal != null">diamond_coin_cash_total,</if>
- <if test="agentFlag != null and agentFlag != ''">agent_flag,</if>
- <if test="withdrawAble != null">withdraw_able,</if>
- <if test="withdraw != null">withdraw,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="userid != null">#{userid},</if>
- <if test="address != null">#{address},</if>
- <if test="agentId != null">#{agentId},</if>
- <if test="amount != null">#{amount},</if>
- <if test="anchorGrade != null">#{anchorGrade},</if>
- <if test="anchorPoint != null">#{anchorPoint},</if>
- <if test="appVersion != null">#{appVersion},</if>
- <if test="appVersionCode != null">#{appVersionCode},</if>
- <if test="avatar != null">#{avatar},</if>
- <if test="awardLoginDay != null">#{awardLoginDay},</if>
- <if test="birthday != null">#{birthday},</if>
- <if test="broadCast != null">#{broadCast},</if>
- <if test="channelId != null">#{channelId},</if>
- <if test="chargeShow != null">#{chargeShow},</if>
- <if test="charmGrade != null">#{charmGrade},</if>
- <if test="charmPoint != null">#{charmPoint},</if>
- <if test="city != null">#{city},</if>
- <if test="cityEdit != null">#{cityEdit},</if>
- <if test="coin != null">#{coin},</if>
- <if test="coinCash != null">#{coin_cash},</if>
- <if test="constellation != null">#{constellation},</if>
- <if test="consumption != null">#{consumption},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="dealScalePlan != null">#{dealScalePlan},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="deviceId != null">#{deviceId},</if>
- <if test="devoteShow != null">#{devoteShow},</if>
- <if test="giftGlobalBroadcast != null">#{giftGlobalBroadcast},</if>
- <if test="goodnum != null">#{goodnum},</if>
- <if test="groupId != null">#{groupId},</if>
- <if test="gsRoomId != null">#{gsRoomId},</if>
- <if test="gsRoomType != null">#{gsRoomType},</if>
- <if test="guildId != null">#{guildId},</if>
- <if test="headNo != null">#{headNo},</if>
- <if test="height != null">#{height},</if>
- <if test="hideDistance != null">#{hideDistance},</if>
- <if test="inviteCode != null">#{inviteCode},</if>
- <if test="bindCode != null">#{bindCode},</if>
- <if test="ipaddr != null">#{ipaddr},</if>
- <if test="isAnchorAuth != null">#{isAnchorAuth},</if>
- <if test="isAutomatic != null">#{isAutomatic},</if>
- <if test="isJoinJg != null">#{isJoinJg},</if>
- <if test="isLiveAccount != null">#{isLiveAccount},</if>
- <if test="isNotDisturb != null">#{isNotDisturb},</if>
- <if test="isOooAccount != null">#{isOooAccount},</if>
- <if test="isPush != null">#{isPush},</if>
- <if test="isRecommend != null">#{isRecommend},</if>
- <if test="isShowHomePage != null">#{isShowHomePage},</if>
- <if test="isSvip != null">#{isSvip},</if>
- <if test="isTone != null">#{isTone},</if>
- <if test="isYouthModel != null">#{isYouthModel},</if>
- <if test="ishot != null">#{ishot},</if>
- <if test="isrecord != null">#{isrecord},</if>
- <if test="issuper != null">#{issuper},</if>
- <if test="iszombie != null">#{iszombie},</if>
- <if test="iszombiep != null">#{iszombiep},</if>
- <if test="joinRoomShow != null">#{joinRoomShow},</if>
- <if test="kickTime != null">#{kickTime},</if>
- <if test="lastGameNum != null">#{lastGameNum},</if>
- <if test="lastLoginDay != null">#{lastLoginDay},</if>
- <if test="lastLoginIp != null">#{lastLoginIp},</if>
- <if test="lastLoginTime != null">#{lastLoginTime},</if>
- <if test="lastOffLineTime != null">#{lastOffLineTime},</if>
- <if test="lat != null">#{lat},</if>
- <if test="level != null">#{level},</if>
- <if test="liveFunction != null">#{liveFunction},</if>
- <if test="liveStatus != null">#{liveStatus},</if>
- <if test="liveThumb != null">#{liveThumb},</if>
- <if test="liveThumbs != null">#{liveThumbs},</if>
- <if test="lng != null">#{lng},</if>
- <if test="lockReason != null">#{lockReason},</if>
- <if test="lockTime != null">#{lockTime},</if>
- <if test="loginType != null">#{loginType},</if>
- <if test="managerCoId != null">#{managerCoId},</if>
- <if test="managerId != null">#{managerId},</if>
- <if test="maxSignCount != null">#{maxSignCount},</if>
- <if test="mobile != null">#{mobile},</if>
- <if test="nickname != null">#{nickname},</if>
- <if test="nobleGrade != null">#{nobleGrade},</if>
- <if test="onlineStatus != null">#{onlineStatus},</if>
- <if test="oooHomePageSortNo != null">#{oooHomePageSortNo},</if>
- <if test="oooLiveStatus != null">#{oooLiveStatus},</if>
- <if test="oooTwoClassifyId != null">#{oooTwoClassifyId},</if>
- <if test="openLiveZombieNum != null">#{openLiveZombieNum},</if>
- <if test="openid != null">#{openid},</if>
- <if test="optUserName != null">#{optUserName},</if>
- <if test="password != null">#{password},</if>
- <if test="phoneFirm != null">#{phoneFirm},</if>
- <if test="phoneModel != null">#{phoneModel},</if>
- <if test="phoneSystem != null">#{phoneSystem},</if>
- <if test="phoneUuid != null">#{phoneUuid},</if>
- <if test="pid != null">#{pid},</if>
- <if test="portrait != null">#{portrait},</if>
- <if test="poster != null">#{poster},</if>
- <if test="province != null">#{province},</if>
- <if test="pushPlatform != null">#{pushPlatform},</if>
- <if test="pushRegisterId != null">#{pushRegisterId},</if>
- <if test="readShortVideoNumber != null">#{readShortVideoNumber},</if>
- <if test="regType != null">#{regType},</if>
- <if test="registerIp != null">#{registerIp},</if>
- <if test="role != null">#{role},</if>
- <if test="roomId != null">#{roomId},</if>
- <if test="roomTitle != null">#{roomTitle},</if>
- <if test="roomType != null">#{roomType},</if>
- <if test="roomTypeVal != null">#{roomTypeVal},</if>
- <if test="salt != null">#{salt},</if>
- <if test="sanwei != null">#{sanwei},</if>
- <if test="score != null">#{score},</if>
- <if test="sex != null">#{sex},</if>
- <if test="signCount != null">#{signCount},</if>
- <if test="signTime != null">#{signTime},</if>
- <if test="signature != null">#{signature},</if>
- <if test="smsRegion != null">#{smsRegion},</if>
- <if test="source != null">#{source},</if>
- <if test="starId != null">#{starId},</if>
- <if test="status != null">#{status},</if>
- <if test="totalAmount != null">#{totalAmount},</if>
- <if test="totalAmountCash != null">#{totalAmountCash},</if>
- <if test="totalCash != null">#{totalCash},</if>
- <if test="totalCharge != null">#{totalCharge},</if>
- <if test="unionid != null">#{unionid},</if>
- <if test="updatePwdTime != null">#{updatePwdTime},</if>
- <if test="userActivationKey != null">#{userActivationKey},</if>
- <if test="userEmail != null">#{userEmail},</if>
- <if test="userGrade != null">#{userGrade},</if>
- <if test="userPoint != null">#{userPoint},</if>
- <if test="userSetOnlineStatus != null">#{userSetOnlineStatus},</if>
- <if test="userType != null">#{userType},</if>
- <if test="userUrl != null">#{userUrl},</if>
- <if test="username != null">#{username},</if>
- <if test="video != null">#{video},</if>
- <if test="videoCoin != null">#{videoCoin},</if>
- <if test="videoImg != null">#{videoImg},</if>
- <if test="vocation != null">#{vocation},</if>
- <if test="voice != null">#{voice},</if>
- <if test="voiceCoin != null">#{voiceCoin},</if>
- <if test="voiceStatus != null">#{voiceStatus},</if>
- <if test="voipToken != null">#{voipToken},</if>
- <if test="votes != null">#{votes},</if>
- <if test="votestotal != null">#{votestotal},</if>
- <if test="wealthGrade != null">#{wealthGrade},</if>
- <if test="wechat != null">#{wechat},</if>
- <if test="weight != null">#{weight},</if>
- <if test="whetherEnablePositioningShow != null">#{whetherEnablePositioningShow},</if>
- <if test="youthPassword != null">#{youthPassword},</if>
- <if test="zombieMaxNum != null">#{zombieMaxNum},</if>
- <if test="zombieRatio != null">#{zombieRatio},</if>
- <if test="agentGrade != null">#{agentGrade},</if>
- <if test="liveDividedInto != null">#{liveDividedInto},</if>
- <if test="gameDividedInto != null">#{gameDividedInto},</if>
- <if test="inviteBindTime != null">#{inviteBindTime},</if>
- <if test="fundPassword != null">#{fundPassword},</if>
- <if test="diamondCoin != null">#{diamondCoin},</if>
- <if test="diamondCoinCash != null">#{diamondCoinCash},</if>
- <if test="diamondCoinTotal != null">#{diamondCoinTotal},</if>
- <if test="diamondCoinCashTotal != null">#{diamondCoinCashTotal},</if>
- <if test="agentFlag != null and agentFlag != ''">#{agentFlag},</if>
- <if test="withdrawAble != null">#{withdrawAble},</if>
- <if test="withdraw != null">#{withdraw},</if>
- </trim>
- </insert>
- <update id="updateAppUser" parameterType="com.game.business.domain.AppUser">
- update app_user
- <trim prefix="SET" suffixOverrides=",">
- <if test="address != null">address = #{address},</if>
- <if test="agentId != null">agent_id = #{agentId},</if>
- <if test="amount != null">amount = #{amount},</if>
- <if test="anchorGrade != null">anchor_grade = #{anchorGrade},</if>
- <if test="anchorPoint != null">anchor_point = #{anchorPoint},</if>
- <if test="appVersion != null">app_version = #{appVersion},</if>
- <if test="appVersionCode != null">app_version_code = #{appVersionCode},</if>
- <if test="avatar != null">avatar = #{avatar},</if>
- <if test="awardLoginDay != null">award_login_day = #{awardLoginDay},</if>
- <if test="birthday != null">birthday = #{birthday},</if>
- <if test="broadCast != null">broad_cast = #{broadCast},</if>
- <if test="channelId != null">channel_id = #{channelId},</if>
- <if test="chargeShow != null">charge_show = #{chargeShow},</if>
- <if test="charmGrade != null">charm_grade = #{charmGrade},</if>
- <if test="charmPoint != null">charm_point = #{charmPoint},</if>
- <if test="city != null">city = #{city},</if>
- <if test="cityEdit != null">city_edit = #{cityEdit},</if>
- <if test="coin != null">coin = #{coin},</if>
- <if test="coinCash != null">coin_cash = #{coinCash},</if>
- <if test="constellation != null">constellation = #{constellation},</if>
- <if test="consumption != null">consumption = #{consumption},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="dealScalePlan != null">deal_scale_plan = #{dealScalePlan},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="deviceId != null">device_id = #{deviceId},</if>
- <if test="devoteShow != null">devote_show = #{devoteShow},</if>
- <if test="giftGlobalBroadcast != null">gift_global_broadcast = #{giftGlobalBroadcast},</if>
- <if test="goodnum != null">goodnum = #{goodnum},</if>
- <if test="groupId != null">group_id = #{groupId},</if>
- <if test="gsRoomId != null">gs_room_id = #{gsRoomId},</if>
- <if test="gsRoomType != null">gs_room_type = #{gsRoomType},</if>
- <if test="guildId != null">guild_id = #{guildId},</if>
- <if test="headNo != null">head_no = #{headNo},</if>
- <if test="height != null">height = #{height},</if>
- <if test="hideDistance != null">hide_distance = #{hideDistance},</if>
- <if test="inviteCode != null">invite_code = #{inviteCode},</if>
- <if test="bindCode != null">bind_code = #{bindCode},</if>
- <if test="ipaddr != null">ipaddr = #{ipaddr},</if>
- <if test="isAnchorAuth != null">is_anchor_auth = #{isAnchorAuth},</if>
- <if test="isAutomatic != null">is_automatic = #{isAutomatic},</if>
- <if test="isJoinJg != null">is_join_jg = #{isJoinJg},</if>
- <if test="isLiveAccount != null">is_live_account = #{isLiveAccount},</if>
- <if test="isNotDisturb != null">is_not_disturb = #{isNotDisturb},</if>
- <if test="isOooAccount != null">is_ooo_account = #{isOooAccount},</if>
- <if test="isPush != null">is_push = #{isPush},</if>
- <if test="isRecommend != null">is_recommend = #{isRecommend},</if>
- <if test="isShowHomePage != null">is_show_home_page = #{isShowHomePage},</if>
- <if test="isSvip != null">is_svip = #{isSvip},</if>
- <if test="isTone != null">is_tone = #{isTone},</if>
- <if test="isYouthModel != null">is_youth_model = #{isYouthModel},</if>
- <if test="ishot != null">ishot = #{ishot},</if>
- <if test="isrecord != null">isrecord = #{isrecord},</if>
- <if test="issuper != null">issuper = #{issuper},</if>
- <if test="iszombie != null">iszombie = #{iszombie},</if>
- <if test="iszombiep != null">iszombiep = #{iszombiep},</if>
- <if test="joinRoomShow != null">join_room_show = #{joinRoomShow},</if>
- <if test="kickTime != null">kick_time = #{kickTime},</if>
- <if test="lastGameNum != null">last_game_num = #{lastGameNum},</if>
- <if test="lastLoginDay != null">last_login_day = #{lastLoginDay},</if>
- <if test="lastLoginIp != null">last_login_ip = #{lastLoginIp},</if>
- <if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if>
- <if test="lastOffLineTime != null">last_off_line_time = #{lastOffLineTime},</if>
- <if test="lat != null">lat = #{lat},</if>
- <if test="level != null">level = #{level},</if>
- <if test="liveFunction != null">live_function = #{liveFunction},</if>
- <if test="liveStatus != null">live_status = #{liveStatus},</if>
- <if test="liveThumb != null">live_thumb = #{liveThumb},</if>
- <if test="liveThumbs != null">live_thumbs = #{liveThumbs},</if>
- <if test="lng != null">lng = #{lng},</if>
- <if test="lockReason != null">lock_reason = #{lockReason},</if>
- <if test="lockTime != null">lock_time = #{lockTime},</if>
- <if test="loginType != null">login_type = #{loginType},</if>
- <if test="managerCoId != null">manager_co_id = #{managerCoId},</if>
- <if test="managerId != null">manager_id = #{managerId},</if>
- <if test="maxSignCount != null">max_sign_count = #{maxSignCount},</if>
- <if test="mobile != null">mobile = #{mobile},</if>
- <if test="nickname != null">nickname = #{nickname},</if>
- <if test="nobleGrade != null">noble_grade = #{nobleGrade},</if>
- <if test="onlineStatus != null">online_status = #{onlineStatus},</if>
- <if test="oooHomePageSortNo != null">ooo_home_page_sort_no = #{oooHomePageSortNo},</if>
- <if test="oooLiveStatus != null">ooo_live_status = #{oooLiveStatus},</if>
- <if test="oooTwoClassifyId != null">ooo_two_classify_id = #{oooTwoClassifyId},</if>
- <if test="openLiveZombieNum != null">open_live_zombie_num = #{openLiveZombieNum},</if>
- <if test="openid != null">openid = #{openid},</if>
- <if test="optUserName != null">opt_user_name = #{optUserName},</if>
- <if test="password != null">password = #{password},</if>
- <if test="phoneFirm != null">phone_firm = #{phoneFirm},</if>
- <if test="phoneModel != null">phone_model = #{phoneModel},</if>
- <if test="phoneSystem != null">phone_system = #{phoneSystem},</if>
- <if test="phoneUuid != null">phone_uuid = #{phoneUuid},</if>
- <if test="pid != null">pid = #{pid},</if>
- <if test="portrait != null">portrait = #{portrait},</if>
- <if test="poster != null">poster = #{poster},</if>
- <if test="province != null">province = #{province},</if>
- <if test="pushPlatform != null">push_platform = #{pushPlatform},</if>
- <if test="pushRegisterId != null">push_register_id = #{pushRegisterId},</if>
- <if test="readShortVideoNumber != null">read_short_video_number = #{readShortVideoNumber},</if>
- <if test="regType != null">reg_type = #{regType},</if>
- <if test="registerIp != null">register_ip = #{registerIp},</if>
- <if test="role != null">role = #{role},</if>
- <if test="roomId != null">room_id = #{roomId},</if>
- <if test="roomTitle != null">room_title = #{roomTitle},</if>
- <if test="roomType != null">room_type = #{roomType},</if>
- <if test="roomTypeVal != null">room_type_val = #{roomTypeVal},</if>
- <if test="salt != null">salt = #{salt},</if>
- <if test="sanwei != null">sanwei = #{sanwei},</if>
- <if test="score != null">score = #{score},</if>
- <if test="sex != null">sex = #{sex},</if>
- <if test="signCount != null">sign_count = #{signCount},</if>
- <if test="signTime != null">sign_time = #{signTime},</if>
- <if test="signature != null">signature = #{signature},</if>
- <if test="smsRegion != null">sms_region = #{smsRegion},</if>
- <if test="source != null">source = #{source},</if>
- <if test="starId != null">star_id = #{starId},</if>
- <if test="status != null">status = #{status},</if>
- <if test="totalAmount != null">total_amount = #{totalAmount},</if>
- <if test="totalAmountCash != null">total_amount_cash = #{totalAmountCash},</if>
- <if test="totalCash != null">total_cash = #{totalCash},</if>
- <if test="totalCharge != null">total_charge = #{totalCharge},</if>
- <if test="unionid != null">unionid = #{unionid},</if>
- <if test="updatePwdTime != null">update_pwd_time = #{updatePwdTime},</if>
- <if test="userActivationKey != null">user_activation_key = #{userActivationKey},</if>
- <if test="userEmail != null">user_email = #{userEmail},</if>
- <if test="userGrade != null">user_grade = #{userGrade},</if>
- <if test="userPoint != null">user_point = #{userPoint},</if>
- <if test="userSetOnlineStatus != null">user_set_online_status = #{userSetOnlineStatus},</if>
- <if test="userType != null">user_type = #{userType},</if>
- <if test="userUrl != null">user_url = #{userUrl},</if>
- <if test="username != null">username = #{username},</if>
- <if test="video != null">video = #{video},</if>
- <if test="videoCoin != null">video_coin = #{videoCoin},</if>
- <if test="videoImg != null">video_img = #{videoImg},</if>
- <if test="vocation != null">vocation = #{vocation},</if>
- <if test="voice != null">voice = #{voice},</if>
- <if test="voiceCoin != null">voice_coin = #{voiceCoin},</if>
- <if test="voiceStatus != null">voice_status = #{voiceStatus},</if>
- <if test="voipToken != null">voip_token = #{voipToken},</if>
- <if test="votes != null">votes = #{votes},</if>
- <if test="votestotal != null">votestotal = #{votestotal},</if>
- <if test="wealthGrade != null">wealth_grade = #{wealthGrade},</if>
- <if test="wechat != null">wechat = #{wechat},</if>
- <if test="weight != null">weight = #{weight},</if>
- <if test="whetherEnablePositioningShow != null">whether_enable_positioning_show = #{whetherEnablePositioningShow},</if>
- <if test="youthPassword != null">youth_password = #{youthPassword},</if>
- <if test="zombieMaxNum != null">zombie_max_num = #{zombieMaxNum},</if>
- <if test="zombieRatio != null">zombie_ratio = #{zombieRatio},</if>
- <if test="agentGrade != null">agent_grade = #{agentGrade},</if>
- <if test="liveDividedInto != null">live_divided_into = #{liveDividedInto},</if>
- <if test="gameDividedInto != null">game_divided_into = #{gameDividedInto},</if>
- <if test="inviteBindTime != null">invite_bind_time = #{inviteBindTime},</if>
- <if test="fundPassword != null">fund_password = #{fundPassword},</if>
- <if test="diamondCoin != null">diamond_coin = #{diamondCoin},</if>
- <if test="diamondCoinCash != null">diamond_coin_cash = #{diamondCoinCash},</if>
- <if test="diamondCoinTotal != null">diamond_coin_total = #{diamondCoinTotal},</if>
- <if test="diamondCoinCashTotal != null">diamond_coin_cash_total = #{diamondCoinCashTotal},</if>
- <if test="agentFlag != null and agentFlag != ''">agent_flag = #{agentFlag},</if>
- <if test="withdrawAble != null">withdraw_able = #{withdrawAble},</if>
- <if test="withdraw != null">withdraw = #{withdraw},</if>
- </trim>
- where userid = #{userid}
- </update>
- <delete id="deleteAppUserByUserid" parameterType="Long">
- delete from app_user where userid = #{userid}
- </delete>
- <delete id="deleteAppUserByUserids" parameterType="String">
- delete from app_user where userid in
- <foreach item="userid" collection="array" open="(" separator="," close=")">
- #{userid}
- </foreach>
- </delete>
- <select id="nextId" resultType="java.lang.Long">
- select max(userid) + 1 from app_user
- </select>
- <update id="updateUserMoney" parameterType="com.game.business.domain.AppUser">
- update app_user
- <trim prefix="SET" suffixOverrides=",">
- <if test="coin != null">
- coin = coin + #{coin},
- </if>
- <if test="coinCash != null">coin_cash = coin_cash + #{coinCash},</if>
- <if test="diamondCoin != null">diamond_coin = diamond_coin + #{diamondCoin},</if>
- <if test="diamondCoinCash != null">diamond_coin_cash = diamond_coin_cash + #{diamondCoinCash},</if>
- <if test="diamondCoinTotal != null">diamond_coin_total = diamond_coin_total + #{diamondCoinTotal},</if>
- <if test="withdraw != null">withdraw = withdraw + #{withdraw},</if>
- <if test="withdrawAble != null">withdraw_able = withdraw_able + #{withdrawAble},</if>
- </trim>
- where userid = #{userid}
- </update>
- <select id="getUserCount" resultType="java.util.Map">
- select
- ifnull(sum(diamond_coin), 0.00) as diamondCoin,
- ifnull(sum(diamond_coin_cash), 0.00) as diamondCoinCash,
- ifnull(sum(coin), 0.00) as coin,
- ifnull(sum(coin_cash), 0.00) as coinCash
- from app_user
- <where>
- <if test="userId != null">
- and userid = #{userId}
- </if>
- </where>
- </select>
- <select id="selectOffLineUser" resultType="com.game.business.vo.OffLineUserVo">
- select a.userid as userId,b.islive as isLive,b.id as roomId,a.last_off_line_time as offTime from app_user as a inner join live_live as b on a.userid = b.user_id
- where b.islive = 1 and a.online_status = 0
- </select>
- </mapper>
|