From f45b80c5f8836bfb16b6cfff7df29aec631131ed Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 16 一月 2024 17:19:56 +0800 Subject: [PATCH] 发布房源 默认为审核通过和已上架状态 --- guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HouseResourceService.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HouseResourceService.java b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HouseResourceService.java index f1dad37..16223e3 100644 --- a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HouseResourceService.java +++ b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/HouseResourceService.java @@ -478,14 +478,18 @@ } if (req.getType()==2){ if (req.getId()==null){ + houseResource.setAuthStatus(2); this.baseMapper.insert(houseResource); }else{ + houseResource.setAuthStatus(2); this.baseMapper.updateById(houseResource); } }else{ if (req.getId()==null){ + houseResource.setAuthStatus(2); this.baseMapper.insert(houseResource); }else{ + houseResource.setAuthStatus(2); this.baseMapper.updateById(houseResource); } } @@ -496,6 +500,7 @@ pointLocation.setHouseId(houseResource.getId()); mongoTemplate.insert(pointLocation); houseResource.setCode(pointLocation.getId()); + houseResource.setAuthStatus(2); this.baseMapper.updateById(houseResource); InputStream inputStream = null; OutputStream outputStream = null; @@ -565,6 +570,7 @@ pointLocation.setHouseId(req.getId()); mongoTemplate.insert(pointLocation); houseResource1.setCode(pointLocation.getId()); + houseResource1.setAuthStatus(2); this.baseMapper.updateById(houseResource1); } Query query = Query.query(Criteria.where("_id").is(houseResource1.getCode())); -- Gitblit v1.7.1