<?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.newfiber.api.pc.dao.newmonitoring.StationConfigMapper" > <resultMap id="BaseResultMap" type="com.newfiber.api.pc.model.monitor.StationConfig" > <result column="id" property="id" jdbcType="BIGINT" /> <result column="st_code" property="stCode" jdbcType="VARCHAR" /> <result column="key" property="key" jdbcType="VARCHAR" /> <result column="value" property="value" jdbcType="VARCHAR" /> <result column="is_push" property="isPush" jdbcType="TINYINT" /> <result column="tt" property="tt" jdbcType="VARCHAR" /> <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> </resultMap> <select id="selectConfigListByStCode" resultMap="BaseResultMap"> SELECT sc.st_code,sc.key,sc.value FROM nf_monitor.station_config sc where sc.st_code = #{stCode,jdbcType=VARCHAR} </select> <select id="selectHead" resultType="com.newfiber.api.pc.model.monitor.SiteProperty"> select Lower(sp.code_ascll) as codeAscii,concat(sp.code_property,IFNULL(sp.Unit,'')) as codeProperty,order_no as orderNo from nf_monitor.station_config sc inner join nf_monitor.site_property_config sp on sc.key = LOWER(sp.code_ascll) where sc.st_code = #{stCode} and sp.code_ascll != 'STT' and sp.code_ascll != 'UT' and sp.code_ascll != 'STT' and sp.code_ascll != 'ZT' </select> </mapper>