Commit 049782541ec453a00f49dd5b323689c941b86692
1 parent
2f3934b26f
Exists in
master
and in
8 other branches
导出增加内容
Showing 5 changed files with 33 additions and 2 deletions
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanChanResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanPatientsResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/RiskPatientsResult.java
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
0497825
| ... | ... | @@ -1899,6 +1899,7 @@ |
| 1899 | 1899 | data.put("birthday", StringUtils.emptyDeal(DateUtil.getyyyy_MM_dd(model.getBirth()))); |
| 1900 | 1900 | data.put("mommyName", StringUtils.emptyDeal(model.getMname())); |
| 1901 | 1901 | data.put("mommnyPhone", StringUtils.emptyDeal(model.getMphone())); |
| 1902 | + data.put("serviceType", StringUtils.emptyDeal(model.getServiceType() == null ? "" : ServiceTypeEnums.getTitleById(model.getServiceType()))); | |
| 1902 | 1903 | data.put("serviceStatus", StringUtils.emptyDeal(model.getServiceStatus() == null ? "" : ServiceStatusEnums.getNameById(model.getServiceStatus()))); |
| 1903 | 1904 | data.put("nextDate", StringUtils.emptyDeal(DateUtil.getyyyy_MM_dd(model.getNextDate()))); |
| 1904 | 1905 | data.put("monthAge", StringUtils.emptyDeal(DateUtil.getBabyMonthAge(model.getBirth(), new Date()))); |
| ... | ... | @@ -1926,6 +1927,7 @@ |
| 1926 | 1927 | cnames.put("birthday", "儿童生日"); |
| 1927 | 1928 | cnames.put("mommyName", "母亲姓名"); |
| 1928 | 1929 | cnames.put("mommnyPhone", "联系方式"); |
| 1930 | + cnames.put("serviceType", "服务类型"); | |
| 1929 | 1931 | cnames.put("serviceStatus", "服务状态"); |
| 1930 | 1932 | cnames.put("nextDate", "下次预约时间"); |
| 1931 | 1933 | cnames.put("monthAge", "月龄"); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
0497825
| ... | ... | @@ -631,6 +631,8 @@ |
| 631 | 631 | data.put("checkDoctor", rp.getCheckDoctor()); |
| 632 | 632 | data.put("lName", rp.getlName()); |
| 633 | 633 | data.put("phone", rp.getRealPhone()); |
| 634 | + data.put("serviceType", rp.getServiceType()); | |
| 635 | + data.put("serviceStatus", rp.getServiceStatus()); | |
| 634 | 636 | datas.add(data); |
| 635 | 637 | } |
| 636 | 638 | cnames.put("name", "姓名"); |
| ... | ... | @@ -646,7 +648,8 @@ |
| 646 | 648 | cnames.put("checkDoctor", "产检医生"); |
| 647 | 649 | cnames.put("lName", "登记人"); |
| 648 | 650 | cnames.put("phone", "联系方式"); |
| 649 | - | |
| 651 | + cnames.put("serviceType", "服务类型"); | |
| 652 | + cnames.put("serviceStatus", "服务状态"); | |
| 650 | 653 | } else if (patientsQueryRequest.getQueryType() == 1) { |
| 651 | 654 | listResponse = (BaseListResponse) queryHighRisk(patientsQueryRequest, null, 1, userId, null, Boolean.FALSE); |
| 652 | 655 | List list = listResponse.getData(); |
| ... | ... | @@ -656,7 +659,6 @@ |
| 656 | 659 | data.put("name", rp.getName()); |
| 657 | 660 | data.put("age", rp.getAge()); |
| 658 | 661 | data.put("dueWeek", rp.getDueWeek()); |
| 659 | - | |
| 660 | 662 | data.put("rLevel", getLevel(rp.getrLevel())); |
| 661 | 663 | data.put("cTimes", rp.getcTimes()); |
| 662 | 664 | data.put("cHTimes", rp.getcHTimes()); |
| ... | ... | @@ -666,6 +668,7 @@ |
| 666 | 668 | data.put("lName", rp.getlName()); |
| 667 | 669 | data.put("phone", rp.getRealPhone()); |
| 668 | 670 | data.put("serviceType", rp.getServiceType()); |
| 671 | + data.put("serviceStatus", rp.getServiceStatus()); | |
| 669 | 672 | datas.add(data); |
| 670 | 673 | } |
| 671 | 674 | cnames.put("name", "姓名"); |
| ... | ... | @@ -680,6 +683,7 @@ |
| 680 | 683 | cnames.put("lName", "登记人"); |
| 681 | 684 | cnames.put("phone", "联系方式"); |
| 682 | 685 | cnames.put("serviceType", "服务类型"); |
| 686 | + cnames.put("serviceStatus", "服务状态"); | |
| 683 | 687 | } else if (patientsQueryRequest.getQueryType() == 2) { |
| 684 | 688 | listResponse = (BaseListResponse) queryHighRisk(patientsQueryRequest, null, 3, userId, null, Boolean.FALSE); |
| 685 | 689 | List list = listResponse.getData(); |
| ... | ... | @@ -696,6 +700,8 @@ |
| 696 | 700 | data.put("checkDoctor", rp.getCheckDoctor()); |
| 697 | 701 | data.put("lName", rp.getlName()); |
| 698 | 702 | data.put("phone", rp.getRealPhone()); |
| 703 | + data.put("serviceType", "服务类型"); | |
| 704 | + data.put("serviceStatus", "服务类型"); | |
| 699 | 705 | datas.add(data); |
| 700 | 706 | } |
| 701 | 707 | cnames.put("name", "姓名"); |
| ... | ... | @@ -708,6 +714,8 @@ |
| 708 | 714 | cnames.put("checkDoctor", "检查医生"); |
| 709 | 715 | cnames.put("phone", "联系方式"); |
| 710 | 716 | cnames.put("lName", "登记人"); |
| 717 | + cnames.put("serviceType", "服务类型"); | |
| 718 | + cnames.put("serviceStatus", "服务状态"); | |
| 711 | 719 | } |
| 712 | 720 | } |
| 713 | 721 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanChanResult.java
View file @
0497825
| 1 | 1 | package com.lyms.platform.operate.web.result; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.common.base.IBasicResultConvert; |
| 4 | +import com.lyms.platform.common.enums.ServiceStatusEnums; | |
| 5 | +import com.lyms.platform.common.enums.ServiceTypeEnums; | |
| 4 | 6 | import com.lyms.platform.common.utils.DateUtil; |
| 5 | 7 | import com.lyms.platform.common.utils.StringUtils; |
| 6 | 8 | import com.lyms.platform.pojo.Patients; |
| ... | ... | @@ -275,6 +277,12 @@ |
| 275 | 277 | setDueWeek("终止妊娠"); |
| 276 | 278 | }else if(null!=destModel.getBuildType() &&2==destModel.getBuildType()){ |
| 277 | 279 | setDueWeek("-"); |
| 280 | + } | |
| 281 | + if(null!=destModel.getServiceType()){ | |
| 282 | + setServiceType(ServiceTypeEnums.getTitleById(destModel.getServiceType())); | |
| 283 | + } | |
| 284 | + if(null!=destModel.getServiceStatus()){ | |
| 285 | + setServiceStatus(ServiceStatusEnums.getNameById(destModel.getServiceStatus())); | |
| 278 | 286 | } |
| 279 | 287 | setPid(destModel.getPid()); |
| 280 | 288 | return this; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/QuanPatientsResult.java
View file @
0497825
| 1 | 1 | package com.lyms.platform.operate.web.result; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.common.base.IBasicResultConvert; |
| 4 | +import com.lyms.platform.common.enums.ServiceStatusEnums; | |
| 4 | 5 | import com.lyms.platform.common.enums.ServiceTypeEnums; |
| 5 | 6 | import com.lyms.platform.common.utils.DateUtil; |
| 6 | 7 | import com.lyms.platform.common.utils.JsonUtil; |
| ... | ... | @@ -292,6 +293,9 @@ |
| 292 | 293 | setlName(destModel.getPublishName()); |
| 293 | 294 | if(null!=destModel.getServiceType()){ |
| 294 | 295 | setServiceType(ServiceTypeEnums.getTitleById(destModel.getServiceType())); |
| 296 | + } | |
| 297 | + if(null!=destModel.getServiceStatus()){ | |
| 298 | + setServiceStatus(ServiceStatusEnums.getNameById(destModel.getServiceStatus())); | |
| 295 | 299 | } |
| 296 | 300 | return this; |
| 297 | 301 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/RiskPatientsResult.java
View file @
0497825
| ... | ... | @@ -3,6 +3,8 @@ |
| 3 | 3 | import com.lyms.platform.common.base.IBasicResultConvert; |
| 4 | 4 | import com.lyms.platform.common.core.annotation.form.Form; |
| 5 | 5 | import com.lyms.platform.common.core.annotation.form.FormParam; |
| 6 | +import com.lyms.platform.common.enums.ServiceStatusEnums; | |
| 7 | +import com.lyms.platform.common.enums.ServiceTypeEnums; | |
| 6 | 8 | import com.lyms.platform.common.utils.DateUtil; |
| 7 | 9 | import com.lyms.platform.common.utils.JsonUtil; |
| 8 | 10 | import com.lyms.platform.common.utils.StringUtils; |
| ... | ... | @@ -306,6 +308,13 @@ |
| 306 | 308 | this.dueWeek=StringUtils.dueWeek(days); |
| 307 | 309 | } |
| 308 | 310 | setPid(destModel.getPid()); |
| 311 | + | |
| 312 | + if(null!=destModel.getServiceType()){ | |
| 313 | + setServiceType(ServiceTypeEnums.getTitleById(destModel.getServiceType())); | |
| 314 | + } | |
| 315 | + if(null!=destModel.getServiceStatus()){ | |
| 316 | + setServiceStatus(ServiceStatusEnums.getNameById(destModel.getServiceStatus())); | |
| 317 | + } | |
| 309 | 318 | return this; |
| 310 | 319 | } |
| 311 | 320 | } |