lidongdong
2023-07-05 c75fe6c4da206eee0cb1741e6ea483f0d89d3f93
x修改bug
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,8 +56,8 @@
    @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());
@@ -66,8 +66,8 @@
//            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;
            Long communityId = comActVO.getCommunityId();
//            Long communityId = 1578569291282911232L;
            AdministratorsUserVO administratorsUserVO = new AdministratorsUserVO();
            administratorsUserVO.setAccount(comActVO.getAccount());
            administratorsUserVO.setPassword(comActVO.getPassword());
@@ -92,18 +92,23 @@
            R r1 = userService.addUserBackstage(administratorsUserVO);
        if (R.isOk(r)) {
            if (!R.isOk(r1)) {
//                userService.deleteUserBackstage(administratorsUserVO);
                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;
//        }