liusheng
2024-07-26 0ff7a8f69570b3fc7418c35f3d6e273ef4f73f20
smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
@@ -18,11 +18,13 @@
        <result property="pid" column="pid"/>
        <result property="guid" column="guid"/>
        <result property="seqno" column="seqno"/>
        <result property="hetype" column="hetype"/>
    </resultMap>
    <sql id="selectHeLibraryAssortVo">
        select id,
               assortname,
               hetype,
               orgid,
               del_flag,
               update_by,
@@ -49,6 +51,7 @@
            <if test="pid != null ">and pid = #{pid}</if>
            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
            <if test="seqno != null  ">and seqno = #{seqno}</if>
            <if test="hetype != null  ">and hetype = #{hetype}</if>
        </where>
        order by seqno asc
@@ -81,6 +84,7 @@
            <if test="pid != null">pid,</if>
            <if test="guid != null">guid,</if>
            <if test="seqno != null">seqno,</if>
            <if test="hetype != null">hetype,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="assortname != null">#{assortname},</if>
@@ -95,6 +99,7 @@
            <if test="pid != null">#{pid},</if>
            <if test="guid != null">#{guid},</if>
            <if test="seqno != null">#{seqno},</if>
            <if test="hetype != null">#{hetype},</if>
        </trim>
    </insert>
@@ -112,6 +117,7 @@
            <if test="uploadTime != null">upload_time = #{uploadTime},</if>
            <if test="pid != null">pid = #{pid},</if>
            <if test="guid != null">guid = #{guid},</if>
            <if test="hetype != null">hetype = #{hetype},</if>
        </trim>
        where id = #{id}
    </update>
@@ -130,4 +136,4 @@
            #{id}
        </foreach>
    </delete>
</mapper>
</mapper>