| 
															
																@@ -14,8 +14,8 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="sex" column="sex"/> 
															 | 
															
															 | 
															
																         <result property="sex" column="sex"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="avatar" column="avatar"/> 
															 | 
															
															 | 
															
																         <result property="avatar" column="avatar"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="password" column="password"/> 
															 | 
															
															 | 
															
																         <result property="password" column="password"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <result property="money" column="money"/> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <result property="totalMoney" column="total_money"/> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <result property="money" column="money"/>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <result property="totalMoney" column="total_money"/>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="status" column="status"/> 
															 | 
															
															 | 
															
																         <result property="status" column="status"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="delFlag" column="del_flag"/> 
															 | 
															
															 | 
															
																         <result property="delFlag" column="del_flag"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <result property="loginIp" column="login_ip"/> 
															 | 
															
															 | 
															
																         <result property="loginIp" column="login_ip"/> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -67,8 +67,8 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.password, 
															 | 
															
															 | 
															
																                u.password, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.sex, 
															 | 
															
															 | 
															
																                u.sex, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.status, 
															 | 
															
															 | 
															
																                u.status, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-               u.money, 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-               u.total_money, 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#                u.money, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#                u.total_money, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.del_flag, 
															 | 
															
															 | 
															
																                u.del_flag, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.login_ip, 
															 | 
															
															 | 
															
																                u.login_ip, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                u.login_date, 
															 | 
															
															 | 
															
																                u.login_date, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -161,7 +161,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <!--        <include refid="selectUserVo"/>--> 
															 | 
															
															 | 
															
																         <!--        <include refid="selectUserVo"/>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         select 
															 | 
															
															 | 
															
																         select 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, password, sex, status, 
															 | 
															
															 | 
															
																         user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, password, sex, status, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        money, total_money, del_flag, login_ip, login_date, create_by, create_time, remark, company_id 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+         del_flag, login_ip, login_date, create_by, create_time, remark, company_id 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         from sys_user 
															 | 
															
															 | 
															
																         from sys_user 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <where> 
															 | 
															
															 | 
															
																         <where> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             <if test="companyId != null">and company_id = #{companyId}</if> 
															 | 
															
															 | 
															
																             <if test="companyId != null">and company_id = #{companyId}</if> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -246,8 +246,8 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> 
															 | 
															
															 | 
															
																         <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="sex != null and sex != ''">sex,</if> 
															 | 
															
															 | 
															
																         <if test="sex != null and sex != ''">sex,</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="password != null and password != ''">password,</if> 
															 | 
															
															 | 
															
																         <if test="password != null and password != ''">password,</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <if test="money != null and money != ''">money,</if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <if test="totalMoney != null and totalMoney != ''">total_money,</if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <if test="money != null and money != ''">money,</if>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <if test="totalMoney != null and totalMoney != ''">total_money,</if>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="status != null and status != ''">status,</if> 
															 | 
															
															 | 
															
																         <if test="status != null and status != ''">status,</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="createBy != null and createBy != ''">create_by,</if> 
															 | 
															
															 | 
															
																         <if test="createBy != null and createBy != ''">create_by,</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="remark != null and remark != ''">remark,</if> 
															 | 
															
															 | 
															
																         <if test="remark != null and remark != ''">remark,</if> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -263,8 +263,8 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> 
															 | 
															
															 | 
															
																         <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="sex != null and sex != ''">#{sex},</if> 
															 | 
															
															 | 
															
																         <if test="sex != null and sex != ''">#{sex},</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="password != null and password != ''">#{password},</if> 
															 | 
															
															 | 
															
																         <if test="password != null and password != ''">#{password},</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <if test="money != null and money != ''">#{money},</if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        <if test="totalMoney != null and totalMoney != ''">#{totalMoney},</if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <if test="money != null and money != ''">#{money},</if>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+<!--        <if test="totalMoney != null and totalMoney != ''">#{totalMoney},</if>--> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="status != null and status != ''">#{status},</if> 
															 | 
															
															 | 
															
																         <if test="status != null and status != ''">#{status},</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="createBy != null and createBy != ''">#{createBy},</if> 
															 | 
															
															 | 
															
																         <if test="createBy != null and createBy != ''">#{createBy},</if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         <if test="remark != null and remark != ''">#{remark},</if> 
															 | 
															
															 | 
															
																         <if test="remark != null and remark != ''">#{remark},</if> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -313,16 +313,16 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     </update> 
															 | 
															
															 | 
															
																     </update> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <update id="updateUserCharge" parameterType="SysUser"> 
															 | 
															
															 | 
															
																     <update id="updateUserCharge" parameterType="SysUser"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        update sys_user 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        set money       = money + #{money}, 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            total_money = total_money + #{money} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        where user_id = #{userId} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         update sys_user 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         set money       = money + #{money}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#             total_money = total_money + #{money} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         where user_id = #{userId} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     </update> 
															 | 
															
															 | 
															
																     </update> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <update id="updateUserMoney" parameterType="SysUser"> 
															 | 
															
															 | 
															
																     <update id="updateUserMoney" parameterType="SysUser"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        update sys_user 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        set money = #{money} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        where user_id = #{userId} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         update sys_user 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         set money = #{money} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+#         where user_id = #{userId} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     </update> 
															 | 
															
															 | 
															
																     </update> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <delete id="deleteUserById" parameterType="Long"> 
															 | 
															
															 | 
															
																     <delete id="deleteUserById" parameterType="Long"> 
															 |