cjl
2023-10-10 e574f485b2eb4f539984d61fc442b3f051a382d8
screen-job/src/main/resources/mapper/ForecastMapper.xml
@@ -9,4 +9,12 @@
        <result column="value" property="value"/>
    </resultMap>
    <insert id="insertForecast">
        INSERT INTO forecast
        VALUES
        <foreach collection="list" item="item" separator=",">
            (#{item.cityCode},#{item.time},#{item.value})
        </foreach>
    </insert>
</mapper>