000
lidongdong
2023-07-05 adbb3a9fee1329f49175f18c2fb3326a7f248ebb
000
1个文件已修改
27 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java
@@ -56,17 +56,18 @@
    @OperLog(operModul = "社区管理", operType = 1)
    public R addCommunity(@Validated(AddGroup.class) @RequestBody ComActVO comActVO) {
        comActVO.setAppId(getAppId());
        comActVO.setCommunityId(Snowflake.getId());
        R r = communityService.addCommunity(comActVO);
//        comActVO.setCommunityId(Snowflake.getId());
//        R r = communityService.addCommunity(comActVO);
//        System.out.print("参数1"+JSONObject.toJSONString(r.getData()));
//        ComActVO comActVO2 = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), ComActVO.class);
//        System.out.print("参数2"+comActVO2.getCommunityId());
        if (R.isOk(r)) {
//        if (R.isOk(r)) {
//            System.out.print("参数3"+JSONObject.toJSONString(r.getData()));
//            ComActVO comActVO1 = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), ComActVO.class);
            Long communityId = comActVO.getCommunityId();
//            Long communityId = comActVO.getCommunityId();
            Long communityId = 1578569291282911232L;
            AdministratorsUserVO administratorsUserVO = new AdministratorsUserVO();
            administratorsUserVO.setAccount(comActVO.getAccount());
            administratorsUserVO.setPassword(comActVO.getPassword());
@@ -96,17 +97,17 @@
                communityService.delectCommunity(communityId);
            }
            if(R.isOk(r1))
            {
                addType(communityId,"资金公开");
                addType(communityId,"资产公开");
                addType(communityId,"资源公开");
                addType(communityId,"村集体经济组织项目");
            }
//            if(R.isOk(r1))
//            {
//                addType(communityId,"资金公开");
//                addType(communityId,"资产公开");
//                addType(communityId,"资源公开");
//                addType(communityId,"村集体经济组织项目");
//            }
            return r1;
        }
        return r;
//        }
//        return r;
    }