taosj_patch_3.sql 781 B

12345678910
  1. -- 测光法改为场站级别配置
  2. INSERT INTO sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark)
  3. select
  4. nextval(pg_get_serial_sequence('sys_dict_data', 'dict_code')),
  5. 1,
  6. '测光法配置', '{"a1": 0.0, "a2": 0.0}',
  7. 'algorithm_config', '', '', 'N', '0', 'admin', now(), '测光法 P=n*(a1*G+a2*T);a1/a2 初始为 0 占位,需运维替换为真实系数'
  8. where not exists (select 1 from sys_dict_data where dict_type = 'algorithm_config');
  9. update sys_dict_data set dict_value = '{"JMJD01":{"a1": 0.15598743, "a2": 0.26587976},"ZHONGXIN":{"a1": 0.19545898, "a2": -0.00031972},"YUWEI":{"a1": 1.27035672, "a2": 0.89066745}}' where dict_type = 'algorithm_config';