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