| | |
| | | <arg column="is_authorize" jdbcType="INTEGER" javaType="java.lang.Integer" /> |
| | | <arg column="sgzj" jdbcType="DECIMAL" javaType="java.math.BigDecimal" /> |
| | | <arg column="djzj" jdbcType="DECIMAL" javaType="java.math.BigDecimal" /> |
| | | <arg column="is_signed_contract" jdbcType="VARCHAR" javaType="java.lang.String" /> |
| | | <arg column="is_signed_agreement" jdbcType="VARCHAR" javaType="java.lang.String" /> |
| | | </constructor> |
| | | </resultMap> |
| | | <sql id="Example_Where_Clause" > |
| | |
| | | account_type, user_amt, enable_amt, enale_withdraw_amt, hk_amt, sum_charge_amt, sum_buy_amt, |
| | | recom_phone, is_lock, is_login, reg_time, reg_ip, reg_address, img1_key, img2_key, |
| | | img3_key, is_active, auth_msg, user_index_amt, enable_index_amt, user_fut_amt, enable_fut_amt, |
| | | withdrawal_Pwd, trading_amount, is_authorize, sgzj, djzj |
| | | withdrawal_Pwd, trading_amount, is_authorize, sgzj, djzj,is_signed_contract,is_signed_agreement |
| | | </sql> |
| | | <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.nq.pojo.UserExample" > |
| | | select |
| | |
| | | img3_key, is_active, auth_msg, |
| | | user_index_amt, enable_index_amt, user_fut_amt, |
| | | enable_fut_amt, withdrawal_Pwd, trading_amount, |
| | | is_authorize, sgzj, djzj |
| | | is_authorize, sgzj, djzj,is_signed_contract,is_signed_agreement |
| | | ) |
| | | values ( #{agentId,jdbcType=INTEGER}, #{agentName,jdbcType=VARCHAR}, |
| | | #{phone,jdbcType=VARCHAR}, #{userPwd,jdbcType=VARCHAR}, #{withPwd,jdbcType=VARCHAR}, |
| | |
| | | #{img3Key,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{authMsg,jdbcType=VARCHAR}, |
| | | #{userIndexAmt,jdbcType=DECIMAL}, #{enableIndexAmt,jdbcType=DECIMAL}, #{userFutAmt,jdbcType=DECIMAL}, |
| | | #{enableFutAmt,jdbcType=DECIMAL}, #{withdrawalPwd,jdbcType=VARCHAR}, #{tradingAmount,jdbcType=DECIMAL}, |
| | | #{isAuthorize,jdbcType=INTEGER}, #{sgzj,jdbcType=DECIMAL}, #{djzj,jdbcType=DECIMAL} |
| | | #{isAuthorize,jdbcType=INTEGER}, #{sgzj,jdbcType=DECIMAL}, #{djzj,jdbcType=DECIMAL}, #{isSignedContract,jdbcType=VARCHAR}, #{isSignedAgreement,jdbcType=VARCHAR} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nq.pojo.User" > |
| | |
| | | <if test="djzj != null" > |
| | | djzj, |
| | | </if> |
| | | <if test="withdrawalPwd != null" > |
| | | is_signed_contract, |
| | | </if> |
| | | <if test="withdrawalPwd != null" > |
| | | is_signed_agreement, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | #{id,jdbcType=INTEGER}, |
| | |
| | | </if> |
| | | <if test="djzj != null" > |
| | | #{djzj,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="isSignedContract != null" > |
| | | #{isSignedContract,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="isSignedAgreement != null" > |
| | | #{isSignedAgreement,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="record.djzj != null" > |
| | | djzj = #{record.djzj,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="record.isSignedContract != null" > |
| | | is_signed_contract = #{record.isSignedContract,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="record.isSignedAgreement != null" > |
| | | is_signed_agreement = #{record.isSignedAgreement,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | <if test="_parameter != null" > |
| | | <include refid="Update_By_Example_Where_Clause" /> |
| | |
| | | trading_amount = #{record.tradingAmount,jdbcType=DECIMAL}, |
| | | is_authorize = #{record.isAuthorize,jdbcType=INTEGER}, |
| | | sgzj = #{record.sgzj,jdbcType=DECIMAL}, |
| | | djzj = #{record.djzj,jdbcType=DECIMAL} |
| | | djzj = #{record.djzj,jdbcType=DECIMAL}, |
| | | is_signed_contract = #{record.isSignedContract,jdbcType=VARCHAR}, |
| | | is_signed_agreement = #{record.isSignedAgreement,jdbcType=VARCHAR} |
| | | <if test="_parameter != null" > |
| | | <include refid="Update_By_Example_Where_Clause" /> |
| | | </if> |
| | |
| | | <if test="djzj != null" > |
| | | djzj = #{djzj,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="isSignedContract != null" > |
| | | is_signed_contract = #{isSignedContract,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="isSignedAgreement != null" > |
| | | is_signed_agreement = #{isSignedAgreement,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | <update id="updateSignedContract"> |
| | | update user set is_signed_contract=#{signedContract,jdbcType=VARCHAR} where id = #{userId,jdbcType=INTEGER} |
| | | </update> |
| | | <update id="updateSignedAgreement"> |
| | | update user set is_signed_agreement=#{signedAgreement,jdbcType=VARCHAR} where id = #{userId,jdbcType=INTEGER} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nq.pojo.User" > |
| | | update user |
| | |
| | | trading_amount = #{tradingAmount,jdbcType=DECIMAL}, |
| | | is_authorize = #{isAuthorize,jdbcType=INTEGER}, |
| | | sgzj = #{sgzj,jdbcType=DECIMAL}, |
| | | djzj = #{djzj,jdbcType=DECIMAL} |
| | | djzj = #{djzj,jdbcType=DECIMAL}, |
| | | is_signed_contract = #{record.isSignedContract,jdbcType=VARCHAR}, |
| | | is_signed_agreement = #{record.isSignedAgreement,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | |