SysConfigEntityMapper.xml 936 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.tuoren.web.layer.mapper.SysConfigMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.tuoren.web.layer.entity.SysConfigEntity">
  6. <id column="id" property="id" />
  7. <result column="name" property="name" />
  8. <result column="value" property="value" />
  9. <result column="hospital_code" property="hospitalCode" />
  10. <result column="gmt_create" property="gmtCreate" />
  11. <result column="gmt_modified" property="gmtModified" />
  12. </resultMap>
  13. <!--查询用户对应的报警的泵进行推送-->
  14. <select id="querySysConfigByHospital" resultType="com.tuoren.web.layer.entity.SysConfigEntity">
  15. select name,value from sys_config where hospital_code=#{id};
  16. </select>
  17. </mapper>