Commit 9ced385eb2db95a476879305e48c3383d99d0b6f

Authored by litao
1 parent f0eab9ea9a

分娩券按照末次月经对比

Showing 1 changed file with 5 additions and 1 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java View file @ 9ced385
... ... @@ -176,6 +176,9 @@
176 176 continue;
177 177 }
178 178  
  179 +
  180 +
  181 +
179 182 Object actualStart = temp.get("actual_start");
180 183 Object actualEnd = temp.get("actual_end");
181 184 Object unitType = temp.get("unit_type");
... ... @@ -383,7 +386,8 @@
383 386 midDate = baby.getBirth();
384 387 } else {
385 388 Patients patient = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class);
386   - if(personType == 1) { /** 孕妇根据末次月经对比 */
  389 +
  390 + if(personType == 1 || couponType.equals("4")) { /** 孕妇根据末次月经对比 分娩券按照末次月经对比 */
387 391 midDate = patient.getLastMenses();
388 392 } else if(personType == 3) { /** 产妇根据分娩时间对比 */
389 393 midDate = patient.getFmDate();