| | |
| | | Assert.hasKeyAndValue(reqJson, "cityCode", "请求报文中未包含cityCode"); |
| | | Assert.hasKeyAndValue(reqJson, "payFeeMonth", "请求报文中未包含payFeeMonth"); |
| | | Assert.hasKeyAndValue(reqJson, "feePrice", "请求报文中未包含feePrice"); |
| | | Assert.hasKeyAndValue(reqJson, "takeTime", "请求报文中未包含接管日期"); |
| | | Assert.hasKeyAndValue(reqJson, "communityCode", "请求报文中未包含小区编码"); |
| | | //属性校验 |
| | | Assert.judgeAttrValue(reqJson); |
| | | |
| | |
| | | @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); |
| | | //产生物业费配置信息 不要产生默认费 |