cjl
2023-07-07 9f965bfa801be97c4683ae53bcb4ce897228fd14
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>