| | |
| | | */ |
| | | @PostMapping("batchhouse") |
| | | public R batchHouse(@RequestBody BatchhouseVO batchhouseVO) { |
| | | return comMngStructHouseService.batchHouse(batchhouseVO); |
| | | R r = comMngStructHouseService.batchHouse(batchhouseVO); |
| | | if (R.isOk(r)) { |
| | | String areaCode = batchhouseVO.getAreaCode(); |
| | | String ruleDoor = batchhouseVO.getRuleDoor(); |
| | | String ruleConnector = batchhouseVO.getRuleConnector(); |
| | | String ruleFloor = batchhouseVO.getRuleFloor(); |
| | | ComMngStructAreaVO comMngStructAreaVO=new ComMngStructAreaVO(); |
| | | comMngStructAreaVO.setRoleDoor(ruleDoor); |
| | | comMngStructAreaVO.setRoleFloor(ruleFloor); |
| | | comMngStructAreaVO.setRoleConnector(ruleConnector); |
| | | comMngStructAreaVO.setAreaCode(areaCode); |
| | | comMngStructAreaVO.setCommunityId(null); |
| | | comMngStructAreaVO.setIsAccumulation(null); |
| | | comMngStructAreaService.putArea(comMngStructAreaVO); |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | /** |
| | |
| | | return comActActivityService.timedTaskActActivityAll(); |
| | | } |
| | | |
| | | /** |
| | | * 其他建筑详情 |
| | | * @param id 主键id |
| | | * @return 建筑内容 |
| | | */ |
| | | @PostMapping("detailotherbuild") |
| | | public R detailOtherbuild(@RequestParam("id")Long id){ |
| | | return comMngStructOtherBuildService.detailOtherbuild(id); |
| | | } |
| | | |
| | | /** |
| | | * 编辑其他建筑 |
| | | * @param comMngStructOtherBuildVO 编辑内容 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("putotherbuild") |
| | | public R putOtherbuild(@RequestBody ComMngStructOtherBuildVO comMngStructOtherBuildVO){ |
| | | return comMngStructOtherBuildService.putOtherbuild(comMngStructOtherBuildVO); |
| | | } |
| | | |
| | | /** |
| | | * 删除其他建筑 |
| | | * @param id 主键 |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("deleteotherbuild") |
| | | public R deleteOtherbuild(@RequestParam("id")Long id){ |
| | | return comMngStructOtherBuildService.deleteOtherbuild(id); |
| | | } |
| | | |
| | | |
| | | } |