insert into index_storage (id, index_id, time_type, calc_type, calc_text, create_time,
update_time,is_pv_calc)
values (#{id}, #{indexId}, #{timeType}, #{calcType}, #{calcText}, now(), now(),#{isPvCalc});
delete from storage_parameter where storage_id = #{storageId};
insert into storage_parameter (storage_id, index_id)
values (#{storageId}, #{paramId});
update index_storage
set index_id = #{indexId},
calc_type = #{calcType},
calc_text = #{calcText},
update_time = now(),
is_pv_calc = #{isPvCalc}
where id = #{id};