| | |
| | | import com.java110.intf.community.IMenuInnerServiceSMO; |
| | | import com.java110.intf.community.IRoomInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerInnerServiceSMO; |
| | | import com.java110.user.bmo.owner.IQueryOwnerStatisticsBMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | url = "http://{ip}:{port}/app/owner.queryOwners", |
| | | resource = "userDoc", |
| | | author = "吴学文", |
| | | serviceCode = "owner.queryOwners" |
| | | serviceCode = "owner.queryOwners", |
| | | seq = 12 |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | |
| | | @Autowired |
| | | private IFileRelInnerServiceSMO fileRelInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IQueryOwnerStatisticsBMO queryOwnerStatisticsBMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | Assert.jsonObjectHaveKey(reqJson, "page", "请求中未包含page信息"); |
| | |
| | | List<OwnerDto> ownerDtos = new ArrayList<>(); |
| | | if (total > 0) { |
| | | List<OwnerDto> ownerDtoList = ownerInnerServiceSMOImpl.queryOwners(BeanConvertUtil.covertBean(reqJson, OwnerDto.class)); |
| | | // 查询统计数据 |
| | | ownerDtoList = queryOwnerStatisticsBMOImpl.query(ownerDtoList); |
| | | List<Map> mark = getPrivilegeOwnerList("/roomCreateFee", reqJson.getString("userId")); |
| | | for (OwnerDto ownerDto : ownerDtoList) { |
| | | //查询照片 |
| | | FileRelDto fileRelDto = new FileRelDto(); |
| | | fileRelDto.setObjId(ownerDto.getOwnerId()); |
| | | fileRelDto.setObjId(ownerDto.getMemberId()); |
| | | fileRelDto.setRelTypeCd("10000"); //业主照片 |
| | | List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto); |
| | | if (fileRelDtos != null && fileRelDtos.size() > 0) { |
| | |
| | | List<OwnerDto> ownerDtos = new ArrayList<>(); |
| | | if (total > 0) { |
| | | List<OwnerDto> ownerDtoList = ownerInnerServiceSMOImpl.queryOwnersByCondition(tmpOwnerDto); |
| | | // 查询统计数据 |
| | | ownerDtoList = queryOwnerStatisticsBMOImpl.query(ownerDtoList); |
| | | |
| | | List<Map> mark = getPrivilegeOwnerList("/roomCreateFee", userId); |
| | | for (OwnerDto ownerDto : ownerDtoList) { |
| | | //对业主身份证号隐藏处理 |