AppUserMapper.xml 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.game.business.mapper.AppUserMapper">
  6. <resultMap type="com.game.business.domain.AppUser" id="AppUserResult">
  7. <result property="userid" column="userid" />
  8. <result property="address" column="address" />
  9. <result property="agentId" column="agent_id" />
  10. <result property="amount" column="amount" />
  11. <result property="anchorGrade" column="anchor_grade" />
  12. <result property="anchorPoint" column="anchor_point" />
  13. <result property="appVersion" column="app_version" />
  14. <result property="appVersionCode" column="app_version_code" />
  15. <result property="avatar" column="avatar" />
  16. <result property="awardLoginDay" column="award_login_day" />
  17. <result property="birthday" column="birthday" />
  18. <result property="broadCast" column="broad_cast" />
  19. <result property="channelId" column="channel_id" />
  20. <result property="chargeShow" column="charge_show" />
  21. <result property="charmGrade" column="charm_grade" />
  22. <result property="charmPoint" column="charm_point" />
  23. <result property="city" column="city" />
  24. <result property="cityEdit" column="city_edit" />
  25. <result property="coin" column="coin" />
  26. <result property="coinCash" column="coin_cash" />
  27. <result property="constellation" column="constellation" />
  28. <result property="consumption" column="consumption" />
  29. <result property="createTime" column="create_time" />
  30. <result property="dealScalePlan" column="deal_scale_plan" />
  31. <result property="delFlag" column="del_flag" />
  32. <result property="deviceId" column="device_id" />
  33. <result property="devoteShow" column="devote_show" />
  34. <result property="giftGlobalBroadcast" column="gift_global_broadcast" />
  35. <result property="goodnum" column="goodnum" />
  36. <result property="groupId" column="group_id" />
  37. <result property="gsRoomId" column="gs_room_id" />
  38. <result property="gsRoomType" column="gs_room_type" />
  39. <result property="guildId" column="guild_id" />
  40. <result property="headNo" column="head_no" />
  41. <result property="height" column="height" />
  42. <result property="hideDistance" column="hide_distance" />
  43. <result property="inviteCode" column="invite_code" />
  44. <result property="bindCode" column="bind_code" />
  45. <result property="ipaddr" column="ipaddr" />
  46. <result property="isAnchorAuth" column="is_anchor_auth" />
  47. <result property="isAutomatic" column="is_automatic" />
  48. <result property="isJoinJg" column="is_join_jg" />
  49. <result property="isLiveAccount" column="is_live_account" />
  50. <result property="isNotDisturb" column="is_not_disturb" />
  51. <result property="isOooAccount" column="is_ooo_account" />
  52. <result property="isPush" column="is_push" />
  53. <result property="isRecommend" column="is_recommend" />
  54. <result property="isShowHomePage" column="is_show_home_page" />
  55. <result property="isSvip" column="is_svip" />
  56. <result property="isTone" column="is_tone" />
  57. <result property="isYouthModel" column="is_youth_model" />
  58. <result property="ishot" column="ishot" />
  59. <result property="isrecord" column="isrecord" />
  60. <result property="issuper" column="issuper" />
  61. <result property="iszombie" column="iszombie" />
  62. <result property="iszombiep" column="iszombiep" />
  63. <result property="joinRoomShow" column="join_room_show" />
  64. <result property="kickTime" column="kick_time" />
  65. <result property="lastGameNum" column="last_game_num" />
  66. <result property="lastLoginDay" column="last_login_day" />
  67. <result property="lastLoginIp" column="last_login_ip" />
  68. <result property="lastLoginTime" column="last_login_time" />
  69. <result property="lastOffLineTime" column="last_off_line_time" />
  70. <result property="lat" column="lat" />
  71. <result property="level" column="level" />
  72. <result property="liveFunction" column="live_function" />
  73. <result property="liveStatus" column="live_status" />
  74. <result property="liveThumb" column="live_thumb" />
  75. <result property="liveThumbs" column="live_thumbs" />
  76. <result property="lng" column="lng" />
  77. <result property="lockReason" column="lock_reason" />
  78. <result property="lockTime" column="lock_time" />
  79. <result property="loginType" column="login_type" />
  80. <result property="managerCoId" column="manager_co_id" />
  81. <result property="managerId" column="manager_id" />
  82. <result property="maxSignCount" column="max_sign_count" />
  83. <result property="mobile" column="mobile" />
  84. <result property="nickname" column="nickname" />
  85. <result property="nobleGrade" column="noble_grade" />
  86. <result property="onlineStatus" column="online_status" />
  87. <result property="oooHomePageSortNo" column="ooo_home_page_sort_no" />
  88. <result property="oooLiveStatus" column="ooo_live_status" />
  89. <result property="oooTwoClassifyId" column="ooo_two_classify_id" />
  90. <result property="openLiveZombieNum" column="open_live_zombie_num" />
  91. <result property="openid" column="openid" />
  92. <result property="optUserName" column="opt_user_name" />
  93. <result property="password" column="password" />
  94. <result property="phoneFirm" column="phone_firm" />
  95. <result property="phoneModel" column="phone_model" />
  96. <result property="phoneSystem" column="phone_system" />
  97. <result property="phoneUuid" column="phone_uuid" />
  98. <result property="pid" column="pid" />
  99. <result property="portrait" column="portrait" />
  100. <result property="poster" column="poster" />
  101. <result property="province" column="province" />
  102. <result property="pushPlatform" column="push_platform" />
  103. <result property="pushRegisterId" column="push_register_id" />
  104. <result property="readShortVideoNumber" column="read_short_video_number" />
  105. <result property="regType" column="reg_type" />
  106. <result property="registerIp" column="register_ip" />
  107. <result property="role" column="role" />
  108. <result property="roomId" column="room_id" />
  109. <result property="roomTitle" column="room_title" />
  110. <result property="roomType" column="room_type" />
  111. <result property="roomTypeVal" column="room_type_val" />
  112. <result property="salt" column="salt" />
  113. <result property="sanwei" column="sanwei" />
  114. <result property="score" column="score" />
  115. <result property="sex" column="sex" />
  116. <result property="signCount" column="sign_count" />
  117. <result property="signTime" column="sign_time" />
  118. <result property="signature" column="signature" />
  119. <result property="smsRegion" column="sms_region" />
  120. <result property="source" column="source" />
  121. <result property="starId" column="star_id" />
  122. <result property="status" column="status" />
  123. <result property="totalAmount" column="total_amount" />
  124. <result property="totalAmountCash" column="total_amount_cash" />
  125. <result property="totalCash" column="total_cash" />
  126. <result property="totalCharge" column="total_charge" />
  127. <result property="unionid" column="unionid" />
  128. <result property="updatePwdTime" column="update_pwd_time" />
  129. <result property="userActivationKey" column="user_activation_key" />
  130. <result property="userEmail" column="user_email" />
  131. <result property="userGrade" column="user_grade" />
  132. <result property="userPoint" column="user_point" />
  133. <result property="userSetOnlineStatus" column="user_set_online_status" />
  134. <result property="userType" column="user_type" />
  135. <result property="userUrl" column="user_url" />
  136. <result property="username" column="username" />
  137. <result property="video" column="video" />
  138. <result property="videoCoin" column="video_coin" />
  139. <result property="videoImg" column="video_img" />
  140. <result property="vocation" column="vocation" />
  141. <result property="voice" column="voice" />
  142. <result property="voiceCoin" column="voice_coin" />
  143. <result property="voiceStatus" column="voice_status" />
  144. <result property="voipToken" column="voip_token" />
  145. <result property="votes" column="votes" />
  146. <result property="votestotal" column="votestotal" />
  147. <result property="wealthGrade" column="wealth_grade" />
  148. <result property="wechat" column="wechat" />
  149. <result property="weight" column="weight" />
  150. <result property="whetherEnablePositioningShow" column="whether_enable_positioning_show" />
  151. <result property="youthPassword" column="youth_password" />
  152. <result property="zombieMaxNum" column="zombie_max_num" />
  153. <result property="zombieRatio" column="zombie_ratio" />
  154. <result property="agentGrade" column="agent_grade" />
  155. <result property="liveDividedInto" column="live_divided_into" />
  156. <result property="gameDividedInto" column="game_divided_into" />
  157. <result property="inviteBindTime" column="invite_bind_time" />
  158. <result property="fundPassword" column="fund_password" />
  159. <result property="diamondCoin" column="diamond_coin" />
  160. <result property="diamondCoinCash" column="diamond_coin_cash" />
  161. <result property="diamondCoinTotal" column="diamond_coin_total" />
  162. <result property="diamondCoinCashTotal" column="diamond_coin_cash_total" />
  163. <result property="agentFlag" column="agent_flag" />
  164. <result property="withdrawAble" column="withdraw_able" />
  165. <result property="withdraw" column="withdraw" />
  166. </resultMap>
  167. <sql id="selectAppUserVo">
  168. 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
  169. </sql>
  170. <select id="selectAppUserList" parameterType="com.game.business.domain.AppUser" resultMap="AppUserResult">
  171. <include refid="selectAppUserVo"/>
  172. <where>
  173. <if test="userid != null"> and userid = #{userid}</if>
  174. <if test="address != null and address != ''"> and address = #{address}</if>
  175. <if test="agentId != null "> and agent_id = #{agentId}</if>
  176. <if test="amount != null "> and amount = #{amount}</if>
  177. <if test="anchorGrade != null "> and anchor_grade = #{anchorGrade}</if>
  178. <if test="anchorPoint != null "> and anchor_point = #{anchorPoint}</if>
  179. <if test="appVersion != null and appVersion != ''"> and app_version = #{appVersion}</if>
  180. <if test="appVersionCode != null and appVersionCode != ''"> and app_version_code = #{appVersionCode}</if>
  181. <if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
  182. <if test="awardLoginDay != null "> and award_login_day = #{awardLoginDay}</if>
  183. <if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if>
  184. <if test="broadCast != null "> and broad_cast = #{broadCast}</if>
  185. <if test="channelId != null "> and channel_id = #{channelId}</if>
  186. <if test="chargeShow != null "> and charge_show = #{chargeShow}</if>
  187. <if test="charmGrade != null "> and charm_grade = #{charmGrade}</if>
  188. <if test="charmPoint != null "> and charm_point = #{charmPoint}</if>
  189. <if test="city != null and city != ''"> and city = #{city}</if>
  190. <if test="cityEdit != null "> and city_edit = #{cityEdit}</if>
  191. <if test="coin != null "> and coin = #{coin}</if>
  192. <if test="coinCash != null "> and coin_cash = #{coinCash}</if>
  193. <if test="constellation != null and constellation != ''"> and constellation = #{constellation}</if>
  194. <if test="consumption != null "> and consumption = #{consumption}</if>
  195. <if test="dealScalePlan != null "> and deal_scale_plan = #{dealScalePlan}</if>
  196. <if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
  197. <if test="devoteShow != null "> and devote_show = #{devoteShow}</if>
  198. <if test="giftGlobalBroadcast != null "> and gift_global_broadcast = #{giftGlobalBroadcast}</if>
  199. <if test="goodnum != null and goodnum != ''"> and goodnum = #{goodnum}</if>
  200. <if test="groupId != null "> and group_id = #{groupId}</if>
  201. <if test="gsRoomId != null "> and gs_room_id = #{gsRoomId}</if>
  202. <if test="gsRoomType != null "> and gs_room_type = #{gsRoomType}</if>
  203. <if test="guildId != null "> and guild_id = #{guildId}</if>
  204. <if test="headNo != null "> and head_no = #{headNo}</if>
  205. <if test="height != null "> and height = #{height}</if>
  206. <if test="hideDistance != null "> and hide_distance = #{hideDistance}</if>
  207. <if test="inviteCode != null and inviteCode != ''"> and invite_code = #{inviteCode}</if>
  208. <if test="bindCode != null and bindCode != ''"> and bind_code = #{bindCode}</if>
  209. <if test="ipaddr != null and ipaddr != ''"> and ipaddr = #{ipaddr}</if>
  210. <if test="isAnchorAuth != null "> and is_anchor_auth = #{isAnchorAuth}</if>
  211. <if test="isAutomatic != null "> and is_automatic = #{isAutomatic}</if>
  212. <if test="isJoinJg != null "> and is_join_jg = #{isJoinJg}</if>
  213. <if test="isLiveAccount != null "> and is_live_account = #{isLiveAccount}</if>
  214. <if test="isNotDisturb != null "> and is_not_disturb = #{isNotDisturb}</if>
  215. <if test="isOooAccount != null "> and is_ooo_account = #{isOooAccount}</if>
  216. <if test="isPush != null "> and is_push = #{isPush}</if>
  217. <if test="isRecommend != null "> and is_recommend = #{isRecommend}</if>
  218. <if test="isShowHomePage != null "> and is_show_home_page = #{isShowHomePage}</if>
  219. <if test="isSvip != null "> and is_svip = #{isSvip}</if>
  220. <if test="isTone != null "> and is_tone = #{isTone}</if>
  221. <if test="isYouthModel != null "> and is_youth_model = #{isYouthModel}</if>
  222. <if test="ishot != null "> and ishot = #{ishot}</if>
  223. <if test="isrecord != null "> and isrecord = #{isrecord}</if>
  224. <if test="issuper != null "> and issuper = #{issuper}</if>
  225. <if test="iszombie != null "> and iszombie = #{iszombie}</if>
  226. <if test="iszombiep != null "> and iszombiep = #{iszombiep}</if>
  227. <if test="joinRoomShow != null "> and join_room_show = #{joinRoomShow}</if>
  228. <if test="kickTime != null "> and kick_time = #{kickTime}</if>
  229. <if test="lastGameNum != null "> and last_game_num = #{lastGameNum}</if>
  230. <if test="lastLoginDay != null "> and last_login_day = #{lastLoginDay}</if>
  231. <if test="lastLoginIp != null and lastLoginIp != ''"> and last_login_ip = #{lastLoginIp}</if>
  232. <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
  233. <if test="lastOffLineTime != null "> and last_off_line_time = #{lastOffLineTime}</if>
  234. <if test="lat != null "> and lat = #{lat}</if>
  235. <if test="level != null "> and level = #{level}</if>
  236. <if test="liveFunction != null "> and live_function = #{liveFunction}</if>
  237. <if test="liveStatus != null "> and live_status = #{liveStatus}</if>
  238. <if test="liveThumb != null and liveThumb != ''"> and live_thumb = #{liveThumb}</if>
  239. <if test="liveThumbs != null and liveThumbs != ''"> and live_thumbs = #{liveThumbs}</if>
  240. <if test="lng != null "> and lng = #{lng}</if>
  241. <if test="lockReason != null and lockReason != ''"> and lock_reason = #{lockReason}</if>
  242. <if test="lockTime != null "> and lock_time = #{lockTime}</if>
  243. <if test="loginType != null and loginType != ''"> and login_type = #{loginType}</if>
  244. <if test="managerCoId != null "> and manager_co_id = #{managerCoId}</if>
  245. <if test="managerId != null "> and manager_id = #{managerId}</if>
  246. <if test="maxSignCount != null "> and max_sign_count = #{maxSignCount}</if>
  247. <if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
  248. <if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
  249. <if test="nobleGrade != null "> and noble_grade = #{nobleGrade}</if>
  250. <if test="onlineStatus != null "> and online_status = #{onlineStatus}</if>
  251. <if test="oooHomePageSortNo != null "> and ooo_home_page_sort_no = #{oooHomePageSortNo}</if>
  252. <if test="oooLiveStatus != null "> and ooo_live_status = #{oooLiveStatus}</if>
  253. <if test="oooTwoClassifyId != null "> and ooo_two_classify_id = #{oooTwoClassifyId}</if>
  254. <if test="openLiveZombieNum != null "> and open_live_zombie_num = #{openLiveZombieNum}</if>
  255. <if test="openid != null and openid != ''"> and openid = #{openid}</if>
  256. <if test="optUserName != null and optUserName != ''"> and opt_user_name like concat('%', #{optUserName}, '%')</if>
  257. <if test="password != null and password != ''"> and password = #{password}</if>
  258. <if test="phoneFirm != null and phoneFirm != ''"> and phone_firm = #{phoneFirm}</if>
  259. <if test="phoneModel != null and phoneModel != ''"> and phone_model = #{phoneModel}</if>
  260. <if test="phoneSystem != null and phoneSystem != ''"> and phone_system = #{phoneSystem}</if>
  261. <if test="phoneUuid != null and phoneUuid != ''"> and phone_uuid = #{phoneUuid}</if>
  262. <if test="pid != null "> and pid = #{pid}</if>
  263. <if test="portrait != null and portrait != ''"> and portrait = #{portrait}</if>
  264. <if test="poster != null and poster != ''"> and poster = #{poster}</if>
  265. <if test="province != null and province != ''"> and province = #{province}</if>
  266. <if test="pushPlatform != null "> and push_platform = #{pushPlatform}</if>
  267. <if test="pushRegisterId != null and pushRegisterId != ''"> and push_register_id = #{pushRegisterId}</if>
  268. <if test="readShortVideoNumber != null "> and read_short_video_number = #{readShortVideoNumber}</if>
  269. <if test="regType != null "> and reg_type = #{regType}</if>
  270. <if test="registerIp != null and registerIp != ''"> and register_ip = #{registerIp}</if>
  271. <if test="role != null "> and role = #{role}</if>
  272. <if test="roomId != null "> and room_id = #{roomId}</if>
  273. <if test="roomTitle != null and roomTitle != ''"> and room_title = #{roomTitle}</if>
  274. <if test="roomType != null "> and room_type = #{roomType}</if>
  275. <if test="roomTypeVal != null and roomTypeVal != ''"> and room_type_val = #{roomTypeVal}</if>
  276. <if test="salt != null and salt != ''"> and salt = #{salt}</if>
  277. <if test="sanwei != null and sanwei != ''"> and sanwei = #{sanwei}</if>
  278. <if test="score != null "> and score = #{score}</if>
  279. <if test="sex != null "> and sex = #{sex}</if>
  280. <if test="signCount != null "> and sign_count = #{signCount}</if>
  281. <if test="signTime != null "> and sign_time = #{signTime}</if>
  282. <if test="signature != null and signature != ''"> and signature = #{signature}</if>
  283. <if test="smsRegion != null and smsRegion != ''"> and sms_region = #{smsRegion}</if>
  284. <if test="source != null and source != ''"> and source = #{source}</if>
  285. <if test="starId != null "> and star_id = #{starId}</if>
  286. <if test="status != null "> and status = #{status}</if>
  287. <if test="totalAmount != null "> and total_amount = #{totalAmount}</if>
  288. <if test="totalAmountCash != null "> and total_amount_cash = #{totalAmountCash}</if>
  289. <if test="totalCash != null "> and total_cash = #{totalCash}</if>
  290. <if test="totalCharge != null "> and total_charge = #{totalCharge}</if>
  291. <if test="unionid != null and unionid != ''"> and unionid = #{unionid}</if>
  292. <if test="updatePwdTime != null "> and update_pwd_time = #{updatePwdTime}</if>
  293. <if test="userActivationKey != null and userActivationKey != ''"> and user_activation_key = #{userActivationKey}</if>
  294. <if test="userEmail != null and userEmail != ''"> and user_email = #{userEmail}</if>
  295. <if test="userGrade != null "> and user_grade = #{userGrade}</if>
  296. <if test="userPoint != null "> and user_point = #{userPoint}</if>
  297. <if test="userSetOnlineStatus != null "> and user_set_online_status = #{userSetOnlineStatus}</if>
  298. <if test="userType != null "> and user_type = #{userType}</if>
  299. <if test="userUrl != null and userUrl != ''"> and user_url = #{userUrl}</if>
  300. <if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
  301. <if test="video != null and video != ''"> and video = #{video}</if>
  302. <if test="videoCoin != null "> and video_coin = #{videoCoin}</if>
  303. <if test="videoImg != null and videoImg != ''"> and video_img = #{videoImg}</if>
  304. <if test="vocation != null and vocation != ''"> and vocation = #{vocation}</if>
  305. <if test="voice != null and voice != ''"> and voice = #{voice}</if>
  306. <if test="voiceCoin != null "> and voice_coin = #{voiceCoin}</if>
  307. <if test="voiceStatus != null "> and voice_status = #{voiceStatus}</if>
  308. <if test="voipToken != null and voipToken != ''"> and voip_token = #{voipToken}</if>
  309. <if test="votes != null "> and votes = #{votes}</if>
  310. <if test="votestotal != null "> and votestotal = #{votestotal}</if>
  311. <if test="wealthGrade != null "> and wealth_grade = #{wealthGrade}</if>
  312. <if test="wechat != null and wechat != ''"> and wechat = #{wechat}</if>
  313. <if test="weight != null "> and weight = #{weight}</if>
  314. <if test="whetherEnablePositioningShow != null "> and whether_enable_positioning_show = #{whetherEnablePositioningShow}</if>
  315. <if test="youthPassword != null and youthPassword != ''"> and youth_password = #{youthPassword}</if>
  316. <if test="zombieMaxNum != null "> and zombie_max_num = #{zombieMaxNum}</if>
  317. <if test="zombieRatio != null "> and zombie_ratio = #{zombieRatio}</if>
  318. <if test="agentGrade != null "> and agent_grade = #{agentGrade}</if>
  319. <if test="liveDividedInto != null "> and live_divided_into = #{liveDividedInto}</if>
  320. <if test="gameDividedInto != null "> and game_divided_into = #{gameDividedInto}</if>
  321. <if test="inviteBindTime != null "> and invite_bind_time = #{inviteBindTime}</if>
  322. <if test="fundPassword != null and fundPassword != ''"> and fund_password = #{fundPassword}</if>
  323. <if test="diamondCoin != null "> and diamond_coin = #{diamondCoin}</if>
  324. <if test="diamondCoinCash != null "> and diamond_coin_cash = #{diamondCoinCash}</if>
  325. <if test="diamondCoinTotal != null "> and diamond_coin_total = #{diamondCoinTotal}</if>
  326. <if test="diamondCoinCashTotal != null "> and diamond_coin_cash_total = #{diamondCoinCashTotal}</if>
  327. <if test="agentFlag != null and agentFlag != ''"> and agent_flag = #{agentFlag}</if>
  328. <if test="withdrawAble != null"> and withdraw_able = #{withdrawAble}</if>
  329. <if test="withdraw != null"> and withdraw = #{withdraw}</if>
  330. </where>
  331. </select>
  332. <select id="selectAppUserByUserid" parameterType="Long" resultMap="AppUserResult">
  333. <include refid="selectAppUserVo"/>
  334. where userid = #{userid}
  335. </select>
  336. <insert id="insertAppUser" parameterType="com.game.business.domain.AppUser" keyProperty="userid" useGeneratedKeys="true">
  337. insert into app_user
  338. <trim prefix="(" suffix=")" suffixOverrides=",">
  339. <if test="userid != null">userid,</if>
  340. <if test="address != null">address,</if>
  341. <if test="agentId != null">agent_id,</if>
  342. <if test="amount != null">amount,</if>
  343. <if test="anchorGrade != null">anchor_grade,</if>
  344. <if test="anchorPoint != null">anchor_point,</if>
  345. <if test="appVersion != null">app_version,</if>
  346. <if test="appVersionCode != null">app_version_code,</if>
  347. <if test="avatar != null">avatar,</if>
  348. <if test="awardLoginDay != null">award_login_day,</if>
  349. <if test="birthday != null">birthday,</if>
  350. <if test="broadCast != null">broad_cast,</if>
  351. <if test="channelId != null">channel_id,</if>
  352. <if test="chargeShow != null">charge_show,</if>
  353. <if test="charmGrade != null">charm_grade,</if>
  354. <if test="charmPoint != null">charm_point,</if>
  355. <if test="city != null">city,</if>
  356. <if test="cityEdit != null">city_edit,</if>
  357. <if test="coin != null">coin,</if>
  358. <if test="coinCash != null">coin_cash,</if>
  359. <if test="constellation != null">constellation,</if>
  360. <if test="consumption != null">consumption,</if>
  361. <if test="createTime != null">create_time,</if>
  362. <if test="dealScalePlan != null">deal_scale_plan,</if>
  363. <if test="delFlag != null">del_flag,</if>
  364. <if test="deviceId != null">device_id,</if>
  365. <if test="devoteShow != null">devote_show,</if>
  366. <if test="giftGlobalBroadcast != null">gift_global_broadcast,</if>
  367. <if test="goodnum != null">goodnum,</if>
  368. <if test="groupId != null">group_id,</if>
  369. <if test="gsRoomId != null">gs_room_id,</if>
  370. <if test="gsRoomType != null">gs_room_type,</if>
  371. <if test="guildId != null">guild_id,</if>
  372. <if test="headNo != null">head_no,</if>
  373. <if test="height != null">height,</if>
  374. <if test="hideDistance != null">hide_distance,</if>
  375. <if test="inviteCode != null">invite_code,</if>
  376. <if test="bindCode != null">bind_code,</if>
  377. <if test="ipaddr != null">ipaddr,</if>
  378. <if test="isAnchorAuth != null">is_anchor_auth,</if>
  379. <if test="isAutomatic != null">is_automatic,</if>
  380. <if test="isJoinJg != null">is_join_jg,</if>
  381. <if test="isLiveAccount != null">is_live_account,</if>
  382. <if test="isNotDisturb != null">is_not_disturb,</if>
  383. <if test="isOooAccount != null">is_ooo_account,</if>
  384. <if test="isPush != null">is_push,</if>
  385. <if test="isRecommend != null">is_recommend,</if>
  386. <if test="isShowHomePage != null">is_show_home_page,</if>
  387. <if test="isSvip != null">is_svip,</if>
  388. <if test="isTone != null">is_tone,</if>
  389. <if test="isYouthModel != null">is_youth_model,</if>
  390. <if test="ishot != null">ishot,</if>
  391. <if test="isrecord != null">isrecord,</if>
  392. <if test="issuper != null">issuper,</if>
  393. <if test="iszombie != null">iszombie,</if>
  394. <if test="iszombiep != null">iszombiep,</if>
  395. <if test="joinRoomShow != null">join_room_show,</if>
  396. <if test="kickTime != null">kick_time,</if>
  397. <if test="lastGameNum != null">last_game_num,</if>
  398. <if test="lastLoginDay != null">last_login_day,</if>
  399. <if test="lastLoginIp != null">last_login_ip,</if>
  400. <if test="lastLoginTime != null">last_login_time,</if>
  401. <if test="lastOffLineTime != null">last_off_line_time,</if>
  402. <if test="lat != null">lat,</if>
  403. <if test="level != null">level,</if>
  404. <if test="liveFunction != null">live_function,</if>
  405. <if test="liveStatus != null">live_status,</if>
  406. <if test="liveThumb != null">live_thumb,</if>
  407. <if test="liveThumbs != null">live_thumbs,</if>
  408. <if test="lng != null">lng,</if>
  409. <if test="lockReason != null">lock_reason,</if>
  410. <if test="lockTime != null">lock_time,</if>
  411. <if test="loginType != null">login_type,</if>
  412. <if test="managerCoId != null">manager_co_id,</if>
  413. <if test="managerId != null">manager_id,</if>
  414. <if test="maxSignCount != null">max_sign_count,</if>
  415. <if test="mobile != null">mobile,</if>
  416. <if test="nickname != null">nickname,</if>
  417. <if test="nobleGrade != null">noble_grade,</if>
  418. <if test="onlineStatus != null">online_status,</if>
  419. <if test="oooHomePageSortNo != null">ooo_home_page_sort_no,</if>
  420. <if test="oooLiveStatus != null">ooo_live_status,</if>
  421. <if test="oooTwoClassifyId != null">ooo_two_classify_id,</if>
  422. <if test="openLiveZombieNum != null">open_live_zombie_num,</if>
  423. <if test="openid != null">openid,</if>
  424. <if test="optUserName != null">opt_user_name,</if>
  425. <if test="password != null">password,</if>
  426. <if test="phoneFirm != null">phone_firm,</if>
  427. <if test="phoneModel != null">phone_model,</if>
  428. <if test="phoneSystem != null">phone_system,</if>
  429. <if test="phoneUuid != null">phone_uuid,</if>
  430. <if test="pid != null">pid,</if>
  431. <if test="portrait != null">portrait,</if>
  432. <if test="poster != null">poster,</if>
  433. <if test="province != null">province,</if>
  434. <if test="pushPlatform != null">push_platform,</if>
  435. <if test="pushRegisterId != null">push_register_id,</if>
  436. <if test="readShortVideoNumber != null">read_short_video_number,</if>
  437. <if test="regType != null">reg_type,</if>
  438. <if test="registerIp != null">register_ip,</if>
  439. <if test="role != null">role,</if>
  440. <if test="roomId != null">room_id,</if>
  441. <if test="roomTitle != null">room_title,</if>
  442. <if test="roomType != null">room_type,</if>
  443. <if test="roomTypeVal != null">room_type_val,</if>
  444. <if test="salt != null">salt,</if>
  445. <if test="sanwei != null">sanwei,</if>
  446. <if test="score != null">score,</if>
  447. <if test="sex != null">sex,</if>
  448. <if test="signCount != null">sign_count,</if>
  449. <if test="signTime != null">sign_time,</if>
  450. <if test="signature != null">signature,</if>
  451. <if test="smsRegion != null">sms_region,</if>
  452. <if test="source != null">source,</if>
  453. <if test="starId != null">star_id,</if>
  454. <if test="status != null">status,</if>
  455. <if test="totalAmount != null">total_amount,</if>
  456. <if test="totalAmountCash != null">total_amount_cash,</if>
  457. <if test="totalCash != null">total_cash,</if>
  458. <if test="totalCharge != null">total_charge,</if>
  459. <if test="unionid != null">unionid,</if>
  460. <if test="updatePwdTime != null">update_pwd_time,</if>
  461. <if test="userActivationKey != null">user_activation_key,</if>
  462. <if test="userEmail != null">user_email,</if>
  463. <if test="userGrade != null">user_grade,</if>
  464. <if test="userPoint != null">user_point,</if>
  465. <if test="userSetOnlineStatus != null">user_set_online_status,</if>
  466. <if test="userType != null">user_type,</if>
  467. <if test="userUrl != null">user_url,</if>
  468. <if test="username != null">username,</if>
  469. <if test="video != null">video,</if>
  470. <if test="videoCoin != null">video_coin,</if>
  471. <if test="videoImg != null">video_img,</if>
  472. <if test="vocation != null">vocation,</if>
  473. <if test="voice != null">voice,</if>
  474. <if test="voiceCoin != null">voice_coin,</if>
  475. <if test="voiceStatus != null">voice_status,</if>
  476. <if test="voipToken != null">voip_token,</if>
  477. <if test="votes != null">votes,</if>
  478. <if test="votestotal != null">votestotal,</if>
  479. <if test="wealthGrade != null">wealth_grade,</if>
  480. <if test="wechat != null">wechat,</if>
  481. <if test="weight != null">weight,</if>
  482. <if test="whetherEnablePositioningShow != null">whether_enable_positioning_show,</if>
  483. <if test="youthPassword != null">youth_password,</if>
  484. <if test="zombieMaxNum != null">zombie_max_num,</if>
  485. <if test="zombieRatio != null">zombie_ratio,</if>
  486. <if test="agentGrade != null">agent_grade,</if>
  487. <if test="liveDividedInto != null">live_divided_into,</if>
  488. <if test="gameDividedInto != null">game_divided_into,</if>
  489. <if test="inviteBindTime != null">invite_bind_time,</if>
  490. <if test="fundPassword != null">fund_password,</if>
  491. <if test="diamondCoin != null">diamond_coin,</if>
  492. <if test="diamondCoinCash != null">diamond_coin_cash,</if>
  493. <if test="diamondCoinTotal != null">diamond_coin_total,</if>
  494. <if test="diamondCoinCashTotal != null">diamond_coin_cash_total,</if>
  495. <if test="agentFlag != null and agentFlag != ''">agent_flag,</if>
  496. <if test="withdrawAble != null">withdraw_able,</if>
  497. <if test="withdraw != null">withdraw,</if>
  498. </trim>
  499. <trim prefix="values (" suffix=")" suffixOverrides=",">
  500. <if test="userid != null">#{userid},</if>
  501. <if test="address != null">#{address},</if>
  502. <if test="agentId != null">#{agentId},</if>
  503. <if test="amount != null">#{amount},</if>
  504. <if test="anchorGrade != null">#{anchorGrade},</if>
  505. <if test="anchorPoint != null">#{anchorPoint},</if>
  506. <if test="appVersion != null">#{appVersion},</if>
  507. <if test="appVersionCode != null">#{appVersionCode},</if>
  508. <if test="avatar != null">#{avatar},</if>
  509. <if test="awardLoginDay != null">#{awardLoginDay},</if>
  510. <if test="birthday != null">#{birthday},</if>
  511. <if test="broadCast != null">#{broadCast},</if>
  512. <if test="channelId != null">#{channelId},</if>
  513. <if test="chargeShow != null">#{chargeShow},</if>
  514. <if test="charmGrade != null">#{charmGrade},</if>
  515. <if test="charmPoint != null">#{charmPoint},</if>
  516. <if test="city != null">#{city},</if>
  517. <if test="cityEdit != null">#{cityEdit},</if>
  518. <if test="coin != null">#{coin},</if>
  519. <if test="coinCash != null">#{coin_cash},</if>
  520. <if test="constellation != null">#{constellation},</if>
  521. <if test="consumption != null">#{consumption},</if>
  522. <if test="createTime != null">#{createTime},</if>
  523. <if test="dealScalePlan != null">#{dealScalePlan},</if>
  524. <if test="delFlag != null">#{delFlag},</if>
  525. <if test="deviceId != null">#{deviceId},</if>
  526. <if test="devoteShow != null">#{devoteShow},</if>
  527. <if test="giftGlobalBroadcast != null">#{giftGlobalBroadcast},</if>
  528. <if test="goodnum != null">#{goodnum},</if>
  529. <if test="groupId != null">#{groupId},</if>
  530. <if test="gsRoomId != null">#{gsRoomId},</if>
  531. <if test="gsRoomType != null">#{gsRoomType},</if>
  532. <if test="guildId != null">#{guildId},</if>
  533. <if test="headNo != null">#{headNo},</if>
  534. <if test="height != null">#{height},</if>
  535. <if test="hideDistance != null">#{hideDistance},</if>
  536. <if test="inviteCode != null">#{inviteCode},</if>
  537. <if test="bindCode != null">#{bindCode},</if>
  538. <if test="ipaddr != null">#{ipaddr},</if>
  539. <if test="isAnchorAuth != null">#{isAnchorAuth},</if>
  540. <if test="isAutomatic != null">#{isAutomatic},</if>
  541. <if test="isJoinJg != null">#{isJoinJg},</if>
  542. <if test="isLiveAccount != null">#{isLiveAccount},</if>
  543. <if test="isNotDisturb != null">#{isNotDisturb},</if>
  544. <if test="isOooAccount != null">#{isOooAccount},</if>
  545. <if test="isPush != null">#{isPush},</if>
  546. <if test="isRecommend != null">#{isRecommend},</if>
  547. <if test="isShowHomePage != null">#{isShowHomePage},</if>
  548. <if test="isSvip != null">#{isSvip},</if>
  549. <if test="isTone != null">#{isTone},</if>
  550. <if test="isYouthModel != null">#{isYouthModel},</if>
  551. <if test="ishot != null">#{ishot},</if>
  552. <if test="isrecord != null">#{isrecord},</if>
  553. <if test="issuper != null">#{issuper},</if>
  554. <if test="iszombie != null">#{iszombie},</if>
  555. <if test="iszombiep != null">#{iszombiep},</if>
  556. <if test="joinRoomShow != null">#{joinRoomShow},</if>
  557. <if test="kickTime != null">#{kickTime},</if>
  558. <if test="lastGameNum != null">#{lastGameNum},</if>
  559. <if test="lastLoginDay != null">#{lastLoginDay},</if>
  560. <if test="lastLoginIp != null">#{lastLoginIp},</if>
  561. <if test="lastLoginTime != null">#{lastLoginTime},</if>
  562. <if test="lastOffLineTime != null">#{lastOffLineTime},</if>
  563. <if test="lat != null">#{lat},</if>
  564. <if test="level != null">#{level},</if>
  565. <if test="liveFunction != null">#{liveFunction},</if>
  566. <if test="liveStatus != null">#{liveStatus},</if>
  567. <if test="liveThumb != null">#{liveThumb},</if>
  568. <if test="liveThumbs != null">#{liveThumbs},</if>
  569. <if test="lng != null">#{lng},</if>
  570. <if test="lockReason != null">#{lockReason},</if>
  571. <if test="lockTime != null">#{lockTime},</if>
  572. <if test="loginType != null">#{loginType},</if>
  573. <if test="managerCoId != null">#{managerCoId},</if>
  574. <if test="managerId != null">#{managerId},</if>
  575. <if test="maxSignCount != null">#{maxSignCount},</if>
  576. <if test="mobile != null">#{mobile},</if>
  577. <if test="nickname != null">#{nickname},</if>
  578. <if test="nobleGrade != null">#{nobleGrade},</if>
  579. <if test="onlineStatus != null">#{onlineStatus},</if>
  580. <if test="oooHomePageSortNo != null">#{oooHomePageSortNo},</if>
  581. <if test="oooLiveStatus != null">#{oooLiveStatus},</if>
  582. <if test="oooTwoClassifyId != null">#{oooTwoClassifyId},</if>
  583. <if test="openLiveZombieNum != null">#{openLiveZombieNum},</if>
  584. <if test="openid != null">#{openid},</if>
  585. <if test="optUserName != null">#{optUserName},</if>
  586. <if test="password != null">#{password},</if>
  587. <if test="phoneFirm != null">#{phoneFirm},</if>
  588. <if test="phoneModel != null">#{phoneModel},</if>
  589. <if test="phoneSystem != null">#{phoneSystem},</if>
  590. <if test="phoneUuid != null">#{phoneUuid},</if>
  591. <if test="pid != null">#{pid},</if>
  592. <if test="portrait != null">#{portrait},</if>
  593. <if test="poster != null">#{poster},</if>
  594. <if test="province != null">#{province},</if>
  595. <if test="pushPlatform != null">#{pushPlatform},</if>
  596. <if test="pushRegisterId != null">#{pushRegisterId},</if>
  597. <if test="readShortVideoNumber != null">#{readShortVideoNumber},</if>
  598. <if test="regType != null">#{regType},</if>
  599. <if test="registerIp != null">#{registerIp},</if>
  600. <if test="role != null">#{role},</if>
  601. <if test="roomId != null">#{roomId},</if>
  602. <if test="roomTitle != null">#{roomTitle},</if>
  603. <if test="roomType != null">#{roomType},</if>
  604. <if test="roomTypeVal != null">#{roomTypeVal},</if>
  605. <if test="salt != null">#{salt},</if>
  606. <if test="sanwei != null">#{sanwei},</if>
  607. <if test="score != null">#{score},</if>
  608. <if test="sex != null">#{sex},</if>
  609. <if test="signCount != null">#{signCount},</if>
  610. <if test="signTime != null">#{signTime},</if>
  611. <if test="signature != null">#{signature},</if>
  612. <if test="smsRegion != null">#{smsRegion},</if>
  613. <if test="source != null">#{source},</if>
  614. <if test="starId != null">#{starId},</if>
  615. <if test="status != null">#{status},</if>
  616. <if test="totalAmount != null">#{totalAmount},</if>
  617. <if test="totalAmountCash != null">#{totalAmountCash},</if>
  618. <if test="totalCash != null">#{totalCash},</if>
  619. <if test="totalCharge != null">#{totalCharge},</if>
  620. <if test="unionid != null">#{unionid},</if>
  621. <if test="updatePwdTime != null">#{updatePwdTime},</if>
  622. <if test="userActivationKey != null">#{userActivationKey},</if>
  623. <if test="userEmail != null">#{userEmail},</if>
  624. <if test="userGrade != null">#{userGrade},</if>
  625. <if test="userPoint != null">#{userPoint},</if>
  626. <if test="userSetOnlineStatus != null">#{userSetOnlineStatus},</if>
  627. <if test="userType != null">#{userType},</if>
  628. <if test="userUrl != null">#{userUrl},</if>
  629. <if test="username != null">#{username},</if>
  630. <if test="video != null">#{video},</if>
  631. <if test="videoCoin != null">#{videoCoin},</if>
  632. <if test="videoImg != null">#{videoImg},</if>
  633. <if test="vocation != null">#{vocation},</if>
  634. <if test="voice != null">#{voice},</if>
  635. <if test="voiceCoin != null">#{voiceCoin},</if>
  636. <if test="voiceStatus != null">#{voiceStatus},</if>
  637. <if test="voipToken != null">#{voipToken},</if>
  638. <if test="votes != null">#{votes},</if>
  639. <if test="votestotal != null">#{votestotal},</if>
  640. <if test="wealthGrade != null">#{wealthGrade},</if>
  641. <if test="wechat != null">#{wechat},</if>
  642. <if test="weight != null">#{weight},</if>
  643. <if test="whetherEnablePositioningShow != null">#{whetherEnablePositioningShow},</if>
  644. <if test="youthPassword != null">#{youthPassword},</if>
  645. <if test="zombieMaxNum != null">#{zombieMaxNum},</if>
  646. <if test="zombieRatio != null">#{zombieRatio},</if>
  647. <if test="agentGrade != null">#{agentGrade},</if>
  648. <if test="liveDividedInto != null">#{liveDividedInto},</if>
  649. <if test="gameDividedInto != null">#{gameDividedInto},</if>
  650. <if test="inviteBindTime != null">#{inviteBindTime},</if>
  651. <if test="fundPassword != null">#{fundPassword},</if>
  652. <if test="diamondCoin != null">#{diamondCoin},</if>
  653. <if test="diamondCoinCash != null">#{diamondCoinCash},</if>
  654. <if test="diamondCoinTotal != null">#{diamondCoinTotal},</if>
  655. <if test="diamondCoinCashTotal != null">#{diamondCoinCashTotal},</if>
  656. <if test="agentFlag != null and agentFlag != ''">#{agentFlag},</if>
  657. <if test="withdrawAble != null">#{withdrawAble},</if>
  658. <if test="withdraw != null">#{withdraw},</if>
  659. </trim>
  660. </insert>
  661. <update id="updateAppUser" parameterType="com.game.business.domain.AppUser">
  662. update app_user
  663. <trim prefix="SET" suffixOverrides=",">
  664. <if test="address != null">address = #{address},</if>
  665. <if test="agentId != null">agent_id = #{agentId},</if>
  666. <if test="amount != null">amount = #{amount},</if>
  667. <if test="anchorGrade != null">anchor_grade = #{anchorGrade},</if>
  668. <if test="anchorPoint != null">anchor_point = #{anchorPoint},</if>
  669. <if test="appVersion != null">app_version = #{appVersion},</if>
  670. <if test="appVersionCode != null">app_version_code = #{appVersionCode},</if>
  671. <if test="avatar != null">avatar = #{avatar},</if>
  672. <if test="awardLoginDay != null">award_login_day = #{awardLoginDay},</if>
  673. <if test="birthday != null">birthday = #{birthday},</if>
  674. <if test="broadCast != null">broad_cast = #{broadCast},</if>
  675. <if test="channelId != null">channel_id = #{channelId},</if>
  676. <if test="chargeShow != null">charge_show = #{chargeShow},</if>
  677. <if test="charmGrade != null">charm_grade = #{charmGrade},</if>
  678. <if test="charmPoint != null">charm_point = #{charmPoint},</if>
  679. <if test="city != null">city = #{city},</if>
  680. <if test="cityEdit != null">city_edit = #{cityEdit},</if>
  681. <if test="coin != null">coin = #{coin},</if>
  682. <if test="coinCash != null">coin_cash = #{coinCash},</if>
  683. <if test="constellation != null">constellation = #{constellation},</if>
  684. <if test="consumption != null">consumption = #{consumption},</if>
  685. <if test="createTime != null">create_time = #{createTime},</if>
  686. <if test="dealScalePlan != null">deal_scale_plan = #{dealScalePlan},</if>
  687. <if test="delFlag != null">del_flag = #{delFlag},</if>
  688. <if test="deviceId != null">device_id = #{deviceId},</if>
  689. <if test="devoteShow != null">devote_show = #{devoteShow},</if>
  690. <if test="giftGlobalBroadcast != null">gift_global_broadcast = #{giftGlobalBroadcast},</if>
  691. <if test="goodnum != null">goodnum = #{goodnum},</if>
  692. <if test="groupId != null">group_id = #{groupId},</if>
  693. <if test="gsRoomId != null">gs_room_id = #{gsRoomId},</if>
  694. <if test="gsRoomType != null">gs_room_type = #{gsRoomType},</if>
  695. <if test="guildId != null">guild_id = #{guildId},</if>
  696. <if test="headNo != null">head_no = #{headNo},</if>
  697. <if test="height != null">height = #{height},</if>
  698. <if test="hideDistance != null">hide_distance = #{hideDistance},</if>
  699. <if test="inviteCode != null">invite_code = #{inviteCode},</if>
  700. <if test="bindCode != null">bind_code = #{bindCode},</if>
  701. <if test="ipaddr != null">ipaddr = #{ipaddr},</if>
  702. <if test="isAnchorAuth != null">is_anchor_auth = #{isAnchorAuth},</if>
  703. <if test="isAutomatic != null">is_automatic = #{isAutomatic},</if>
  704. <if test="isJoinJg != null">is_join_jg = #{isJoinJg},</if>
  705. <if test="isLiveAccount != null">is_live_account = #{isLiveAccount},</if>
  706. <if test="isNotDisturb != null">is_not_disturb = #{isNotDisturb},</if>
  707. <if test="isOooAccount != null">is_ooo_account = #{isOooAccount},</if>
  708. <if test="isPush != null">is_push = #{isPush},</if>
  709. <if test="isRecommend != null">is_recommend = #{isRecommend},</if>
  710. <if test="isShowHomePage != null">is_show_home_page = #{isShowHomePage},</if>
  711. <if test="isSvip != null">is_svip = #{isSvip},</if>
  712. <if test="isTone != null">is_tone = #{isTone},</if>
  713. <if test="isYouthModel != null">is_youth_model = #{isYouthModel},</if>
  714. <if test="ishot != null">ishot = #{ishot},</if>
  715. <if test="isrecord != null">isrecord = #{isrecord},</if>
  716. <if test="issuper != null">issuper = #{issuper},</if>
  717. <if test="iszombie != null">iszombie = #{iszombie},</if>
  718. <if test="iszombiep != null">iszombiep = #{iszombiep},</if>
  719. <if test="joinRoomShow != null">join_room_show = #{joinRoomShow},</if>
  720. <if test="kickTime != null">kick_time = #{kickTime},</if>
  721. <if test="lastGameNum != null">last_game_num = #{lastGameNum},</if>
  722. <if test="lastLoginDay != null">last_login_day = #{lastLoginDay},</if>
  723. <if test="lastLoginIp != null">last_login_ip = #{lastLoginIp},</if>
  724. <if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if>
  725. <if test="lastOffLineTime != null">last_off_line_time = #{lastOffLineTime},</if>
  726. <if test="lat != null">lat = #{lat},</if>
  727. <if test="level != null">level = #{level},</if>
  728. <if test="liveFunction != null">live_function = #{liveFunction},</if>
  729. <if test="liveStatus != null">live_status = #{liveStatus},</if>
  730. <if test="liveThumb != null">live_thumb = #{liveThumb},</if>
  731. <if test="liveThumbs != null">live_thumbs = #{liveThumbs},</if>
  732. <if test="lng != null">lng = #{lng},</if>
  733. <if test="lockReason != null">lock_reason = #{lockReason},</if>
  734. <if test="lockTime != null">lock_time = #{lockTime},</if>
  735. <if test="loginType != null">login_type = #{loginType},</if>
  736. <if test="managerCoId != null">manager_co_id = #{managerCoId},</if>
  737. <if test="managerId != null">manager_id = #{managerId},</if>
  738. <if test="maxSignCount != null">max_sign_count = #{maxSignCount},</if>
  739. <if test="mobile != null">mobile = #{mobile},</if>
  740. <if test="nickname != null">nickname = #{nickname},</if>
  741. <if test="nobleGrade != null">noble_grade = #{nobleGrade},</if>
  742. <if test="onlineStatus != null">online_status = #{onlineStatus},</if>
  743. <if test="oooHomePageSortNo != null">ooo_home_page_sort_no = #{oooHomePageSortNo},</if>
  744. <if test="oooLiveStatus != null">ooo_live_status = #{oooLiveStatus},</if>
  745. <if test="oooTwoClassifyId != null">ooo_two_classify_id = #{oooTwoClassifyId},</if>
  746. <if test="openLiveZombieNum != null">open_live_zombie_num = #{openLiveZombieNum},</if>
  747. <if test="openid != null">openid = #{openid},</if>
  748. <if test="optUserName != null">opt_user_name = #{optUserName},</if>
  749. <if test="password != null">password = #{password},</if>
  750. <if test="phoneFirm != null">phone_firm = #{phoneFirm},</if>
  751. <if test="phoneModel != null">phone_model = #{phoneModel},</if>
  752. <if test="phoneSystem != null">phone_system = #{phoneSystem},</if>
  753. <if test="phoneUuid != null">phone_uuid = #{phoneUuid},</if>
  754. <if test="pid != null">pid = #{pid},</if>
  755. <if test="portrait != null">portrait = #{portrait},</if>
  756. <if test="poster != null">poster = #{poster},</if>
  757. <if test="province != null">province = #{province},</if>
  758. <if test="pushPlatform != null">push_platform = #{pushPlatform},</if>
  759. <if test="pushRegisterId != null">push_register_id = #{pushRegisterId},</if>
  760. <if test="readShortVideoNumber != null">read_short_video_number = #{readShortVideoNumber},</if>
  761. <if test="regType != null">reg_type = #{regType},</if>
  762. <if test="registerIp != null">register_ip = #{registerIp},</if>
  763. <if test="role != null">role = #{role},</if>
  764. <if test="roomId != null">room_id = #{roomId},</if>
  765. <if test="roomTitle != null">room_title = #{roomTitle},</if>
  766. <if test="roomType != null">room_type = #{roomType},</if>
  767. <if test="roomTypeVal != null">room_type_val = #{roomTypeVal},</if>
  768. <if test="salt != null">salt = #{salt},</if>
  769. <if test="sanwei != null">sanwei = #{sanwei},</if>
  770. <if test="score != null">score = #{score},</if>
  771. <if test="sex != null">sex = #{sex},</if>
  772. <if test="signCount != null">sign_count = #{signCount},</if>
  773. <if test="signTime != null">sign_time = #{signTime},</if>
  774. <if test="signature != null">signature = #{signature},</if>
  775. <if test="smsRegion != null">sms_region = #{smsRegion},</if>
  776. <if test="source != null">source = #{source},</if>
  777. <if test="starId != null">star_id = #{starId},</if>
  778. <if test="status != null">status = #{status},</if>
  779. <if test="totalAmount != null">total_amount = #{totalAmount},</if>
  780. <if test="totalAmountCash != null">total_amount_cash = #{totalAmountCash},</if>
  781. <if test="totalCash != null">total_cash = #{totalCash},</if>
  782. <if test="totalCharge != null">total_charge = #{totalCharge},</if>
  783. <if test="unionid != null">unionid = #{unionid},</if>
  784. <if test="updatePwdTime != null">update_pwd_time = #{updatePwdTime},</if>
  785. <if test="userActivationKey != null">user_activation_key = #{userActivationKey},</if>
  786. <if test="userEmail != null">user_email = #{userEmail},</if>
  787. <if test="userGrade != null">user_grade = #{userGrade},</if>
  788. <if test="userPoint != null">user_point = #{userPoint},</if>
  789. <if test="userSetOnlineStatus != null">user_set_online_status = #{userSetOnlineStatus},</if>
  790. <if test="userType != null">user_type = #{userType},</if>
  791. <if test="userUrl != null">user_url = #{userUrl},</if>
  792. <if test="username != null">username = #{username},</if>
  793. <if test="video != null">video = #{video},</if>
  794. <if test="videoCoin != null">video_coin = #{videoCoin},</if>
  795. <if test="videoImg != null">video_img = #{videoImg},</if>
  796. <if test="vocation != null">vocation = #{vocation},</if>
  797. <if test="voice != null">voice = #{voice},</if>
  798. <if test="voiceCoin != null">voice_coin = #{voiceCoin},</if>
  799. <if test="voiceStatus != null">voice_status = #{voiceStatus},</if>
  800. <if test="voipToken != null">voip_token = #{voipToken},</if>
  801. <if test="votes != null">votes = #{votes},</if>
  802. <if test="votestotal != null">votestotal = #{votestotal},</if>
  803. <if test="wealthGrade != null">wealth_grade = #{wealthGrade},</if>
  804. <if test="wechat != null">wechat = #{wechat},</if>
  805. <if test="weight != null">weight = #{weight},</if>
  806. <if test="whetherEnablePositioningShow != null">whether_enable_positioning_show = #{whetherEnablePositioningShow},</if>
  807. <if test="youthPassword != null">youth_password = #{youthPassword},</if>
  808. <if test="zombieMaxNum != null">zombie_max_num = #{zombieMaxNum},</if>
  809. <if test="zombieRatio != null">zombie_ratio = #{zombieRatio},</if>
  810. <if test="agentGrade != null">agent_grade = #{agentGrade},</if>
  811. <if test="liveDividedInto != null">live_divided_into = #{liveDividedInto},</if>
  812. <if test="gameDividedInto != null">game_divided_into = #{gameDividedInto},</if>
  813. <if test="inviteBindTime != null">invite_bind_time = #{inviteBindTime},</if>
  814. <if test="fundPassword != null">fund_password = #{fundPassword},</if>
  815. <if test="diamondCoin != null">diamond_coin = #{diamondCoin},</if>
  816. <if test="diamondCoinCash != null">diamond_coin_cash = #{diamondCoinCash},</if>
  817. <if test="diamondCoinTotal != null">diamond_coin_total = #{diamondCoinTotal},</if>
  818. <if test="diamondCoinCashTotal != null">diamond_coin_cash_total = #{diamondCoinCashTotal},</if>
  819. <if test="agentFlag != null and agentFlag != ''">agent_flag = #{agentFlag},</if>
  820. <if test="withdrawAble != null">withdraw_able = #{withdrawAble},</if>
  821. <if test="withdraw != null">withdraw = #{withdraw},</if>
  822. </trim>
  823. where userid = #{userid}
  824. </update>
  825. <delete id="deleteAppUserByUserid" parameterType="Long">
  826. delete from app_user where userid = #{userid}
  827. </delete>
  828. <delete id="deleteAppUserByUserids" parameterType="String">
  829. delete from app_user where userid in
  830. <foreach item="userid" collection="array" open="(" separator="," close=")">
  831. #{userid}
  832. </foreach>
  833. </delete>
  834. <select id="nextId" resultType="java.lang.Long">
  835. select max(userid) + 1 from app_user
  836. </select>
  837. <update id="updateUserMoney" parameterType="com.game.business.domain.AppUser">
  838. update app_user
  839. <trim prefix="SET" suffixOverrides=",">
  840. <if test="coin != null">
  841. coin = coin + #{coin},
  842. </if>
  843. <if test="coinCash != null">coin_cash = coin_cash + #{coinCash},</if>
  844. <if test="diamondCoin != null">diamond_coin = diamond_coin + #{diamondCoin},</if>
  845. <if test="diamondCoinCash != null">diamond_coin_cash = diamond_coin_cash + #{diamondCoinCash},</if>
  846. <if test="diamondCoinTotal != null">diamond_coin_total = diamond_coin_total + #{diamondCoinTotal},</if>
  847. <if test="withdraw != null">withdraw = withdraw + #{withdraw},</if>
  848. <if test="withdrawAble != null">withdraw_able = withdraw_able + #{withdrawAble},</if>
  849. </trim>
  850. where userid = #{userid}
  851. </update>
  852. <select id="getUserCount" resultType="java.util.Map">
  853. select
  854. ifnull(sum(diamond_coin), 0.00) as diamondCoin,
  855. ifnull(sum(diamond_coin_cash), 0.00) as diamondCoinCash,
  856. ifnull(sum(coin), 0.00) as coin,
  857. ifnull(sum(coin_cash), 0.00) as coinCash
  858. from app_user
  859. <where>
  860. <if test="userId != null">
  861. and userid = #{userId}
  862. </if>
  863. </where>
  864. </select>
  865. <select id="selectOffLineUser" resultType="com.game.business.vo.OffLineUserVo">
  866. 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
  867. where b.islive = 1 and a.online_status = 0
  868. </select>
  869. </mapper>