You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
3.1 KiB
XML
56 lines
3.1 KiB
XML
<?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.shxy.i2.dao.Data_SF6_QtylDao">
|
|
<resultMap id="BaseResultMap" type="com.shxy.i2.entity.Data_SF6_Qtyl">
|
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
|
<result column="maxid" jdbcType="BIGINT" property="maxid"/>
|
|
<result column="minid" jdbcType="BIGINT" property="minid"/>
|
|
<result column="eqmid" jdbcType="INTEGER" property="eqmid"/>
|
|
<result column="acquisitionTime" jdbcType="TIMESTAMP" property="acquisitiontime"/>
|
|
<result column="temperature" jdbcType="REAL" property="temperature"/>
|
|
<result column="absolutePressure" jdbcType="REAL" property="absolutepressure"/>
|
|
<result column="density" jdbcType="REAL" property="density"/>
|
|
<result column="pressure20C" jdbcType="REAL" property="pressure20c"/>
|
|
<result column="isupload" jdbcType="INTEGER" property="isupload"/>
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
</resultMap>
|
|
<resultMap id="listResultMap" type="com.shxy.i2.dto.Data_SF6_QtylDto">
|
|
<result column="eqmid" jdbcType="INTEGER" property="eqmid"/>
|
|
<collection property="list" javaType="ArrayList" ofType="com.shxy.i2.dto.Data_SF6_QtylDetailDto">
|
|
<id column="id" jdbcType="INTEGER" property="id"/>
|
|
<result column="eqmid" jdbcType="INTEGER" property="eqmid"/>
|
|
<result column="acquisitionTime" jdbcType="TIMESTAMP" property="acquisitiontime"/>
|
|
<result column="temperature" jdbcType="REAL" property="temperature"/>
|
|
<result column="absolutePressure" jdbcType="REAL" property="absolutepressure"/>
|
|
<result column="density" jdbcType="REAL" property="density"/>
|
|
<result column="pressure20C" jdbcType="REAL" property="pressure20c"/>
|
|
<result column="isupload" jdbcType="INTEGER" property="isupload"/>
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
</collection>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, eqmid, acquisitionTime, temperature, absolutePressure, density, pressure20C,
|
|
isupload, create_time, update_time
|
|
</sql>
|
|
<select id="selectUploadById" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
from data_sf6_qtyl
|
|
where id <![CDATA[>]]> #{maxid} limit 10000
|
|
</select>
|
|
<select id="selectMaxId" resultMap="BaseResultMap">
|
|
SELECT MAX( id ) AS maxid FROM data_sf6_qtyl
|
|
</select>
|
|
|
|
<select id="selectNowId" resultMap="BaseResultMap">
|
|
SELECT MAX( id ) AS maxid,MIN( id ) AS minid FROM data_sf6_qtyl where acquisitionTime >= #{date}
|
|
</select>
|
|
|
|
<delete id="deleteData" >
|
|
delete
|
|
from data_sf6_qtyl
|
|
where acquisitionTime <![CDATA[<]]> #{time}
|
|
</delete>
|
|
</mapper> |