peter
2026-01-10 d3b5fbde186a47c0dc8b0b58d5688ae5691ed9e6
src/main/resources/mapper/SiteProductMapper.xml
@@ -16,6 +16,10 @@
      <arg column="end_display" jdbcType="BIT" javaType="java.lang.Boolean" />
      <arg column="stock_margin_display" jdbcType="BIT" javaType="java.lang.Boolean" />
      <arg column="holiday_display" jdbcType="BIT" javaType="java.lang.Boolean" />
      <arg column="stock_dz_display" jdbcType="BIT" javaType="java.lang.Boolean" />
      <arg column="tran_withdraw_display" jdbcType="BIT" javaType="java.lang.Boolean" />
    </constructor>
  </resultMap>
  <sql id="Base_Column_List" >
@@ -26,7 +30,7 @@
                margin_display,
                end_display,
                stock_margin_display,
                holiday_display
                holiday_display,stock_dz_display,tran_withdraw_display
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
@@ -45,11 +49,11 @@
                delay_display,
                expand_display,
                margin_display,
                end_display)
                end_display,stock_dz_display,tran_withdraw_display)
    values (#{id,jdbcType=INTEGER}, #{stockDisplay,jdbcType=BIT}, #{kcStockDisplay,jdbcType=BIT}, 
      #{indexDisplay,jdbcType=BIT}, #{futuresDisplay,jdbcType=BIT}, #{realNameDisplay,jdbcType=BIT}
      , #{fundsDisplay,jdbcType=BIT}, #{delayDisplay,jdbcType=BIT}, #{expandDisplay,jdbcType=BIT}
      , #{marginDisplay,jdbcType=BIT}, #{endDisplay,jdbcType=BIT})
      , #{marginDisplay,jdbcType=BIT}, #{endDisplay,jdbcType=BIT},#{stockDzDisplay,jdbcType=BIT},#{tranWithdrawDisplay,jdbcType=BIT})
  </insert>
  <insert id="insertSelective" parameterType="com.nq.pojo.SiteProduct" >
    insert into site_product
@@ -87,6 +91,13 @@
      <if test ='null != endDisplay'>
        end_display
      </if>
      <if test ='null != stockDzDisplay'>
        stock_dz_display
      </if>
      <if test ='null != tranWithdrawDisplay'>
        tran_withdraw_display
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
@@ -122,6 +133,13 @@
      <if test ='null != endDisplay'>
        #{endDisplay,jdbcType=BIT}
      </if>
      <if test ='null != stockDzDisplay'>
        #{stockDzDisplay,jdbcType=BIT}
      </if>
      <if test ='null != tranWithdrawDisplay'>
        #{tranWithdrawDisplay,jdbcType=BIT}
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.nq.pojo.SiteProduct" >
@@ -145,6 +163,13 @@
      <if test="fundsDisplay != null" >
        funds_display = #{fundsDisplay,jdbcType=BIT},
      </if>
      <if test="stockDzDisplay != null" >
        stock_dz_display = #{stockDzDisplay,jdbcType=BIT},
      </if>
      <if test="tranWithdrawDisplay != null" >
        tran_withdraw_display = #{tranWithdrawDisplay,jdbcType=BIT},
      </if>
      <if test ='null != delayDisplay'>delay_display = #{delayDisplay},</if>
      <if test ='null != expandDisplay'>expand_display = #{expandDisplay},</if>
      <if test ='null != marginDisplay'>margin_display = #{marginDisplay},</if>
@@ -162,7 +187,9 @@
      index_display = #{indexDisplay,jdbcType=BIT},
      futures_display = #{futuresDisplay,jdbcType=BIT},
      real_name_display = #{realNameDisplay,jdbcType=BIT},
      funds_display = #{fundsDisplay,jdbcType=BIT}
      funds_display = #{fundsDisplay,jdbcType=BIT},
      stock_dz_display = #{stockDzDisplay,jdbcType=BIT},
      tran_withdraw_display = #{tranWithdrawDisplay,jdbcType=BIT}
    where id = #{id,jdbcType=INTEGER}
  </update>