chengf
2026-01-27 b6184e2ddf3db37a94f7efb3b619bbc64642a292
service-community/src/main/java/com/java110/community/cmd/community/SaveCommunityCmd.java
@@ -114,6 +114,7 @@
        Assert.hasKeyAndValue(reqJson, "payFeeMonth", "请求报文中未包含payFeeMonth");
        Assert.hasKeyAndValue(reqJson, "feePrice", "请求报文中未包含feePrice");
        Assert.hasKeyAndValue(reqJson, "takeTime", "请求报文中未包含接管日期");
        Assert.hasKeyAndValue(reqJson, "communityCode", "请求报文中未包含小区编码");
        //属性校验
        Assert.judgeAttrValue(reqJson);
@@ -122,6 +123,18 @@
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        CommunityDto communityDto = new CommunityDto();
        communityDto.setCommunityCode(reqJson.getString("communityCode"));
        int i = communityV1InnerServiceSMOImpl.queryCommunitysCount(communityDto);
        if (i > 0) {
            throw new IllegalArgumentException("添加流程失败,小区编码重复");
        }
        communityDto = new CommunityDto();
        communityDto.setName(reqJson.getString("name"));
        i = communityV1InnerServiceSMOImpl.queryCommunitysCount(communityDto);
        if (i > 0) {
            throw new IllegalArgumentException("添加流程失败,小区名称重复");
        }
        communityBMOImpl.addCommunity(reqJson, cmdDataFlowContext);
        communityBMOImpl.addCommunityMembers(reqJson, cmdDataFlowContext);
        //产生物业费配置信息 不要产生默认费