select id, strategy_id, month, charge_discharge_mode, create_by, create_time, update_by, update_time, remark, site_id, template_id, isPost from ems_strategy_time_config
insert into ems_strategy_time_config
strategy_id,
month,
charge_discharge_mode,
create_by,
create_time,
update_by,
update_time,
remark,
site_id,
template_id,
isPost,
#{strategyId},
#{month},
#{chargeDischargeMode},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{siteId},
#{templateId},
#{isPost},
update ems_strategy_time_config
strategy_id = #{strategyId},
month = #{month},
charge_discharge_mode = #{chargeDischargeMode},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
site_id = #{siteId},
template_id = #{templateId},
isPost = #{isPost},
where id = #{id}
delete from ems_strategy_time_config where id = #{id}
delete from ems_strategy_time_config where id in
#{id}
update ems_strategy_time_config set template_id = '' where template_id = #{templateId}
update ems_strategy_time_config set isPost = 1 where template_id = #{templateId}