| | |
| | | <result column="data_id" jdbcType="INTEGER" property="dataId" /> |
| | | <result column="group_id" jdbcType="INTEGER" property="groupId" /> |
| | | <result column="cell_id" jdbcType="INTEGER" property="cellId" /> |
| | | <result column="PM25" jdbcType="REAL" property="pm25" /> |
| | | <result column="rank" jdbcType="INTEGER" property="rank" /> |
| | | <result column="NO2" jdbcType="REAL" property="no2" /> |
| | | <result column="CO" jdbcType="REAL" property="co" /> |
| | | <result column="H2S" jdbcType="REAL" property="h2s" /> |
| | | <result column="SO2" jdbcType="REAL" property="so2" /> |
| | | <result column="O3" jdbcType="REAL" property="o3" /> |
| | | <result column="PM25" jdbcType="REAL" property="pm25" /> |
| | | <result column="PM10" jdbcType="REAL" property="pm10" /> |
| | | <result column="temperature" jdbcType="REAL" property="temperature" /> |
| | | <result column="humidity" jdbcType="REAL" property="humidity" /> |
| | | <result column="VOC" jdbcType="REAL" property="voc" /> |
| | | <result column="NOI" jdbcType="REAL" property="noi" /> |
| | | <result column="NO" jdbcType="REAL" property="no" /> |
| | | <result column="wind_speed" jdbcType="REAL" property="windSpeed" /> |
| | | <result column="wind_direction" jdbcType="REAL" property="windDirection" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | id, data_id, group_id, cell_id, PM25, rank |
| | | id, data_id, group_id, cell_id, rank, NO2, CO, H2S, SO2, O3, PM25, PM10, temperature, |
| | | humidity, VOC, NOI, NO, wind_speed, wind_direction |
| | | </sql> |
| | | |
| | | <!-- 添加批量更新PM25的函数 --> |
| | | <update id="updatePM25Batch" parameterType="java.util.List"> |
| | | <foreach collection="list" item="item" separator=";"> |
| | | UPDATE grid_data_detail |
| | | SET PM25 = #{item.pm25} |
| | | WHERE data_id = #{item.dataId} |
| | | AND group_id = #{item.groupId} |
| | | AND cell_id = #{item.cellId} |
| | | </foreach> |
| | | </update> |
| | | </mapper> |