| | |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "未包含小区"); |
| | | super.validatePageInfo(reqJson); |
| | | super.validateProperty(context); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | accountDto.setObjType(AccountDto.OBJ_TYPE_PERSON); |
| | | accountDto.setPartId(reqJson.getString("communityId")); |
| | | |
| | | String acctTypes = reqJson.getString("acctTypes"); |
| | | if (!StringUtil.isNullOrNone(acctTypes)) { |
| | | accountDto.setAcctTypes(acctTypes.split(",")); |
| | |
| | | ownerDto.setCommunityId(reqJson.getString("communityId")); |
| | | ownerDto.setLink(reqJson.getString("link")); |
| | | ownerDto.setIdCard(reqJson.getString("idCard")); |
| | | ownerDto.setName(reqJson.getString("ownerName")); |
| | | accountDto.setAcctName(ownerDto.getName()); |
| | | ResponseEntity<String> responseEntity = getAccountBMOImpl.queryOwnerAccount(accountDto, ownerDto); |
| | | context.setResponseEntity(responseEntity); |
| | | } |
| | | |
| | | /** |
| | | * 判断参数中是否有feeId |
| | | * |
| | | * @param reqJson |
| | | * @param accountDto |
| | | */ |
| | |
| | | OwnerRoomRelDto ownerRoomRelDto = new OwnerRoomRelDto(); |
| | | ownerRoomRelDto.setRoomId(payerObjId); |
| | | List<OwnerRoomRelDto> ownerRoomRelDtos = ownerRoomRelInnerServiceSMOImpl.queryOwnerRoomRels(ownerRoomRelDto); |
| | | if(ListUtil.isNull(ownerRoomRelDtos)){ |
| | | if (ListUtil.isNull(ownerRoomRelDtos)) { |
| | | throw new CmdException("房屋未绑定业主关系"); |
| | | } |
| | | ownerId = ownerRoomRelDtos.get(0).getOwnerId(); |