Commit fa69789beada34e52a0b15feb532d1497d3b5272

Authored by liquanyu
1 parent 1eef97bc12

孕妇优惠劵建档使用时间修改

Showing 1 changed file with 6 additions and 2 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java View file @ fa69789
... ... @@ -329,7 +329,9 @@
329 329 if (1 == personType || 3 == personType) {
330 330 Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class);
331 331 if (patients != null) {
332   - couponInfo.setUseDate(patients.getBookbuildingDate());
  332 + //徐倩要求添加的 ,以后有什么问题她负责 20180712
  333 + couponInfo.setUseDate(new Date());
  334 + //couponInfo.setUseDate(patients.getBookbuildingDate());
333 335 couponInfo.setOperatorUseId(patients.getBookbuildingDoctor());
334 336 couponInfo.setUsedHospitalId(patients.getHospitalId());
335 337 couponInfo.setUsedId(patients.getId());
... ... @@ -337,7 +339,9 @@
337 339 } else {
338 340 BabyModel baby = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), BabyModel.class);
339 341 if (baby != null) {
340   - couponInfo.setUseDate(baby.getBuildDate());
  342 + //徐倩要求添加的 ,以后有什么问题她负责 20180712
  343 + couponInfo.setUseDate(new Date());
  344 + //couponInfo.setUseDate(baby.getBuildDate());
341 345 couponInfo.setOperatorUseId(baby.getBuildDoctor());
342 346 couponInfo.setUsedHospitalId(baby.getHospitalId());
343 347 couponInfo.setUsedId(baby.getId());