<?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.qianwen.mdc.collect.mapper.iotdb.ProcessParamMapper">
|
|
<resultMap id="BaseResultMap" type="com.qianwen.mdc.collect.entity.iotdb.ProcessParam">
|
|
<result column="n" jdbcType="VARCHAR" property="n"/>
|
<result column="v" jdbcType="VARCHAR" property="v"/>
|
|
<result column="workstation_id" jdbcType="BIGINT" property="workstationId"/> <!-- -->
|
</resultMap>
|
|
<!-- n,v,workstation_id -->
|
<select id="mylist" resultType="com.qianwen.mdc.collect.entity.iotdb.ProcessParam"
|
parameterType="java.lang.Long">
|
select n,v,workstation_id from root.f2.process_param*
|
where workstation_id=#{workstationId}
|
order by time asc limit 1 align by device
|
|
</select>
|
|
</mapper>
|