| | |
| | | |
| | | List<Integer> data = new ArrayList<>(); |
| | | //总房源 |
| | | Integer one = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("is_delete", 0)); |
| | | Integer one = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("type",2).eq("auth_status",2)); |
| | | data.add(one); |
| | | //总出租房源 |
| | | Integer two = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("is_delete", 0).eq("data_type",1)); |
| | | Integer two = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("type",2).eq("data_type",1).eq("auth_status",2)); |
| | | data.add(two); |
| | | //总卖房源 |
| | | Integer three = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("is_delete", 0).eq("data_type",2)); |
| | | Integer three = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("type",2).eq("data_type",2).eq("auth_status",2)); |
| | | data.add(three); |
| | | //总求买房 |
| | | Integer four = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("is_delete", 0).eq("data_type",2)); |
| | | Integer four = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("data_type",2)); |
| | | data.add(four); |
| | | //总求租房 |
| | | Integer five = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("is_delete", 0).eq("data_type",1)); |
| | | Integer five = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("data_type",1)); |
| | | data.add(five); |
| | | //总中介 |
| | | Integer six = appUserService.selectCount(new EntityWrapper<AppUser>().eq("user_type",3).ne("status",3)); |
| | | Integer six = appUserService.selectCount(new EntityWrapper<AppUser>().eq("user_type",3).eq("auth",2).ne("status",3)); |
| | | data.add(six); |
| | | //总房东 |
| | | Integer seven = appUserService.selectCount(new EntityWrapper<AppUser>().eq("user_type",3).ne("status",2)); |
| | | Integer seven = appUserService.selectCount(new EntityWrapper<AppUser>().eq("user_type",2).ne("status",2)); |
| | | data.add(seven); |
| | | //总用户 |
| | | Integer eight = appUserService.selectCount(new EntityWrapper<AppUser>().ne("status",2)); |
| | | Integer eight = appUserService.selectCount(new EntityWrapper<AppUser>().ne("status",3)); |
| | | data.add(eight); |
| | | //今日新增中介 |
| | | Integer nine = appUserService.selectCount(new EntityWrapper<AppUser>() |
| | | .eq("user_type", 3) |
| | | .eq("user_type", 3).eq("auth",2) |
| | | .ne("status", 3) |
| | | .like("changeTime", formattedDate)); |
| | | data.add(nine); |
| | |
| | | Integer eleven = appUserService.selectCount(new EntityWrapper<AppUser>().ne("status",3).like("insert_time", formattedDate)); |
| | | data.add(eleven); |
| | | //今日新增房源出租 |
| | | Integer twelve = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("is_delete", 0).ne("type",1).eq("data_type",1).like("auth_time", formattedDate)); |
| | | Integer twelve = houseResourceService.selectCount(new EntityWrapper<HouseResource>().ne("type",1).eq("data_type",1).like("auth_time", formattedDate)); |
| | | data.add(twelve); |
| | | //今日卖房源 |
| | | Integer thirteen = houseResourceService.selectCount(new EntityWrapper<HouseResource>().eq("is_delete", 0).ne("type",1).eq("data_type",2).like("auth_time", formattedDate)); |
| | | Integer thirteen = houseResourceService.selectCount(new EntityWrapper<HouseResource>().ne("type",1).eq("data_type",2).like("auth_time", formattedDate)); |
| | | data.add(thirteen); |
| | | //今日求租房 |
| | | Integer fourteen = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("is_delete", 0).ne("type",1).eq("data_type",1).like("insert_time", formattedDate)); |
| | | Integer fourteen = demandService.selectCount(new EntityWrapper<HousingDemand>().ne("type",1).eq("data_type",1).like("insert_time", formattedDate)); |
| | | data.add(fourteen); |
| | | //今日求买房 |
| | | Integer fifteen = demandService.selectCount(new EntityWrapper<HousingDemand>().eq("is_delete", 0).ne("type",1).eq("data_type",2).like("insert_time", formattedDate)); |
| | | Integer fifteen = demandService.selectCount(new EntityWrapper<HousingDemand>().ne("type",1).eq("data_type",2).like("insert_time", formattedDate)); |
| | | data.add(fifteen); |
| | | |
| | | return data; |
| | |
| | | HouseResource houseResource = houseResourceService.selectById(id); |
| | | AddHouseReq addHouseReq = new AddHouseReq(); |
| | | BeanUtils.copyProperties(houseResource,addHouseReq); |
| | | addHouseReq.setTime(houseResource.getLeaseTime()); |
| | | // addHouseReq.setTime(houseResource.getLeaseTime()); |
| | | return addHouseReq; |
| | | } |
| | | |
| | |
| | | houseResource.setAuthTime(new Date()); |
| | | houseResource.setReason(reason); |
| | | houseResource.setAuthStatus(3); |
| | | houseResource.setStatus(1); |
| | | } |
| | | houseResourceService.updateById(houseResource); |
| | | |