peter
2026-01-10 d3b5fbde186a47c0dc8b0b58d5688ae5691ed9e6
src/main/resources/mapper/UserMapper.xml
@@ -39,6 +39,8 @@
            <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" >
@@ -104,7 +106,7 @@
    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
@@ -151,7 +153,7 @@
        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},
@@ -164,7 +166,7 @@
        #{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" >
@@ -279,6 +281,12 @@
            <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},
@@ -386,6 +394,12 @@
            </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>
@@ -503,6 +517,12 @@
            <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" />
@@ -544,7 +564,9 @@
        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>
@@ -659,8 +681,20 @@
            <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
@@ -697,7 +731,9 @@
      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>