Commit 7c922211b82143537268f125d44dd50d22397e70
1 parent
e364d6dbb3
Exists in
master
and in
6 other branches
bug调整
Showing 1 changed file with 2 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PlantformConfigServiceImpl.java
View file @
7c92221
| ... | ... | @@ -62,9 +62,8 @@ |
| 62 | 62 | |
| 63 | 63 | @Override |
| 64 | 64 | public BaseResponse delCustomType(String id, Integer userId) { |
| 65 | - String hospitalId = autoMatchFacade.getHospitalId(userId); | |
| 66 | - mongoTemplate.remove(Query.query(Criteria.where("key").is(hospitalId).and("type").is(SequenceConstant.CUSTOM_TYPE)), PlantformConfigModel.class); | |
| 67 | - mongoTemplate.remove(Query.query(Criteria.where("parentId").is(hospitalId).and("type").is(SequenceConstant.CUSTOM_CONTENT)), PlantformConfigModel.class); | |
| 65 | + mongoTemplate.remove(Query.query(Criteria.where("id").is(id)), PlantformConfigModel.class); | |
| 66 | + mongoTemplate.remove(Query.query(Criteria.where("parentId").is(id)), PlantformConfigModel.class); | |
| 68 | 67 | return RespBuilder.buildSuccess(); |
| 69 | 68 | } |
| 70 | 69 |