From a1a50ae80ce2b09af00a6a2972195b3f5617d4bf Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 10 一月 2024 14:20:15 +0800 Subject: [PATCH] bug修改 --- guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HousingDemandServiceImpl.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HousingDemandServiceImpl.java b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HousingDemandServiceImpl.java index 882d1aa..404f86f 100644 --- a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HousingDemandServiceImpl.java +++ b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HousingDemandServiceImpl.java @@ -423,7 +423,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); HousingDemand housingDemand = this.selectById(id); HousingDemandInfoRes housingDemandInfoRes = new HousingDemandInfoRes(); - AppUser appUser = appUserService.getAppUser(); +// AppUser appUser = appUserService.getAppUser(); housingDemandInfoRes.setId(id); housingDemandInfoRes.setDataType(housingDemand.getDataType()); housingDemandInfoRes.setQrCode(housingDemand.getQrCode()); @@ -531,15 +531,15 @@ int collectionTimes = collectionHousingDemandService.selectCount(new EntityWrapper<CollectionHousingDemand>().eq("housing_demand_id", id)); housingDemandInfoRes.setCollectionTimes(collectionTimes); housingDemandInfoRes.setCollection(0); - if(null != appUser){ - int collection = collectionHousingDemandService - .selectCount(new EntityWrapper<CollectionHousingDemand>() - .eq("housing_demand_id", id) - .eq("app_user_id", appUser.getId())); - housingDemandInfoRes.setCollection(0 == collection ? 0 : 1); - } +// if(null != appUser){ +// int collection = collectionHousingDemandService +// .selectCount(new EntityWrapper<CollectionHousingDemand>() +// .eq("housing_demand_id", id) +// .eq("app_user_id", appUser.getId())); +// housingDemandInfoRes.setCollection(0 == collection ? 0 : 1); +// } //添加访问次数记录 - addViewsNumber(housingDemand); +// addViewsNumber(housingDemand); return housingDemandInfoRes; } -- Gitblit v1.7.1