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 b3dc94d..adf5e6a 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 @@ -109,7 +109,7 @@ public class PlantformConfigServiceImpl extends BaseServiceImpl implements Plant if(StringUtils.isNotEmpty(parentId)) { query.addCriteria(Criteria.where("parentId").is(parentId)); } - 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_CONTENT)).with(new Sort(Sort.Direction.DESC,"createDate")); PageResult pageResult = findMongoPage(PlantformConfigModel.class, query, page, limit); List configModels = (List) pageResult.getGrid();