| | |
| | | url = "http://{ip}:{port}/app/visit.listVisits", |
| | | resource = "communityDoc", |
| | | author = "吴学文", |
| | | serviceCode = "visit.listVisits") |
| | | serviceCode = "visit.listVisits", |
| | | seq = 22 |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | | @Java110ParamDoc(name = "page", type = "int", length = 11, remark = "分页信息"), |
| | |
| | | responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(initAddVisitParameter), HttpStatus.OK); |
| | | } else { |
| | | VisitDto visitDto = BeanConvertUtil.covertBean(reqJson, VisitDto.class); |
| | | if (reqJson.containsKey("channel") && !StringUtil.isEmpty(reqJson.getString("channel")) |
| | | && "PC".equals(reqJson.getString("channel"))) { |
| | | if ("PC".equals(reqJson.getString("channel"))) { |
| | | visitDto.setCreateUserId(""); |
| | | } |
| | | int count = visitV1InnerServiceSMO.queryVisitsCount(visitDto); |
| | |
| | | ownerDto.setOwnerIds(ownerIds.toArray(new String[ownerIds.size()])); |
| | | ownerDto.setOwnerTypeCd(OwnerDto.OWNER_TYPE_CD_OWNER); |
| | | ownerDto.setCommunityId(reqJson.getString("communityId")); |
| | | List<OwnerDto> ownerDtos = ownerV1InnerServiceSMOImpl.queryOwners(ownerDto); |
| | | for (ApiVisitDataVo apiVisitDataVo : visits) { |
| | | for (OwnerDto tmpOwnerDto : ownerDtos) { |
| | | if (!apiVisitDataVo.getOwnerId().equals(tmpOwnerDto.getOwnerId())) { |
| | | List<OwnerDto> ownerDtos = ownerV1InnerServiceSMOImpl.queryOwners(ownerDto); |
| | | |
| | | for(ApiVisitDataVo apiVisitDataVo: visits){ |
| | | for(OwnerDto tmpOwnerDto : ownerDtos){ |
| | | if(StringUtil.isEmpty(apiVisitDataVo.getOwnerId())){ |
| | | continue; |
| | | } |
| | | if(!apiVisitDataVo.getOwnerId().equals(tmpOwnerDto.getOwnerId())){ |
| | | continue; |
| | | } |
| | | apiVisitDataVo.setOwnerName(tmpOwnerDto.getName()); |