|
@ -136,16 +136,16 @@ id setting_name setting_name_ch val_upper_limit val_lower_limi |
|
|
storage.sync_schema(); |
|
|
storage.sync_schema(); |
|
|
|
|
|
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 1)).size() == 0) //
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 1)).size() == 0) //
|
|
|
storage.insert(Setting{1, "stoped_gs", "消毒停止过氧化氢溶度", 0, 2000, 1, 300}); |
|
|
|
|
|
|
|
|
storage.insert(Setting{1, "stoped_gs", "消毒停止过氧化氢溶度", 0, 2000, 1, 1800}); |
|
|
|
|
|
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 2)).size() == 0) |
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 2)).size() == 0) |
|
|
storage.insert(Setting{2, "continued_gs", "消毒继续过氧化氢溶度", 0, 2000, 1, 260}); |
|
|
|
|
|
|
|
|
storage.insert(Setting{2, "continued_gs", "消毒继续过氧化氢溶度", 0, 2000, 1, 1500}); |
|
|
|
|
|
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 3)).size() == 0) |
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 3)).size() == 0) |
|
|
storage.insert(Setting{3, "stoped_satur", "消毒停止过氧化氢相对饱和度", 0, 100, 1, 70}); |
|
|
|
|
|
|
|
|
storage.insert(Setting{3, "stoped_satur", "消毒停止过氧化氢相对饱和度", 0, 100, 1, 85}); |
|
|
|
|
|
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 4)).size() == 0) |
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 4)).size() == 0) |
|
|
storage.insert(Setting{4, "continued_satur", "消毒继续过氧化氢相对饱和度", 0, 100, 1, 60}); |
|
|
|
|
|
|
|
|
storage.insert(Setting{4, "continued_satur", "消毒继续过氧化氢相对饱和度", 0, 100, 1, 70}); |
|
|
|
|
|
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 5)).size() == 0) //
|
|
|
if (storage.get_all<Setting>(where(c(&Setting::id) == 5)).size() == 0) //
|
|
|
storage.insert(Setting{5, "max_humidity", "允许消毒最大湿度", 0, 100, 1, 90}); |
|
|
storage.insert(Setting{5, "max_humidity", "允许消毒最大湿度", 0, 100, 1, 90}); |
|
|