101captain
2021-08-19 aea5881b9d442cf8f0703a90437cc90f4863e4e7
提交城管安排接口
5个文件已修改
37 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityActivityApi.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActEasyPhotoService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -342,6 +342,8 @@
     */
    @PostMapping("/esayPhotoCount")
    R  esayphotoCount(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO);
    @PostMapping("updatePageeasyphoto")
    R updatePageeasyphoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO);
    /**
     * 新增社区
     *
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityActivityApi.java
@@ -273,6 +273,17 @@
        return communityService.esayphotoCount(comActEasyPhotoVO);
    }
    /**
     * 城管安排
     *
     * @param comActEasyPhotoVO 查询参数
     * @return 心愿列表
     */
    @ApiOperation(value = "城管安排")
    @PostMapping("updatePageeasyphoto")
    public R updatePageeasyphoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO) {
        return communityService.updatePageeasyphoto(comActEasyPhotoVO);
    }
    @ApiOperation(value = "查询所有社区列表")
    @GetMapping("community/list")
    public R getCommunityLists(){
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
@@ -478,6 +478,17 @@
    }
    /**
     * 城管安排
     *
     * @param comActEasyPhotoVO 查询参数
     * @return 心愿列表
     */
    @PostMapping("updatePageeasyphoto")
    public R updatePageeasyphoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO) {
        return comActEasyPhotoService.updatePageeasyphoto(comActEasyPhotoVO);
    }
    /**
     * 随手拍详情
     *
     * @param id     随手拍主键
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActEasyPhotoService.java
@@ -115,4 +115,6 @@
    R readUserReward(Long userId,Long communityId);
    R easyPhotoCount(ComActEasyPhotoVO comActEasyPhotoVO);
    R updatePageeasyphoto(ComActEasyPhotoVO comActEasyPhotoVO);
}
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
@@ -633,5 +633,16 @@
        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();
    }
}