| | |
| | | @ApiOperation("是否钢化开关") |
| | | @PostMapping("/temperingSwitch") |
| | | public Result temperingSwitch(Boolean flag) { |
| | | return Result.build(200, "查询成功", bigStorageCageDetailsService.temperingSwitch(flag)); |
| | | return Result.build(200, "修改成功", bigStorageCageDetailsService.temperingSwitch(flag)); |
| | | } |
| | | } |
| | | |
| | |
| | | //钢化开关 |
| | | boolean temperingSwitch=false; |
| | | if(redisUtil.getCacheObject("temperingSwitch")==null){ |
| | | redisUtil.setCacheObject("temperingSwitch", false); |
| | | }else{ |
| | | temperingSwitch=redisUtil.getCacheObject("temperingSwitch"); |
| | | } |
| | | jsonObject.append("temperingSwitch", temperingSwitch); |