liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
smartor/src/main/resources/mapper/smartor/HeLocallibraryMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.smartor.mapper.HeLocallibraryMapper">
    
    <resultMap type="HeLocallibrary" id="HeLocallibraryResult">
    <resultMap type="com.smartor.domain.HeLocallibrary" id="HeLocallibraryResult">
        <result property="id"    column="id"    />
        <result property="preachcategoryid"    column="preachcategoryid"    />
        <result property="preachname"    column="preachname"    />
@@ -33,7 +33,7 @@
        select id, preachcategoryid, preachname, version, preachform, preachdescription, preachcontent, templateid, preachcode, centerlibraryid, isenable, orgid, update_by, update_time, del_flag, create_by, create_time, isupload, upload_time, classification, islocal, centerlibrarycode from he_locallibrary
    </sql>
    <select id="selectHeLocallibraryList" parameterType="HeLocallibrary" resultMap="HeLocallibraryResult">
    <select id="selectHeLocallibraryList" parameterType="com.smartor.domain.HeLocallibrary" resultMap="HeLocallibraryResult">
        <include refid="selectHeLocallibraryVo"/>
        <where>  
            <if test="preachcategoryid != null "> and preachcategoryid = #{preachcategoryid}</if>
@@ -60,7 +60,7 @@
        where id = #{id}
    </select>
        
    <insert id="insertHeLocallibrary" parameterType="HeLocallibrary" useGeneratedKeys="true" keyProperty="id">
    <insert id="insertHeLocallibrary" parameterType="com.smartor.domain.HeLocallibrary" useGeneratedKeys="true" keyProperty="id">
        insert into he_locallibrary
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="preachcategoryid != null">preachcategoryid,</if>
@@ -110,7 +110,7 @@
         </trim>
    </insert>
    <update id="updateHeLocallibrary" parameterType="HeLocallibrary">
    <update id="updateHeLocallibrary" parameterType="com.smartor.domain.HeLocallibrary">
        update he_locallibrary
        <trim prefix="SET" suffixOverrides=",">
            <if test="preachcategoryid != null">preachcategoryid = #{preachcategoryid},</if>