From c82a1e61258b1210273d1fcbcde838d5e688f08b Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Wed, 23 Aug 2017 17:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/service/impl/PlantformConfigServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 adf5e6a..55f1fca 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 @@ -46,7 +46,7 @@ public class PlantformConfigServiceImpl extends BaseServiceImpl implements Plant if(StringUtils.isNotEmpty(key)) { query.addCriteria(Criteria.where("value").regex(key)); } - query.addCriteria(Criteria.where("key").is(hospitalId)).with(new Sort(Sort.Direction.DESC,"createDate")); + query.addCriteria(Criteria.where("key").is(hospitalId).and("type").is(SequenceConstant.CUSTOM_TYPE)).with(new Sort(Sort.Direction.DESC,"createDate")); PageResult pageResult = findMongoPage(PlantformConfigModel.class, query, page, limit); List configModels = (List) pageResult.getGrid(); -- 1.8.3.1