jinpengyong
2023-08-30 73a9ce282d4c4368394161f5f39a8c5fa36beb7d
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>