jinpengyong
2022-01-20 f052b63c0428d4f3f723e9c729f19a62bfe3172e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.moral.api.mapper.CityAqiYearlyMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.moral.api.entity.CityAqiYearly">
        <result column="city_code" property="cityCode"/>
        <result column="time" property="time"/>
        <result column="value" property="value"/>
    </resultMap>
 
    <insert id="insertCityAqiYearly">
        INSERT INTO city_aqi_yearly
        VALUES
        <foreach collection="list" item="item" separator=",">
            (#{item.cityCode},#{item.time},#{item.value})
        </foreach>
    </insert>
 
</mapper>