| | |
| | | <arg column="total_money" jdbcType="DECIMAL" javaType="java.math.BigDecimal" /> |
| | | <arg column="site_lever" jdbcType="VARCHAR" javaType="java.lang.String" /> |
| | | <arg column="on_line_services" jdbcType="VARCHAR" javaType="java.lang.String"/> |
| | | <arg column="google_auth_secret" jdbcType="VARCHAR" javaType="java.lang.String"/> |
| | | <arg column="google_auth_bind" jdbcType="BIT" javaType="java.lang.Boolean"/> |
| | | </constructor> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, agent_name, agent_pwd, agent_real_name, agent_phone, agent_code, add_time, is_lock, |
| | | parent_id, parent_name, agent_level,poundage_scale,deferred_fees_scale,receive_dividends_scale, |
| | | total_money,site_lever,on_line_services |
| | | total_money,site_lever,on_line_services,google_auth_secret,google_auth_bind |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | * |
| | | from agent_user |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </select> |
| | |
| | | add_time, is_lock, parent_id, |
| | | parent_name, agent_level,poundage_scale, |
| | | deferred_fees_scale,receive_dividends_scale,total_money, |
| | | site_lever,on_line_services) |
| | | site_lever,on_line_services,google_auth_secret,google_auth_bind) |
| | | values (#{agentName,jdbcType=VARCHAR}, #{agentPwd,jdbcType=VARCHAR}, |
| | | #{agentRealName,jdbcType=VARCHAR}, #{agentPhone,jdbcType=VARCHAR}, #{agentCode,jdbcType=VARCHAR}, |
| | | #{addTime,jdbcType=TIMESTAMP}, #{isLock,jdbcType=INTEGER}, #{parentId,jdbcType=INTEGER}, |
| | | #{parentName,jdbcType=VARCHAR}, #{agentLevel,jdbcType=INTEGER} |
| | | , #{poundageScale,jdbcType=DECIMAL}, #{deferredFeesScale,jdbcType=DECIMAL}, #{receiveDividendsScale,jdbcType=DECIMAL} |
| | | , #{totalMoney,jdbcType=DECIMAL},#{siteLever,jdbcType=VARCHAR},#{onLineServices,jdbcType=VARCHAR} |
| | | , #{totalMoney,jdbcType=DECIMAL},#{siteLever,jdbcType=VARCHAR},#{onLineServices,jdbcType=VARCHAR},#{googleAuthSecret,jdbcType=VARCHAR},#{googleAuthBind,jdbcType=BIT} |
| | | ) |
| | | |
| | | </insert> |
| | |
| | | <if test="onLineServices != null" > |
| | | on_line_services = #{onLineServices,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="googleAuthSecret != null" > |
| | | google_auth_secret = #{googleAuthSecret,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="googleAuthBind != null" > |
| | | google_auth_bind = #{googleAuthBind,jdbcType=BIT}, |
| | | </if> |
| | | |
| | | </set> |
| | | where id = #{id,jdbcType=INTEGER} |
| | |
| | | is_lock = #{isLock,jdbcType=INTEGER}, |
| | | parent_id = #{parentId,jdbcType=INTEGER}, |
| | | parent_name = #{parentName,jdbcType=VARCHAR}, |
| | | site_lever = #{siteLever,jdbcType=VARCHAR} |
| | | site_lever = #{siteLever,jdbcType=VARCHAR}, |
| | | google_auth_secret = #{googleAuthSecret,jdbcType=VARCHAR}, |
| | | google_auth_bind = #{googleAuthBind,jdbcType=BIT} |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | |