| | |
| | | // if(easyAppDTO.getCommunityId() == null){ |
| | | // easyAppDTO.setCommunityId(userInfoVO.getCommunityId()); |
| | | // } |
| | | if(easyAppDTO != null && easyAppDTO.getIsPublicity().equals(0)){ |
| | | if(easyAppDTO != null && easyAppDTO.getIsPublicity() != null && easyAppDTO.getIsPublicity().equals(0)){ |
| | | easyAppDTO.setIsPublicity(2); |
| | | } |
| | | return gridService.easyListByAdmin(easyAppDTO); |
| | |
| | | return R.fail("请先登录"); |
| | | } |
| | | photoHandleDTO.setHandlerId(userInfoVO.getUserId()); |
| | | if(photoHandleDTO.getIsPublicity().equals(0)){ |
| | | if(photoHandleDTO.getIsPublicity() != null && photoHandleDTO.getIsPublicity().equals(0)){ |
| | | photoHandleDTO.setIsPublicity(2); |
| | | } |
| | | return gridService.easyHandleByAdmin(photoHandleDTO); |
| | |
| | | @ApiOperation(value = "随手拍切换公示状态-lyq") |
| | | @PostMapping("publicity") |
| | | public R publicity(@RequestBody ComActEasyPhotoEditAdminDTO photoHandleDTO) { |
| | | if(photoHandleDTO != null && photoHandleDTO.getIsPublicity().equals(0)){ |
| | | if(photoHandleDTO != null && photoHandleDTO.getIsPublicity() != null && photoHandleDTO.getIsPublicity().equals(0)){ |
| | | photoHandleDTO.setIsPublicity(2); |
| | | } |
| | | return gridService.easyPublicityByAdmin(photoHandleDTO); |