yangys
2024-09-27 26f8e5990686bdba2119024a260d986266506757
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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>