This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/web/dao/configuration/HelpInfoDao.xml

34 lines
1.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.nis.web.dao.configuration.HelpInfoDao">
<resultMap id="helpInfoMap" type="com.nis.domain.configuration.HelpInfo" >
<id column="id" property="id" jdbcType="INTEGER"/>
<result column="file_name" property="fileName" jdbcType="VARCHAR"/>
<result column="file_comment" property="fileComment" jdbcType="VARCHAR"/>
<result column="back_file_comment" property="backFileComment" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询帮助文档内容 -->
<select id="findComment" parameterType="com.nis.domain.configuration.HelpInfo" resultMap="helpInfoMap">
select file_name,file_comment from help_document
<if test="fileName != null and fileName != ''">
where file_name=#{fileName}
</if>
</select>
<!-- 查询帮助文档上一版内容 -->
<select id="findBakComment" parameterType="com.nis.domain.configuration.HelpInfo" resultMap="helpInfoMap">
select file_name,back_file_comment from help_document
<if test="fileName != null and fileName != ''">
where file_name=#{fileName}
</if>
</select>
<!-- 获取帮助文档所有的信息 -->
<select id="findAllComment" parameterType="com.nis.domain.configuration.HelpInfo" resultMap="helpInfoMap">
select file_name,file_comment,back_file_comment from help_document
</select>
<!-- 保存修改内容,并备份 -->
<update id="saveHelpInfo" parameterType="com.nis.domain.configuration.HelpInfo">
update help_document set back_file_comment=file_comment,file_comment=#{fileComment} where file_name=#{fileName};
</update>
</mapper>