springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/EasyPhotoApi.java
@@ -63,7 +63,7 @@ return R.fail("请先登录"); } photoHandleDTO.setHandlerId(userInfoVO.getUserId()); return gridService.easyHandle(photoHandleDTO); return gridService.easyHandleByAdmin(photoHandleDTO); } @ApiOperation(value = "随手拍切换公示状态-lyq") springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java
@@ -69,6 +69,16 @@ } /** * 随手拍后台处理 * @param photoHandleDTO 请求参数 * @return 处理结果 */ @PostMapping("admin/handle") public R easyAdminHandle(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){ return comActEasyPhotoService.easyHandle(photoHandleDTO); } /** * 随手拍公示状态切换 * @param photoHandleDTO 请求参数 * @return 切换结果 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/ComActEasyPhotoServiceImpl.java
@@ -153,9 +153,6 @@ if(easyPhotoDO.getHandleStatus().equals(ComActEasyPhotoDO.handleStatus.yes)){ return R.fail("该随手拍已处理"); } if(easyPhotoDO.getIsReport().equals(ComActEasyPhotoDO.isReport.no)){ return R.fail("该随手拍未上报社区"); } BeanUtils.copyProperties(photoHandleDTO,easyPhotoDO); easyPhotoDO.setHandleStatus(ComActEasyPhotoDO.handleStatus.yes); easyPhotoDO.setFeedbackAt(new Date());