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
wangwenrui db00cafd84 新开分支整理代码:
1.帮助文档修改功能
2.帮助文档与上一版对比功能
3.单点问题解决
4.markdown帮助文档

Conflicts:
	src/main/resources/messages/message_en.properties
	src/main/resources/messages/message_ru.properties
	src/main/resources/messages/message_zh_CN.properties
2019-03-12 09:36:17 +08:00

34 lines
1.7 KiB
XML

<?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>