From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期六, 21 八月 2021 16:35:14 +0800 Subject: [PATCH] 随手拍改版接口开发 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java index 44f1b1a..330098f 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java @@ -8,8 +8,10 @@ import com.panzhihua.common.model.dtos.community.GrantRewardDTO; import com.panzhihua.common.model.dtos.community.PageComActEasyPhotoCommentDTO; import com.panzhihua.common.model.dtos.community.ComActEasyPhotoCommentUserDTO; +import com.panzhihua.common.model.dtos.community.easyPhoto.ExportEasyPhotoDTO; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.community.*; +import com.panzhihua.common.model.vos.community.easyPhoto.ExportEasyPhotoVO; import com.panzhihua.common.utlis.*; import com.panzhihua.service_community.dao.*; import com.panzhihua.service_community.model.dos.*; @@ -18,6 +20,7 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import org.springframework.util.ObjectUtils; import javax.annotation.Resource; @@ -149,7 +152,7 @@ comActEasyPhotoVO.setPhotoFeedbackList(photoFeedbackList); } - comActEasyPhotoVO.setPhone(SensitiveUtil.desensitizedPhoneNumber(comActEasyPhotoVO.getPhone())); +// comActEasyPhotoVO.setPhone(SensitiveUtil.desensitizedPhoneNumber(comActEasyPhotoVO.getPhone())); if(comActEasyPhotoVO.getAddrRemark()==null){ comActEasyPhotoVO.setAddrRemark(""); } @@ -637,6 +640,37 @@ return R.ok(); } + @Override + public R easyPhotoCount(ComActEasyPhotoVO comActEasyPhotoVO) { + return R.ok(this.comActEasyPhotoDAO.easyPhotoCount(comActEasyPhotoVO)); + } + + @Override + public R updatePageeasyphoto(ComActEasyPhotoVO comActEasyPhotoVO) { + ComActEasyPhotoDO comActEasyPhotoDO=new ComActEasyPhotoDO(); + BeanUtils.copyProperties(comActEasyPhotoVO,comActEasyPhotoDO); + int result=this.comActEasyPhotoDAO.updateById(comActEasyPhotoDO); + if(result>0){ + return R.ok(); + } + return R.fail(); + } + + @Override + public R export(ExportEasyPhotoDTO exportEasyPhotoDTO) { + if(exportEasyPhotoDTO!=null){ + List<ExportEasyPhotoVO> list; + if(!CollectionUtils.isEmpty(exportEasyPhotoDTO.getIds())){ + list=this.comActEasyPhotoDAO.exportByIds(exportEasyPhotoDTO.getIds()); + } + else { + list=this.comActEasyPhotoDAO.export(exportEasyPhotoDTO); + } + return R.ok(list); + } + return R.fail("参数错误"); + } + /** * 社区后台-切换随手拍公示状态 * @param comActEasyPhotoVO 请求参数 @@ -657,5 +691,15 @@ } } + /** + * 查询社区待处理随手拍id集合 + * @param communityId 社区id + * @return 社区待处理随手拍id集合 + */ + @Override + public R easyPhotoNoHandleList(Long communityId){ + return R.ok(this.baseMapper.easyPhotoNoHandleIds(communityId)); + } + } -- Gitblit v1.7.1