Commit 09372a906961245c6c7f55983a431eb485ae9a9f

Authored by litao@lymsh.com
1 parent 9226baaafb

体重管理相关代码

Showing 1 changed file with 10 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 09372a9
... ... @@ -232,6 +232,16 @@
232 232 map.put("phone", patients.getPhone());
233 233 map.put("dueDate", DateUtil.getyyyy_MM_dd(patients.getDueDate()));
234 234 map.put("age", DateUtil.getAge(patients.getBirth()));
  235 + Integer week = DateUtil.getWeek(patients.getLastMenses(), new Date());
  236 + String yunqi = "";
  237 + if(week < 12) {
  238 + yunqi = "孕早期";
  239 + } else if(week >= 12 && week <= 28) {
  240 + yunqi = "孕中期";
  241 + } else {
  242 + yunqi = "孕晚期";
  243 + }
  244 + map.put("yunqi", yunqi);
235 245 }
236 246 map.put("height", patientWeight.getBeforeHeight());
237 247 map.put("beforeWeight", patientWeight.getBeforeWeight());