|
@@ -5,144 +5,154 @@
|
|
|
<mapper namespace="com.jjt.hl.mapper.HlScoreMapper">
|
|
|
|
|
|
<resultMap type="HlScore" id="HlScoreResult">
|
|
|
- <result property="hlScoreId" column="HL_SCORE_ID"/>
|
|
|
- <result property="modelId" column="MODEL_ID"/>
|
|
|
- <result property="hlScore" column="HL_SCORE"/>
|
|
|
- <result property="hlType" column="HL_TYPE"/>
|
|
|
- <result property="hlDate" column="HL_DATE"/>
|
|
|
- <result property="createBy" column="CREATE_BY"/>
|
|
|
- <result property="createTime" column="CREATE_TIME"/>
|
|
|
- <result property="updateBy" column="UPDATE_BY"/>
|
|
|
- <result property="updateTime" column="UPDATE_TIME"/>
|
|
|
- <result property="remark" column="REMARK"/>
|
|
|
+ <result property="hlScoreId" column="HL_SCORE_ID"/>
|
|
|
+ <result property="modelId" column="MODEL_ID"/>
|
|
|
+ <result property="hlScore" column="HL_SCORE"/>
|
|
|
+ <result property="hlType" column="HL_TYPE"/>
|
|
|
+ <result property="hlDate" column="HL_DATE"/>
|
|
|
+ <result property="createBy" column="CREATE_BY"/>
|
|
|
+ <result property="createTime" column="CREATE_TIME"/>
|
|
|
+ <result property="updateBy" column="UPDATE_BY"/>
|
|
|
+ <result property="updateTime" column="UPDATE_TIME"/>
|
|
|
+ <result property="remark" column="REMARK"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectHlScoreVo">
|
|
|
- select HL_SCORE_ID, MODEL_ID, HL_SCORE, HL_TYPE, HL_DATE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK
|
|
|
+ select HL_SCORE_ID,
|
|
|
+ MODEL_ID,
|
|
|
+ HL_SCORE,
|
|
|
+ HL_TYPE,
|
|
|
+ HL_DATE,
|
|
|
+ CREATE_BY,
|
|
|
+ CREATE_TIME,
|
|
|
+ UPDATE_BY,
|
|
|
+ UPDATE_TIME,
|
|
|
+ REMARK
|
|
|
from hl_score
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectHlScoreList" parameterType="HlScore" resultMap="HlScoreResult">
|
|
|
<include refid="selectHlScoreVo"/>
|
|
|
<where>
|
|
|
- <if test="modelId != null ">
|
|
|
- and MODEL_ID = #{modelId}
|
|
|
- </if>
|
|
|
- <if test="hlScore != null ">
|
|
|
- and HL_SCORE = #{hlScore}
|
|
|
- </if>
|
|
|
- <if test="hlType != null and hlType != ''">
|
|
|
- and HL_TYPE = #{hlType}
|
|
|
- </if>
|
|
|
- <if test="hlDate != null ">
|
|
|
- and HL_DATE = #{hlDate}
|
|
|
- </if>
|
|
|
- <if test="createBy != null and createBy != ''">
|
|
|
- and CREATE_BY = #{createBy}
|
|
|
- </if>
|
|
|
- <if test="createTime != null ">
|
|
|
- and CREATE_TIME = #{createTime}
|
|
|
- </if>
|
|
|
- <if test="updateBy != null and updateBy != ''">
|
|
|
- and UPDATE_BY = #{updateBy}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null ">
|
|
|
- and UPDATE_TIME = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="remark != null and remark != ''">
|
|
|
- and REMARK = #{remark}
|
|
|
- </if>
|
|
|
+ <if test="modelId != null ">
|
|
|
+ and MODEL_ID = #{modelId}
|
|
|
+ </if>
|
|
|
+ <if test="hlScore != null ">
|
|
|
+ and HL_SCORE = #{hlScore}
|
|
|
+ </if>
|
|
|
+ <if test="hlType != null and hlType != ''">
|
|
|
+ and HL_TYPE = #{hlType}
|
|
|
+ </if>
|
|
|
+ <if test="hlDate != null ">
|
|
|
+ and HL_DATE = #{hlDate}
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null and createBy != ''">
|
|
|
+ and CREATE_BY = #{createBy}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null ">
|
|
|
+ and CREATE_TIME = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateBy != null and updateBy != ''">
|
|
|
+ and UPDATE_BY = #{updateBy}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null ">
|
|
|
+ and UPDATE_TIME = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ and REMARK = #{remark}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectHlScoreByHlScoreId" parameterType="Long"
|
|
|
resultMap="HlScoreResult">
|
|
|
- <include refid="selectHlScoreVo"/>
|
|
|
- where HL_SCORE_ID = #{hlScoreId}
|
|
|
+ <include refid="selectHlScoreVo"/>
|
|
|
+ where HL_SCORE_ID = #{hlScoreId}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertHlScore" parameterType="HlScore" useGeneratedKeys="true"
|
|
|
keyProperty="hlScoreId">
|
|
|
insert into hl_score
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="modelId != null">MODEL_ID,
|
|
|
- </if>
|
|
|
- <if test="hlScore != null">HL_SCORE,
|
|
|
- </if>
|
|
|
- <if test="hlType != null">HL_TYPE,
|
|
|
- </if>
|
|
|
- <if test="hlDate != null">HL_DATE,
|
|
|
- </if>
|
|
|
- <if test="createBy != null">CREATE_BY,
|
|
|
- </if>
|
|
|
- <if test="createTime != null">CREATE_TIME,
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">UPDATE_BY,
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">UPDATE_TIME,
|
|
|
- </if>
|
|
|
- <if test="remark != null">REMARK,
|
|
|
- </if>
|
|
|
+ <if test="modelId != null">MODEL_ID,
|
|
|
+ </if>
|
|
|
+ <if test="hlScore != null">HL_SCORE,
|
|
|
+ </if>
|
|
|
+ <if test="hlType != null">HL_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="hlDate != null">HL_DATE,
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null">CREATE_BY,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">CREATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="updateBy != null">UPDATE_BY,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">UPDATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">REMARK,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="modelId != null">#{modelId},
|
|
|
- </if>
|
|
|
- <if test="hlScore != null">#{hlScore},
|
|
|
- </if>
|
|
|
- <if test="hlType != null">#{hlType},
|
|
|
- </if>
|
|
|
- <if test="hlDate != null">#{hlDate},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">#{createBy},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">#{createTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">#{updateBy},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">#{updateTime},
|
|
|
- </if>
|
|
|
- <if test="remark != null">#{remark},
|
|
|
- </if>
|
|
|
+ <if test="modelId != null">#{modelId},
|
|
|
+ </if>
|
|
|
+ <if test="hlScore != null">#{hlScore},
|
|
|
+ </if>
|
|
|
+ <if test="hlType != null">#{hlType},
|
|
|
+ </if>
|
|
|
+ <if test="hlDate != null">#{hlDate},
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null">#{createBy},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">#{createTime},
|
|
|
+ </if>
|
|
|
+ <if test="updateBy != null">#{updateBy},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">#{updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">#{remark},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateHlScore" parameterType="HlScore">
|
|
|
update hl_score
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="modelId != null">MODEL_ID =
|
|
|
- #{modelId},
|
|
|
- </if>
|
|
|
- <if test="hlScore != null">HL_SCORE =
|
|
|
- #{hlScore},
|
|
|
- </if>
|
|
|
- <if test="hlType != null">HL_TYPE =
|
|
|
- #{hlType},
|
|
|
- </if>
|
|
|
- <if test="hlDate != null">HL_DATE =
|
|
|
- #{hlDate},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">CREATE_BY =
|
|
|
- #{createBy},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">CREATE_TIME =
|
|
|
- #{createTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">UPDATE_BY =
|
|
|
- #{updateBy},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">UPDATE_TIME =
|
|
|
- #{updateTime},
|
|
|
- </if>
|
|
|
- <if test="remark != null">REMARK =
|
|
|
- #{remark},
|
|
|
- </if>
|
|
|
+ <if test="modelId != null">MODEL_ID =
|
|
|
+ #{modelId},
|
|
|
+ </if>
|
|
|
+ <if test="hlScore != null">HL_SCORE =
|
|
|
+ #{hlScore},
|
|
|
+ </if>
|
|
|
+ <if test="hlType != null">HL_TYPE =
|
|
|
+ #{hlType},
|
|
|
+ </if>
|
|
|
+ <if test="hlDate != null">HL_DATE =
|
|
|
+ #{hlDate},
|
|
|
+ </if>
|
|
|
+ <if test="createBy != null">CREATE_BY =
|
|
|
+ #{createBy},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">CREATE_TIME =
|
|
|
+ #{createTime},
|
|
|
+ </if>
|
|
|
+ <if test="updateBy != null">UPDATE_BY =
|
|
|
+ #{updateBy},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">UPDATE_TIME =
|
|
|
+ #{updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">REMARK =
|
|
|
+ #{remark},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
where HL_SCORE_ID = #{hlScoreId}
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteHlScoreByHlScoreId" parameterType="Long">
|
|
|
delete
|
|
|
- from hl_score where HL_SCORE_ID = #{hlScoreId}
|
|
|
+ from hl_score
|
|
|
+ where HL_SCORE_ID = #{hlScoreId}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteHlScoreByHlScoreIds" parameterType="String">
|