<?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.example.his.api.db.dao.SystemDao">

    <resultMap id="BaseResultMap" type="com.example.his.api.db.pojo.SystemEntity">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="item" column="item" jdbcType="VARCHAR"/>
            <result property="value" column="value" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
    </resultMap>

<!--    <sql id="Base_Column_List">-->
<!--        id,item,value,-->
<!--        remark-->
<!--    </sql>-->

    <!-- 系统设置-查询 -->
    <select id="searchAll" resultType="com.example.his.api.db.pojo.SystemEntity">
        SELECT id, item, `value`
        FROM tb_system
    </select>

    <!-- 系统设置-更新系统设置 -->
    <update id="update" parameterType="Map">
        UPDATE tb_system
        SET value = #{value}
        WHERE item = #{item}
    </update>


</mapper>
