DELETE
FROM ${TABLENAME}
WHERE outputid = #{OUTPUTID}
AND datatime
BETWEEN #{STARTTIME}
AND #{ENDTIME}
INSERT INTO ${TABLENAME}
(id,outputid,datatime,datavalue)
VALUES
(#{item.id},#{item.outputId},#{item.dataTime},#{item.dataValue})
INSERT INTO ${TABLENAME}
(id,outputid,predicttime,jsonvalue,cumulant)
VALUES (#{entity.id},#{entity.outputid},#{entity.predicttime},#{entity.jsonvalue},#{entity.cumulant})