|
|
|
@ -20,6 +20,7 @@
|
|
|
|
<result column="context" jdbcType="LONGVARCHAR" property="context" />
|
|
|
|
<result column="context" jdbcType="LONGVARCHAR" property="context" />
|
|
|
|
<result column="too_expensive_percentage" jdbcType="LONGVARCHAR" property="tooExpensivePercentage" />
|
|
|
|
<result column="too_expensive_percentage" jdbcType="LONGVARCHAR" property="tooExpensivePercentage" />
|
|
|
|
<result column="price_range" jdbcType="LONGVARCHAR" property="priceRange" />
|
|
|
|
<result column="price_range" jdbcType="LONGVARCHAR" property="priceRange" />
|
|
|
|
|
|
|
|
<result column="too_sum" jdbcType="LONGVARCHAR" property="tooSum" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
@ -85,7 +86,7 @@
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
cheap_sum, cheap_percentage, cost_effective_sum, cost_effective_percentage, expensive_sum,
|
|
|
|
cheap_sum, cheap_percentage, cost_effective_sum, cost_effective_percentage, expensive_sum,
|
|
|
|
expensive_percentage, context, too_expensive_percentage, price_range
|
|
|
|
expensive_percentage, context, too_expensive_percentage, price_range, too_sum
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswerExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswerExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@ -142,14 +143,14 @@
|
|
|
|
cheap_percentage, cost_effective_sum,
|
|
|
|
cheap_percentage, cost_effective_sum,
|
|
|
|
cost_effective_percentage, expensive_sum,
|
|
|
|
cost_effective_percentage, expensive_sum,
|
|
|
|
expensive_percentage, context, too_expensive_percentage,
|
|
|
|
expensive_percentage, context, too_expensive_percentage,
|
|
|
|
price_range)
|
|
|
|
price_range, too_sum)
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{optimalPrice,jdbcType=VARCHAR},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{optimalPrice,jdbcType=VARCHAR},
|
|
|
|
#{acceptablePrice,jdbcType=VARCHAR}, #{acceptablePriceRange,jdbcType=VARCHAR},
|
|
|
|
#{acceptablePrice,jdbcType=VARCHAR}, #{acceptablePriceRange,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{displayStatus,jdbcType=INTEGER}, #{cheapSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{displayStatus,jdbcType=INTEGER}, #{cheapSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{cheapPercentage,jdbcType=LONGVARCHAR}, #{costEffectiveSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{cheapPercentage,jdbcType=LONGVARCHAR}, #{costEffectiveSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{costEffectivePercentage,jdbcType=LONGVARCHAR}, #{expensiveSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{costEffectivePercentage,jdbcType=LONGVARCHAR}, #{expensiveSum,jdbcType=LONGVARCHAR},
|
|
|
|
#{expensivePercentage,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}, #{tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
#{expensivePercentage,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}, #{tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
#{priceRange,jdbcType=LONGVARCHAR})
|
|
|
|
#{priceRange,jdbcType=LONGVARCHAR}, #{tooSum,jdbcType=LONGVARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswer">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswer">
|
|
|
|
insert into cpdj_stu_answer
|
|
|
|
insert into cpdj_stu_answer
|
|
|
|
@ -202,6 +203,9 @@
|
|
|
|
<if test="priceRange != null">
|
|
|
|
<if test="priceRange != null">
|
|
|
|
price_range,
|
|
|
|
price_range,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="tooSum != null">
|
|
|
|
|
|
|
|
too_sum,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
|
@ -252,6 +256,9 @@
|
|
|
|
<if test="priceRange != null">
|
|
|
|
<if test="priceRange != null">
|
|
|
|
#{priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
#{priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="tooSum != null">
|
|
|
|
|
|
|
|
#{tooSum,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswerExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswerExample" resultType="java.lang.Long">
|
|
|
|
@ -311,6 +318,9 @@
|
|
|
|
<if test="record.priceRange != null">
|
|
|
|
<if test="record.priceRange != null">
|
|
|
|
price_range = #{record.priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
price_range = #{record.priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.tooSum != null">
|
|
|
|
|
|
|
|
too_sum = #{record.tooSum,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -333,7 +343,8 @@
|
|
|
|
expensive_percentage = #{record.expensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
expensive_percentage = #{record.expensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
context = #{record.context,jdbcType=LONGVARCHAR},
|
|
|
|
context = #{record.context,jdbcType=LONGVARCHAR},
|
|
|
|
too_expensive_percentage = #{record.tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
too_expensive_percentage = #{record.tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
price_range = #{record.priceRange,jdbcType=LONGVARCHAR}
|
|
|
|
price_range = #{record.priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
|
too_sum = #{record.tooSum,jdbcType=LONGVARCHAR}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
@ -399,6 +410,9 @@
|
|
|
|
<if test="priceRange != null">
|
|
|
|
<if test="priceRange != null">
|
|
|
|
price_range = #{priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
price_range = #{priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="tooSum != null">
|
|
|
|
|
|
|
|
too_sum = #{tooSum,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
@ -418,7 +432,8 @@
|
|
|
|
expensive_percentage = #{expensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
expensive_percentage = #{expensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
context = #{context,jdbcType=LONGVARCHAR},
|
|
|
|
context = #{context,jdbcType=LONGVARCHAR},
|
|
|
|
too_expensive_percentage = #{tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
too_expensive_percentage = #{tooExpensivePercentage,jdbcType=LONGVARCHAR},
|
|
|
|
price_range = #{priceRange,jdbcType=LONGVARCHAR}
|
|
|
|
price_range = #{priceRange,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
|
too_sum = #{tooSum,jdbcType=LONGVARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswer">
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CpdjStuAnswer">
|
|
|
|
|