| | |
| | | @RequestParam(value = "feeId", required = false) String feeId, |
| | | @RequestParam(value = "link", required = false) String link, |
| | | @RequestParam(value = "idCard", required = false) String idCard, |
| | | @RequestParam(value = "acctType", required = false) String acctType, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | AccountDto accountDto = new AccountDto(); |
| | |
| | | String payerObjType = feeDtos.get(0).getPayerObjType(); |
| | | //获取付费对象id |
| | | String payerObjId = feeDtos.get(0).getPayerObjId(); |
| | | if (!StringUtil.isEmpty(payerObjType) && payerObjType.equals("3333")) { //房屋 |
| | | if (FeeDto.PAYER_OBJ_TYPE_ROOM.equals(payerObjType)) { //房屋 |
| | | OwnerRoomRelDto ownerRoomRelDto = new OwnerRoomRelDto(); |
| | | ownerRoomRelDto.setRoomId(payerObjId); |
| | | List<OwnerRoomRelDto> ownerRoomRelDtos = ownerRoomRelInnerServiceSMOImpl.queryOwnerRoomRels(ownerRoomRelDto); |
| | | Assert.listOnlyOne(ownerRoomRelDtos, "查询业主房屋关系表错误!"); |
| | | ownerId = ownerRoomRelDtos.get(0).getOwnerId(); |
| | | } else if (!StringUtil.isEmpty(payerObjType) && payerObjType.equals("6666")) { |
| | | } else if (FeeDto.PAYER_OBJ_TYPE_CAR.equals(payerObjType)) { |
| | | OwnerCarDto ownerCarDto = new OwnerCarDto(); |
| | | ownerCarDto.setCarId(payerObjId); |
| | | List<OwnerCarDto> ownerCarDtos = ownerCarInnerServiceSMOImpl.queryOwnerCars(ownerCarDto); |
| | | // Assert.listOnlyOne(ownerCarDtos, "查询业主车辆关系表错误!"); |
| | | ownerId = ownerCarDtos.get(0).getOwnerId(); |
| | | } else { |
| | | ownerId = "-1"; |
| | | } |
| | | accountDto.setObjId(ownerId); |
| | | } else { |
| | |
| | | accountDto.setObjType(AccountDto.OBJ_TYPE_PERSON); |
| | | accountDto.setAcctName(ownerName); |
| | | accountDto.setPartId(communityId); |
| | | accountDto.setAcctType(acctType); |
| | | OwnerDto ownerDto = new OwnerDto(); |
| | | ownerDto.setOwnerId(ownerId); |
| | | ownerDto.setCommunityId(communityId); |
| | |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerId", "业主不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "amount", "金额不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "acctType", "账户类型不能为空"); |
| | | AccountDetailPo accountDetailPo = new AccountDetailPo(); |
| | | accountDetailPo.setRemark(reqJson.getString("remark")); |
| | | accountDetailPo.setObjId(reqJson.getString("ownerId")); |