liujie
5 天以前 1affeef32cf30a1765ee749db0344258058b4e2e
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/RegionController.java
@@ -102,4 +102,17 @@
      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);
   }
}