From 7c922211b82143537268f125d44dd50d22397e70 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Wed, 23 Aug 2017 10:48:13 +0800 Subject: [PATCH] =?UTF-8?q?bug=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/web/service/impl/PlantformConfigServiceImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PlantformConfigServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PlantformConfigServiceImpl.java index 667307e..09891d2 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PlantformConfigServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PlantformConfigServiceImpl.java @@ -62,9 +62,8 @@ public class PlantformConfigServiceImpl extends BaseServiceImpl implements Plant @Override public BaseResponse delCustomType(String id, Integer userId) { - String hospitalId = autoMatchFacade.getHospitalId(userId); - mongoTemplate.remove(Query.query(Criteria.where("key").is(hospitalId).and("type").is(SequenceConstant.CUSTOM_TYPE)), PlantformConfigModel.class); - mongoTemplate.remove(Query.query(Criteria.where("parentId").is(hospitalId).and("type").is(SequenceConstant.CUSTOM_CONTENT)), PlantformConfigModel.class); + mongoTemplate.remove(Query.query(Criteria.where("id").is(id)), PlantformConfigModel.class); + mongoTemplate.remove(Query.query(Criteria.where("parentId").is(id)), PlantformConfigModel.class); return RespBuilder.buildSuccess(); } -- 1.8.3.1