Commit 919a7799b16cf6578626c5d003d52d1c4f6a7959
1 parent
f7720d7a5d
Exists in
master
and in
6 other branches
改字段
Showing 1 changed file with 1 additions and 1 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
919a779
... | ... | @@ -135,7 +135,7 @@ |
135 | 135 | mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(patientId)), Update.update("isSendCoupon", true), Patients.class); |
136 | 136 | |
137 | 137 | /** 如果配置了医院打印人数 mongo人数自增1 */ |
138 | - PlantformConfigModel model = mongoTemplate.findOne(Query.query(Criteria.where("key").is(hospitalId)), PlantformConfigModel.class); | |
138 | + PlantformConfigModel model = mongoTemplate.findOne(Query.query(Criteria.where("key").is(hospitalId).and("type").is(SequenceConstant.HOSPITAL_COUPON_CODE)), PlantformConfigModel.class); | |
139 | 139 | if(model != null) { |
140 | 140 | String value = model.getValue(); |
141 | 141 | Map<Integer, Integer> map = new HashMap<>(); |