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();