cjl
2023-07-28 6fe3e9841f25481cf78bd1f102886d4ce35e9e17
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>