insert into psdc_statistics_year(year_id,device_id,device_name,year_date,month_01,month_02,month_03,month_04,month_05,month_06,month_07,month_08,month_09,month_10,month_11,month_12)
values (#{yearId},#{deviceId},#{deviceName},#{yearDate},#{month01},#{month02},#{month03},#{month04},#{month05},#{month06},#{month07},#{month08},#{month09},#{month10},#{month11},#{month12})
Insert into psdc_statistics_year(
year_date,
device_id,
device_name
,month_01,
month_02,
month_03,
month_04,
month_05,
month_06,
month_07,
month_08,
month_09,
month_10,
month_11,
month_12,
)values(
#{yearDate},
#{deviceId},
#{deviceName}
,#{month01},
#{month02},
#{month03},
#{month04},
#{month05},
#{month06},
#{month07},
#{month08},
#{month09},
#{month10},
#{month11},
#{month12},
)
update psdc_statistics_year
device_id = #{deviceId},
device_name = #{deviceName},
year_date = #{yearDate},
month_01 = #{month01},
month_02 = #{month02},
month_03 = #{month03},
month_04 = #{month04},
month_05 = #{month05},
month_06 = #{month06},
month_07 = #{month07},
month_08 = #{month08},
month_09 = #{month09},
month_10 = #{month10},
month_11 = #{month11},
month_12 = #{month12},
where year_id = #{yearId}
update psdc_statistics_year
set ${yearPoint} = #{value}
where year_id = #{yearId};
delete from psdc_statistics_year where year_id = #{yearId}