lidongdong
2023-07-05 19ba9571893678294c342029fa38ac83ee5daca0
x修改bug
1个文件已修改
48 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/java/com/panzhihua/applets_backstage/api/CommunityApi.java
@@ -58,16 +58,11 @@
        comActVO.setAppId(getAppId());
        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 = 1578569291282911232L;
            AdministratorsUserVO administratorsUserVO = new AdministratorsUserVO();
            administratorsUserVO.setAccount(comActVO.getAccount());
            administratorsUserVO.setPassword(comActVO.getPassword());
@@ -90,29 +85,30 @@
            administratorsUserVO.setUserId(Snowflake.getId());
            administratorsUserVO.setAppid(this.getAppId());
            R r1 = userService.addUserBackstage(administratorsUserVO);
        if (R.isOk(r)) {
            if (!R.isOk(r1)) {
//                userService.deleteUserBackstage(administratorsUserVO);
                communityService.delectCommunity(communityId);
            }
            addType(communityId,"资金公开");
            addType(communityId,"资产公开");
            addType(communityId,"资源公开");
            addType(communityId,"村集体经济组织项目");
            if(R.isOk(r1))
            {
                addType(communityId,"资金公开");
                addType(communityId,"资产公开");
                addType(communityId,"资源公开");
                addType(communityId,"村集体经济组织项目");
            }
//            R r1 = userService.addUserBackstage(administratorsUserVO);
//
//            if (!R.isOk(r1)) {
//    //                userService.deleteUserBackstage(administratorsUserVO);
//                communityService.delectCommunity(communityId);
//            }
//
//            if(R.isOk(r1))
//            {
//                addType(communityId,"资金公开");
//                addType(communityId,"资产公开");
//                addType(communityId,"资源公开");
//                addType(communityId,"村集体经济组织项目");
//            }
//            return r1;
        }
            return r1;
//        }
//        return r;
        return r;
    }