|
|
|
|
@ -4,15 +4,15 @@
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="test_cycles" jdbcType="TINYINT" property="testCycles" />
|
|
|
|
|
<result column="submit_time" jdbcType="TIMESTAMP" property="submitTime" />
|
|
|
|
|
<result column="status" jdbcType="CHAR" property="status" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
<result column="click_rate" jdbcType="LONGVARCHAR" property="clickRate" />
|
|
|
|
|
<result column="conversion_rate" jdbcType="LONGVARCHAR" property="conversionRate" />
|
|
|
|
|
<result column="roi_data" jdbcType="LONGVARCHAR" property="roiData" />
|
|
|
|
|
<result column="order_amount" jdbcType="LONGVARCHAR" property="orderAmount" />
|
|
|
|
|
<result column="context" jdbcType="LONGVARCHAR" property="context" />
|
|
|
|
|
<result column="p_value" jdbcType="LONGVARCHAR" property="pValue" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
@ -73,10 +73,10 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, user_id, test_cycles, submit_time, status
|
|
|
|
|
id, user_id, create_time
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
click_rate, conversion_rate, roi_data, order_amount
|
|
|
|
|
click_rate, conversion_rate, roi_data, order_amount, context, p_value
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
@ -127,13 +127,13 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
insert into cptgcs_stu_answer (id, user_id, test_cycles,
|
|
|
|
|
submit_time, status, click_rate,
|
|
|
|
|
conversion_rate, roi_data, order_amount
|
|
|
|
|
insert into cptgcs_stu_answer (id, user_id, create_time,
|
|
|
|
|
click_rate, conversion_rate, roi_data,
|
|
|
|
|
order_amount, context, p_value
|
|
|
|
|
)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{testCycles,jdbcType=TINYINT},
|
|
|
|
|
#{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=CHAR}, #{clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR}, #{orderAmount,jdbcType=LONGVARCHAR}
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{clickRate,jdbcType=LONGVARCHAR}, #{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{orderAmount,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}, #{pValue,jdbcType=LONGVARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
@ -145,14 +145,8 @@
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="testCycles != null">
|
|
|
|
|
test_cycles,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="submitTime != null">
|
|
|
|
|
submit_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
status,
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="clickRate != null">
|
|
|
|
|
click_rate,
|
|
|
|
|
@ -166,6 +160,12 @@
|
|
|
|
|
<if test="orderAmount != null">
|
|
|
|
|
order_amount,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="context != null">
|
|
|
|
|
context,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="pValue != null">
|
|
|
|
|
p_value,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
@ -174,14 +174,8 @@
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="testCycles != null">
|
|
|
|
|
#{testCycles,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="submitTime != null">
|
|
|
|
|
#{submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
#{status,jdbcType=CHAR},
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="clickRate != null">
|
|
|
|
|
#{clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
@ -195,6 +189,12 @@
|
|
|
|
|
<if test="orderAmount != null">
|
|
|
|
|
#{orderAmount,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="context != null">
|
|
|
|
|
#{context,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="pValue != null">
|
|
|
|
|
#{pValue,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultType="java.lang.Long">
|
|
|
|
|
@ -212,14 +212,8 @@
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.testCycles != null">
|
|
|
|
|
test_cycles = #{record.testCycles,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.submitTime != null">
|
|
|
|
|
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.status != null">
|
|
|
|
|
status = #{record.status,jdbcType=CHAR},
|
|
|
|
|
<if test="record.createTime != null">
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.clickRate != null">
|
|
|
|
|
click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
@ -233,6 +227,12 @@
|
|
|
|
|
<if test="record.orderAmount != null">
|
|
|
|
|
order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.context != null">
|
|
|
|
|
context = #{record.context,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.pValue != null">
|
|
|
|
|
p_value = #{record.pValue,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
@ -242,13 +242,13 @@
|
|
|
|
|
update cptgcs_stu_answer
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
test_cycles = #{record.testCycles,jdbcType=TINYINT},
|
|
|
|
|
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
status = #{record.status,jdbcType=CHAR},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
roi_data = #{record.roiData,jdbcType=LONGVARCHAR},
|
|
|
|
|
order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}
|
|
|
|
|
order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR},
|
|
|
|
|
context = #{record.context,jdbcType=LONGVARCHAR},
|
|
|
|
|
p_value = #{record.pValue,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
@ -257,9 +257,7 @@
|
|
|
|
|
update cptgcs_stu_answer
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
test_cycles = #{record.testCycles,jdbcType=TINYINT},
|
|
|
|
|
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
status = #{record.status,jdbcType=CHAR}
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
@ -270,14 +268,8 @@
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="testCycles != null">
|
|
|
|
|
test_cycles = #{testCycles,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="submitTime != null">
|
|
|
|
|
submit_time = #{submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
status = #{status,jdbcType=CHAR},
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="clickRate != null">
|
|
|
|
|
click_rate = #{clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
@ -291,27 +283,31 @@
|
|
|
|
|
<if test="orderAmount != null">
|
|
|
|
|
order_amount = #{orderAmount,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="context != null">
|
|
|
|
|
context = #{context,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="pValue != null">
|
|
|
|
|
p_value = #{pValue,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
update cptgcs_stu_answer
|
|
|
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
test_cycles = #{testCycles,jdbcType=TINYINT},
|
|
|
|
|
submit_time = #{submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
status = #{status,jdbcType=CHAR},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
click_rate = #{clickRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR},
|
|
|
|
|
roi_data = #{roiData,jdbcType=LONGVARCHAR},
|
|
|
|
|
order_amount = #{orderAmount,jdbcType=LONGVARCHAR}
|
|
|
|
|
order_amount = #{orderAmount,jdbcType=LONGVARCHAR},
|
|
|
|
|
context = #{context,jdbcType=LONGVARCHAR},
|
|
|
|
|
p_value = #{pValue,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
|
|
|
|
|
update cptgcs_stu_answer
|
|
|
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
test_cycles = #{testCycles,jdbcType=TINYINT},
|
|
|
|
|
submit_time = #{submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
status = #{status,jdbcType=CHAR}
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|