|
|
@ -30,6 +30,8 @@ public class AppSettingsMgr { |
|
|
|
final static int setLISSerialBaudrate = 9; |
|
|
|
final static int setLISNetIp = 10; |
|
|
|
final static int setLISNetPort = 11; |
|
|
|
final static int setTemperature = 12; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Resource |
|
|
@ -149,4 +151,11 @@ public class AppSettingsMgr { |
|
|
|
appSettingDBService.update(setting); |
|
|
|
} |
|
|
|
|
|
|
|
@ExtApiFn(name = "setTemperature", group = "设置", order = ORDER.setTemperature) |
|
|
|
public void setTemperature(Integer val) { |
|
|
|
AppSetting setting = appSettingDBService.get(); |
|
|
|
setting.temperature = val; |
|
|
|
appSettingDBService.update(setting); |
|
|
|
} |
|
|
|
|
|
|
|
} |