| | |
| | | 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.*; |
| | |
| | | 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; |
| | |
| | | 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 请求参数 |