Pu Zhibing
2025-07-24 35aceee100051fe38f6cd12932397d8cd971cc07
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);
   }
}