huanghongfa
2021-09-26 d61da1a72b605ee6105493637c1a367f85dd005b
bug修复
1个文件已修改
6 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/EasyPhotoApi.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/EasyPhotoApi.java
@@ -38,7 +38,7 @@
        // 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);
@@ -67,7 +67,7 @@
            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);
@@ -76,7 +76,7 @@
    @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);