|
|
@ -11,7 +11,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="content" column="content" /> |
|
|
<result property="content" column="content" /> |
|
|
<result property="flag" column="flag" /> |
|
|
<result property="flag" column="flag" /> |
|
|
<result property="srot" column="srot" /> |
|
|
<result property="srot" column="srot" /> |
|
|
<result property="state" column="state" /> |
|
|
<result property="type" column="type" /> |
|
|
|
|
|
<result property="pinned" column="pinned" /> |
|
|
|
|
|
<result property="status" column="status" /> |
|
|
<result property="publishdate" column="publishDate" /> |
|
|
<result property="publishdate" column="publishDate" /> |
|
|
<result property="publishstate" column="publishState" /> |
|
|
<result property="publishstate" column="publishState" /> |
|
|
<result property="examinestate" column="examineState" /> |
|
|
<result property="examinestate" column="examineState" /> |
|
|
@ -22,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectKnowledgeLibraryVo"> |
|
|
<sql id="selectKnowledgeLibraryVo"> |
|
|
select guid, title, sub_title, content, flag, srot, state, publishDate, publishState, examineState, creator, create_time, updator, update_time from knowledge_library |
|
|
select guid, title, sub_title, content, flag, srot, type, pinned, status, publishDate, publishState, examineState, creator, create_time, updator, update_time from knowledge_library |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectKnowledgeLibraryList" parameterType="KnowledgeLibrary" resultMap="KnowledgeLibraryResult"> |
|
|
<select id="selectKnowledgeLibraryList" parameterType="KnowledgeLibrary" resultMap="KnowledgeLibraryResult"> |
|
|
@ -33,7 +35,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="content != null and content != ''"> and content = #{content}</if> |
|
|
<if test="content != null and content != ''"> and content = #{content}</if> |
|
|
<if test="flag != null and flag != ''"> and flag = #{flag}</if> |
|
|
<if test="flag != null and flag != ''"> and flag = #{flag}</if> |
|
|
<if test="srot != null "> and srot = #{srot}</if> |
|
|
<if test="srot != null "> and srot = #{srot}</if> |
|
|
<if test="state != null and state != ''"> and state = #{state}</if> |
|
|
<if test="type != null "> and type = #{type}</if> |
|
|
|
|
|
<if test="pinned != null "> and pinned = #{pinned}</if> |
|
|
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if> |
|
|
<if test="publishdate != null and publishdate != ''"> and publishDate = #{publishdate}</if> |
|
|
<if test="publishdate != null and publishdate != ''"> and publishDate = #{publishdate}</if> |
|
|
<if test="publishstate != null "> and publishState = #{publishstate}</if> |
|
|
<if test="publishstate != null "> and publishState = #{publishstate}</if> |
|
|
<if test="examinestate != null "> and examineState = #{examinestate}</if> |
|
|
<if test="examinestate != null "> and examineState = #{examinestate}</if> |
|
|
@ -56,7 +60,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="content != null and content != ''">content,</if> |
|
|
<if test="content != null and content != ''">content,</if> |
|
|
<if test="flag != null and flag != ''">flag,</if> |
|
|
<if test="flag != null and flag != ''">flag,</if> |
|
|
<if test="srot != null ">srot,</if> |
|
|
<if test="srot != null ">srot,</if> |
|
|
<if test="state != null and state != ''">state,</if> |
|
|
<if test="type != null ">type,</if> |
|
|
|
|
|
<if test="pinned != null ">pinned,</if> |
|
|
|
|
|
<if test="status != null and status != ''">status,</if> |
|
|
<if test="publishdate != null and publishdate != ''">publishDate,</if> |
|
|
<if test="publishdate != null and publishdate != ''">publishDate,</if> |
|
|
<if test="publishstate != null ">publishState,</if> |
|
|
<if test="publishstate != null ">publishState,</if> |
|
|
<if test="examinestate != null ">examineState,</if> |
|
|
<if test="examinestate != null ">examineState,</if> |
|
|
@ -72,7 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="content != null and content != ''">#{content},</if> |
|
|
<if test="content != null and content != ''">#{content},</if> |
|
|
<if test="flag != null and flag != ''">#{flag},</if> |
|
|
<if test="flag != null and flag != ''">#{flag},</if> |
|
|
<if test="srot != null ">#{srot},</if> |
|
|
<if test="srot != null ">#{srot},</if> |
|
|
<if test="state != null and state != ''">#{state},</if> |
|
|
<if test="type != null ">#{type},</if> |
|
|
|
|
|
<if test="pinned != null ">#{pinned},</if> |
|
|
|
|
|
<if test="status != null and status != ''">#{status},</if> |
|
|
<if test="publishdate != null and publishdate != ''">#{publishdate},</if> |
|
|
<if test="publishdate != null and publishdate != ''">#{publishdate},</if> |
|
|
<if test="publishstate != null ">#{publishstate},</if> |
|
|
<if test="publishstate != null ">#{publishstate},</if> |
|
|
<if test="examinestate != null ">#{examinestate},</if> |
|
|
<if test="examinestate != null ">#{examinestate},</if> |
|
|
@ -91,7 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="content != null and content != ''">content = #{content},</if> |
|
|
<if test="content != null and content != ''">content = #{content},</if> |
|
|
<if test="flag != null and flag != ''">flag = #{flag},</if> |
|
|
<if test="flag != null and flag != ''">flag = #{flag},</if> |
|
|
<if test="srot != null ">srot = #{srot},</if> |
|
|
<if test="srot != null ">srot = #{srot},</if> |
|
|
<if test="state != null and state != ''">state = #{state},</if> |
|
|
<if test="type != null ">type = #{type},</if> |
|
|
|
|
|
<if test="pinned != null ">pinned = #{pinned},</if> |
|
|
|
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
<if test="publishdate != null and publishdate != ''">publishDate = #{publishdate},</if> |
|
|
<if test="publishdate != null and publishdate != ''">publishDate = #{publishdate},</if> |
|
|
<if test="publishstate != null ">publishState = #{publishstate},</if> |
|
|
<if test="publishstate != null ">publishState = #{publishstate},</if> |
|
|
<if test="examinestate != null ">examineState = #{examinestate},</if> |
|
|
<if test="examinestate != null ">examineState = #{examinestate},</if> |
|
|
@ -114,4 +124,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</foreach> |
|
|
</foreach> |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
|
|
|
<update id="updatePublishState" parameterType="String"> |
|
|
|
|
|
update knowledge_library |
|
|
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
|
|
<if test="state == 1">publishDate = #{publishdate},</if> |
|
|
|
|
|
<if test="state != null">publishState = #{state},</if> |
|
|
|
|
|
</trim> |
|
|
|
|
|
where guid in |
|
|
|
|
|
<foreach item="guid" collection="guids" open="(" separator="," close=")"> |
|
|
|
|
|
#{guid} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |