Commit bc225eac84426247d477e624120cd623b22e3568
Exists in
master
and in
6 other branches
Merge remote-tracking branch 'origin/master'
Showing 1 changed file
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
bc225ea
| ... | ... | @@ -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<>(); |