From c49340174f646c4de19fcf2bbf52fcbc154ef76f Mon Sep 17 00:00:00 2001 From: infrasys00 <blackdancers@163.com> Date: 星期二, 22 十二月 2020 17:21:50 +0800 Subject: [PATCH] common --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java | 40 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 39 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 dac6d40..034b4a2 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 @@ -78,7 +78,7 @@ public R detailEasyPhoto(Long id, Long userId) { ComActEasyPhotoVO comActEasyPhotoVO=comActEasyPhotoDAO.detailEasyPhoto(id); if (ObjectUtils.isEmpty(comActEasyPhotoVO)) { - return R.fail(); + return R.fail("随手拍不存在"); } ComActEasyPhotoUserDO comActEasyPhotoUserDO = comActEasyPhotoUserDAO.selectOne(new QueryWrapper<ComActEasyPhotoUserDO>().lambda().eq(ComActEasyPhotoUserDO::getEasyPhotoId, id).eq(ComActEasyPhotoUserDO::getUserId, userId)); if (ObjectUtils.isEmpty(comActEasyPhotoUserDO)) { @@ -141,4 +141,42 @@ } return R.fail(); } + + /** + * 审核反馈随手拍 + * + * @param comActEasyPhotoVO 操作参数 + * @return 操作结果 + */ + @Override + public R putEasypHotoStatus(ComActEasyPhotoVO comActEasyPhotoVO) { + Integer type = comActEasyPhotoVO.getType(); +// 操作类型 1审核通过 2驳回 3反馈 + ComActEasyPhotoDO cmActEasyPhotoDO=new ComActEasyPhotoDO(); + cmActEasyPhotoDO.setId(comActEasyPhotoVO.getId()); + int isNeedFeedBack = comActEasyPhotoVO.getIsNeedFeedBack().intValue(); + switch (type){ + case 1: + if (isNeedFeedBack==1) { + cmActEasyPhotoDO.setStatus(2);//进行中 + }else{ + cmActEasyPhotoDO.setStatus(4);//已完成 + } + break; + case 2: + cmActEasyPhotoDO.setStatus(3);//已驳回 + break; + case 3: + cmActEasyPhotoDO.setHandleResult(comActEasyPhotoVO.getHandleResult()); + cmActEasyPhotoDO.setHandlePhotoList(comActEasyPhotoVO.getHandlePhotoList()); + cmActEasyPhotoDO.setStatus(4);//已完成 + break; + default:break; + } + int update = comActEasyPhotoDAO.updateById(cmActEasyPhotoDO); + if (update>0) { + return R.ok(); + } + return R.fail(); + } } -- Gitblit v1.7.1