| | |
| | | HashMap<String, Object> carportData = screenContentMapper.getCarportData(); |
| | | return R.ok(carportData); |
| | | } |
| | | @GetMapping(value = "/reset") |
| | | @ResponseBody |
| | | public void reset(@RequestParam("electricity") String electricity){ |
| | | TSystemConfiguration sysConfig = tSystemConfigurationService.getOne(new LambdaQueryWrapper<TSystemConfiguration>() |
| | | .eq(TSystemConfiguration::getType,5)); |
| | | sysConfig.setContent(electricity.split("_")[0]); |
| | | tSystemConfigurationService.updateById(sysConfig); |
| | | |
| | | TSystemConfiguration sysConfig1 = tSystemConfigurationService.getOne(new LambdaQueryWrapper<TSystemConfiguration>() |
| | | .eq(TSystemConfiguration::getType,4)); |
| | | sysConfig1.setContent(electricity.split("_")[1]); |
| | | tSystemConfigurationService.updateById(sysConfig1); |
| | | } |
| | | } |