xiangpei
2024-04-23 ab4e150d41e0200b64a75c59b668a9385b7782fd
ycl-server/src/main/resources/mapper/zgyw/ContractScoreMapper.xml
File was renamed from ycl-server/src/main/resources/mapper/zgyw/DefaultScoreMapper.xml
@@ -3,8 +3,8 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycl.platform.mapper.DefaultScoreMapper">
    <resultMap type="com.ycl.platform.domain.entity.DefaultScore" id="DefaultScoreResult">
    <resultMap type="com.ycl.platform.domain.entity.ContractScore" id="DefaultScoreResult">
        <result property="id"    column="id"    />
        <result property="publishId"    column="publish_id"    />
        <result property="templateId"    column="template_id"    />
@@ -19,24 +19,24 @@
    </resultMap>
    <sql id="selectDefaultScoreVo">
        select id, publish_id, template_id, num, score, create_user, create_user_name, update_user, update_user_name, create_time, update_time from t_default_score
        select id, publish_id, template_id, num, score, create_user, create_user_name, update_user, update_user_name, create_time, update_time from t_contract_score
    </sql>
    <select id="selectDefaultScoreList" resultMap="DefaultScoreResult">
        <include refid="selectDefaultScoreVo"/>
        <where>
        <where>
            <if test="publishId != null "> and publish_id = #{publishId}</if>
            <if test="templateId != null "> and template_id = #{templateId}</if>
        </where>
    </select>
    <select id="selectDefaultScoreById" resultMap="DefaultScoreResult">
        <include refid="selectDefaultScoreVo"/>
        where id = #{id}
    </select>
    <insert id="insertDefaultScore"  useGeneratedKeys="true" keyProperty="id">
        insert into t_default_score
        insert into t_contract_score
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="publishId != null">publish_id,</if>
            <if test="templateId != null">template_id,</if>
@@ -64,7 +64,7 @@
    </insert>
    <update id="updateDefaultScore">
        update t_default_score
        update t_contract_score
        <trim prefix="SET" suffixOverrides=",">
            <if test="publishId != null">publish_id = #{publishId},</if>
            <if test="templateId != null">template_id = #{templateId},</if>
@@ -81,13 +81,13 @@
    </update>
    <delete id="deleteDefaultScoreById">
        delete from t_default_score where id = #{id}
        delete from t_contract_score where id = #{id}
    </delete>
    <delete id="deleteDefaultScoreByIds">
        delete from t_default_score where id in
        delete from t_contract_score where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>
</mapper>