@ -3,13 +3,13 @@
<mapper namespace= "com.ccsens.mt.persist.mapper.CompeteCountScoreMapper" >
<mapper namespace= "com.ccsens.mt.persist.mapper.CompeteCountScoreMapper" >
<resultMap id= "BaseResultMap" type= "com.ccsens.mt.bean.po.CompeteCountScore" >
<resultMap id= "BaseResultMap" type= "com.ccsens.mt.bean.po.CompeteCountScore" >
<id column= "id" jdbcType= "BIGINT" property= "id" />
<id column= "id" jdbcType= "BIGINT" property= "id" />
<id column= "should_times" jdbcType= "INTEGER" property= "shouldTimes" />
<result column= "compete_time_id" jdbcType= "BIGINT" property= "competeTimeId" />
<result column= "compete_time_id" jdbcType= "BIGINT" property= "competeTimeId" />
<result column= "project_id" jdbcType= "BIGINT" property= "projectId" />
<result column= "project_id" jdbcType= "BIGINT" property= "projectId" />
<result column= "site_order_id" jdbcType= "BIGINT" property= "siteOrderId" />
<result column= "site_order_id" jdbcType= "BIGINT" property= "siteOrderId" />
<result column= "chief_judgment_score" jdbcType= "DECIMAL" property= "chiefJudgmentScore" />
<result column= "chief_judgment_score" jdbcType= "DECIMAL" property= "chiefJudgmentScore" />
<result column= "judgment_a_score" jdbcType= "DECIMAL" property= "judgmentAScore" />
<result column= "judgment_a_score" jdbcType= "DECIMAL" property= "judgmentAScore" />
<result column= "judgment_b_score2" jdbcType= "DECIMAL" property= "judgmentBScore2" />
<result column= "judgment_b_score2" jdbcType= "DECIMAL" property= "judgmentBScore2" />
<result column= "should_times" jdbcType= "INTEGER" property= "shouldTimes" />
<result column= "deduct_times" jdbcType= "INTEGER" property= "deductTimes" />
<result column= "deduct_times" jdbcType= "INTEGER" property= "deductTimes" />
<result column= "deduct_cause" jdbcType= "VARCHAR" property= "deductCause" />
<result column= "deduct_cause" jdbcType= "VARCHAR" property= "deductCause" />
<result column= "final_score" jdbcType= "DECIMAL" property= "finalScore" />
<result column= "final_score" jdbcType= "DECIMAL" property= "finalScore" />
@ -76,8 +76,8 @@
</where>
</where>
</sql>
</sql>
<sql id= "Base_Column_List" >
<sql id= "Base_Column_List" >
id, should_times, compete_time_id, project_id, site_order_id, chief_judgment_score,
id, compete_time_id, project_id, site_order_id, chief_judgment_score, judgment_a_score,
judgment_a_score, judgment_b_score2 , deduct_times, deduct_cause, final_score, created_at,
judgment_b_score2, should_times , deduct_times, deduct_cause, final_score, created_at,
updated_at, rec_status
updated_at, rec_status
</sql>
</sql>
<select id= "selectByExample" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreExample" resultMap= "BaseResultMap" >
<select id= "selectByExample" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreExample" resultMap= "BaseResultMap" >
@ -94,17 +94,15 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select id= "selectByPrimaryKey" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreKey " resultMap= "BaseResultMap" >
<select id= "selectByPrimaryKey" parameterType= "java.lang.Long " resultMap= "BaseResultMap" >
select
select
<include refid= "Base_Column_List" />
<include refid= "Base_Column_List" />
from t_compete_count_score
from t_compete_count_score
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
and should_times = #{shouldTimes,jdbcType=INTEGER}
</select>
</select>
<delete id= "deleteByPrimaryKey" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreKey " >
<delete id= "deleteByPrimaryKey" parameterType= "java.lang.Long " >
delete from t_compete_count_score
delete from t_compete_count_score
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
and should_times = #{shouldTimes,jdbcType=INTEGER}
</delete>
</delete>
<delete id= "deleteByExample" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreExample" >
<delete id= "deleteByExample" parameterType= "com.ccsens.mt.bean.po.CompeteCountScoreExample" >
delete from t_compete_count_score
delete from t_compete_count_score
@ -113,14 +111,14 @@
</if>
</if>
</delete>
</delete>
<insert id= "insert" parameterType= "com.ccsens.mt.bean.po.CompeteCountScore" >
<insert id= "insert" parameterType= "com.ccsens.mt.bean.po.CompeteCountScore" >
insert into t_compete_count_score (id, should_times, compete_time_id,
insert into t_compete_count_score (id, compete_time_id, project_id,
project_id, site_order_id, chief_judgment_score,
site_order_id, chief_judgment_score, judgment_a_score,
judgment_a_score, judgment_b_score2 , deduct_times,
judgment_b_score2, should_times , deduct_times,
deduct_cause, final_score, created_at,
deduct_cause, final_score, created_at,
updated_at, rec_status)
updated_at, rec_status)
values (#{id,jdbcType=BIGINT}, #{shouldTimes,jdbcType=INTEGER}, #{competeTime Id,jdbcType=BIGINT},
values (#{id,jdbcType=BIGINT}, #{competeTimeId,jdbcType=BIGINT}, #{project Id,jdbcType=BIGINT},
#{projectId,jdbcType=BIGINT}, #{ siteOrderId,jdbcType=BIGINT}, #{chiefJudgmentScore,jdbcType=DECIMAL},
#{siteOrderId,jdbcType=BIGINT}, #{chiefJudgmentScore,jdbcType=DECIMAL}, #{judgmentAScore,jdbcType=DECIMAL},
#{judgmentAScore,jdbcType=DECIMAL}, #{judgmentBScore2,jdbcType=DECIMAL }, #{deductTimes,jdbcType=INTEGER},
#{judgmentBScore2,jdbcType=DECIMAL}, #{shouldTimes,jdbcType=INTEGER }, #{deductTimes,jdbcType=INTEGER},
#{deductCause,jdbcType=VARCHAR}, #{finalScore,jdbcType=DECIMAL}, #{createdAt,jdbcType=TIMESTAMP},
#{deductCause,jdbcType=VARCHAR}, #{finalScore,jdbcType=DECIMAL}, #{createdAt,jdbcType=TIMESTAMP},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
</insert>
</insert>
@ -130,9 +128,6 @@
<if test= "id != null" >
<if test= "id != null" >
id,
id,
</if>
</if>
<if test= "shouldTimes != null" >
should_times,
</if>
<if test= "competeTimeId != null" >
<if test= "competeTimeId != null" >
compete_time_id,
compete_time_id,
</if>
</if>
@ -151,6 +146,9 @@
<if test= "judgmentBScore2 != null" >
<if test= "judgmentBScore2 != null" >
judgment_b_score2,
judgment_b_score2,
</if>
</if>
<if test= "shouldTimes != null" >
should_times,
</if>
<if test= "deductTimes != null" >
<if test= "deductTimes != null" >
deduct_times,
deduct_times,
</if>
</if>
@ -174,9 +172,6 @@
<if test= "id != null" >
<if test= "id != null" >
#{id,jdbcType=BIGINT},
#{id,jdbcType=BIGINT},
</if>
</if>
<if test= "shouldTimes != null" >
#{shouldTimes,jdbcType=INTEGER},
</if>
<if test= "competeTimeId != null" >
<if test= "competeTimeId != null" >
#{competeTimeId,jdbcType=BIGINT},
#{competeTimeId,jdbcType=BIGINT},
</if>
</if>
@ -195,6 +190,9 @@
<if test= "judgmentBScore2 != null" >
<if test= "judgmentBScore2 != null" >
#{judgmentBScore2,jdbcType=DECIMAL},
#{judgmentBScore2,jdbcType=DECIMAL},
</if>
</if>
<if test= "shouldTimes != null" >
#{shouldTimes,jdbcType=INTEGER},
</if>
<if test= "deductTimes != null" >
<if test= "deductTimes != null" >
#{deductTimes,jdbcType=INTEGER},
#{deductTimes,jdbcType=INTEGER},
</if>
</if>
@ -227,9 +225,6 @@
<if test= "record.id != null" >
<if test= "record.id != null" >
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=BIGINT},
</if>
</if>
<if test= "record.shouldTimes != null" >
should_times = #{record.shouldTimes,jdbcType=INTEGER},
</if>
<if test= "record.competeTimeId != null" >
<if test= "record.competeTimeId != null" >
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
</if>
</if>
@ -248,6 +243,9 @@
<if test= "record.judgmentBScore2 != null" >
<if test= "record.judgmentBScore2 != null" >
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL},
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL},
</if>
</if>
<if test= "record.shouldTimes != null" >
should_times = #{record.shouldTimes,jdbcType=INTEGER},
</if>
<if test= "record.deductTimes != null" >
<if test= "record.deductTimes != null" >
deduct_times = #{record.deductTimes,jdbcType=INTEGER},
deduct_times = #{record.deductTimes,jdbcType=INTEGER},
</if>
</if>
@ -274,13 +272,13 @@
<update id= "updateByExample" parameterType= "map" >
<update id= "updateByExample" parameterType= "map" >
update t_compete_count_score
update t_compete_count_score
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=BIGINT},
should_times = #{record.shouldTimes,jdbcType=INTEGER},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
site_order_id = #{record.siteOrderId,jdbcType=BIGINT},
site_order_id = #{record.siteOrderId,jdbcType=BIGINT},
chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=DECIMAL},
chief_judgment_score = #{record.chiefJudgmentScore,jdbcType=DECIMAL},
judgment_a_score = #{record.judgmentAScore,jdbcType=DECIMAL},
judgment_a_score = #{record.judgmentAScore,jdbcType=DECIMAL},
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL},
judgment_b_score2 = #{record.judgmentBScore2,jdbcType=DECIMAL},
should_times = #{record.shouldTimes,jdbcType=INTEGER},
deduct_times = #{record.deductTimes,jdbcType=INTEGER},
deduct_times = #{record.deductTimes,jdbcType=INTEGER},
deduct_cause = #{record.deductCause,jdbcType=VARCHAR},
deduct_cause = #{record.deductCause,jdbcType=VARCHAR},
final_score = #{record.finalScore,jdbcType=DECIMAL},
final_score = #{record.finalScore,jdbcType=DECIMAL},
@ -312,6 +310,9 @@
<if test= "judgmentBScore2 != null" >
<if test= "judgmentBScore2 != null" >
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL},
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL},
</if>
</if>
<if test= "shouldTimes != null" >
should_times = #{shouldTimes,jdbcType=INTEGER},
</if>
<if test= "deductTimes != null" >
<if test= "deductTimes != null" >
deduct_times = #{deductTimes,jdbcType=INTEGER},
deduct_times = #{deductTimes,jdbcType=INTEGER},
</if>
</if>
@ -332,7 +333,6 @@
</if>
</if>
</set>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
and should_times = #{shouldTimes,jdbcType=INTEGER}
</update>
</update>
<update id= "updateByPrimaryKey" parameterType= "com.ccsens.mt.bean.po.CompeteCountScore" >
<update id= "updateByPrimaryKey" parameterType= "com.ccsens.mt.bean.po.CompeteCountScore" >
update t_compete_count_score
update t_compete_count_score
@ -342,6 +342,7 @@
chief_judgment_score = #{chiefJudgmentScore,jdbcType=DECIMAL},
chief_judgment_score = #{chiefJudgmentScore,jdbcType=DECIMAL},
judgment_a_score = #{judgmentAScore,jdbcType=DECIMAL},
judgment_a_score = #{judgmentAScore,jdbcType=DECIMAL},
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL},
judgment_b_score2 = #{judgmentBScore2,jdbcType=DECIMAL},
should_times = #{shouldTimes,jdbcType=INTEGER},
deduct_times = #{deductTimes,jdbcType=INTEGER},
deduct_times = #{deductTimes,jdbcType=INTEGER},
deduct_cause = #{deductCause,jdbcType=VARCHAR},
deduct_cause = #{deductCause,jdbcType=VARCHAR},
final_score = #{finalScore,jdbcType=DECIMAL},
final_score = #{finalScore,jdbcType=DECIMAL},
@ -349,6 +350,5 @@
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
and should_times = #{shouldTimes,jdbcType=INTEGER}
</update>
</update>
</mapper>
</mapper>