Commit 351431f0bacfc3be30bd62ed411f4fb945bd17f1
1 parent
5b6388e15f
Exists in
master
and in
6 other branches
助产机构报表
Showing 2 changed files with 74 additions and 11 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
351431f
... | ... | @@ -20,7 +20,6 @@ |
20 | 20 | import com.lyms.platform.operate.web.worker.MaterDeliverWorker; |
21 | 21 | import com.lyms.platform.permission.model.Organization; |
22 | 22 | import com.lyms.platform.permission.model.OrganizationQuery; |
23 | -import com.lyms.platform.permission.model.PatientService; | |
24 | 23 | import com.lyms.platform.permission.model.Users; |
25 | 24 | import com.lyms.platform.permission.service.CouponService; |
26 | 25 | import com.lyms.platform.permission.service.OrganizationService; |
... | ... | @@ -2676,6 +2675,8 @@ |
2676 | 2675 | } |
2677 | 2676 | } |
2678 | 2677 | |
2678 | + sum(list,basicConfigs); | |
2679 | + | |
2679 | 2680 | Map<String,Object> data = new HashMap<>(); |
2680 | 2681 | data.put("coutData",list); |
2681 | 2682 | data.put("areaNames",areaNames); |
... | ... | @@ -2687,7 +2688,7 @@ |
2687 | 2688 | return objectResponse; |
2688 | 2689 | } |
2689 | 2690 | |
2690 | - public void sum(List<Map<String,String>> list) | |
2691 | + public void sum(List<Map<String,String>> list,List<BasicConfig> basicConfigs) | |
2691 | 2692 | { |
2692 | 2693 | |
2693 | 2694 | int fmPoGongCount = 0; //分娩方式 剖宫产 |
2694 | 2695 | |
2695 | 2696 | |
2696 | 2697 | |
2697 | 2698 | |
2698 | 2699 | |
... | ... | @@ -2724,13 +2725,76 @@ |
2724 | 2725 | { |
2725 | 2726 | for (Map<String,String> map : list) |
2726 | 2727 | { |
2728 | + fmPoGongCount += Integer.parseInt(map.get("fmPoGongCount")); //分娩方式 剖宫产 | |
2729 | + wsCount += Integer.parseInt(map.get("wsCount")); //外省 | |
2730 | + chanCount += Integer.parseInt(map.get("chanCount")); //产妇数 | |
2731 | + babySiTaiCount += Integer.parseInt(map.get("babySiTaiCount")); //死胎数 | |
2732 | + girlCount += Integer.parseInt(map.get("girlCount")); //女 | |
2733 | + boyCount += Integer.parseInt(map.get("boyCount")); //男 | |
2734 | + bswsCount += Integer.parseInt(map.get("bswsCount")); //本省外市 | |
2735 | + huoChanCount += Integer.parseInt(map.get("huoChanCount")); //活产数 | |
2736 | + babySiChanCount += Integer.parseInt(map.get("babySiChanCount")); //死产数 | |
2737 | + zcBabyCount += Integer.parseInt(map.get("zcBabyCount")); //早产儿数 | |
2738 | + huiYinFullCount += Integer.parseInt(map.get("huiYinFullCount")); //会阴情况 完好 | |
2739 | + siLielevelCount += Integer.parseInt(map.get("siLielevelCount")); //会阴情况 Ⅰ-Ⅱ°裂伤 | |
2740 | + siLielevelYzCount += Integer.parseInt(map.get("siLielevelYzCount")); //会阴情况 重度裂伤 | |
2741 | + queXianBabyCount += Integer.parseInt(map.get("queXianBabyCount")); //出生缺陷数 | |
2742 | + huiYingTotalCount += Integer.parseInt(map.get("huiYingTotalCount")); //会阴情况 小计 | |
2743 | + fmShunChanCount += Integer.parseInt(map.get("fmShunChanCount")); //分娩方式 顺产 | |
2744 | + riskCount += Integer.parseInt(map.get("riskCount")); //高危孕产妇数 | |
2745 | + fmCount += Integer.parseInt(map.get("fmCount")); //分娩方式 小计 | |
2746 | + doubleCount += Integer.parseInt(map.get("doubleCount")); //双胎数 | |
2747 | + huiYinSpitCount += Integer.parseInt(map.get("huiYinSpitCount")); //会阴情况 切开 | |
2748 | + fzrDoubleCount += Integer.parseInt(map.get("fzrDoubleCount")); //非自然妊娠双胎 | |
2749 | + } | |
2750 | + } | |
2727 | 2751 | |
2752 | + | |
2753 | + Map<String,String> totalMap = new LinkedHashMap<>(); | |
2754 | + | |
2755 | + //各个区总和计算 | |
2756 | + for (int i = 1 ; i <= basicConfigs.size() ; i++) | |
2757 | + { | |
2758 | + int total = 0; | |
2759 | + for (Map<String,String> map : list) | |
2760 | + { | |
2761 | + total += Integer.parseInt(map.get("areaCount"+i)); | |
2728 | 2762 | } |
2763 | + totalMap.put("areaCount"+i,String.valueOf(total)); | |
2729 | 2764 | } |
2730 | 2765 | |
2731 | - Map<String,String> totalMap = new HashMap<>(); | |
2732 | 2766 | |
2767 | + totalMap.put("orgName","合计"); | |
2768 | + totalMap.put("fmPoGongCount",String.valueOf(fmPoGongCount)); | |
2769 | + totalMap.put("wsCount",String.valueOf(wsCount)); | |
2770 | + totalMap.put("chanCount",String.valueOf(chanCount)); | |
2771 | + totalMap.put("babySiTaiCount",String.valueOf(babySiTaiCount)); | |
2772 | + totalMap.put("girlCount",String.valueOf(girlCount)); | |
2773 | + totalMap.put("boyCount",String.valueOf(boyCount)); | |
2774 | + totalMap.put("bswsCount",String.valueOf(bswsCount)); | |
2775 | + totalMap.put("huoChanCount",String.valueOf(huoChanCount)); | |
2776 | + totalMap.put("babySiChanCount",String.valueOf(babySiChanCount)); | |
2777 | + totalMap.put("zcBabyCount",String.valueOf(zcBabyCount)); | |
2778 | + totalMap.put("huiYinFullCount",String.valueOf(huiYinFullCount)); | |
2779 | + totalMap.put("siLielevelCount",String.valueOf(siLielevelCount)); | |
2780 | + totalMap.put("siLielevelYzCount",String.valueOf(siLielevelYzCount)); | |
2781 | + totalMap.put("queXianBabyCount",String.valueOf(queXianBabyCount)); | |
2782 | + totalMap.put("huiYingTotalCount",String.valueOf(huiYingTotalCount)); | |
2783 | + totalMap.put("fmShunChanCount",String.valueOf(fmShunChanCount)); | |
2733 | 2784 | |
2785 | + totalMap.put("riskCount",String.valueOf(riskCount)); | |
2786 | + totalMap.put("fmCount",String.valueOf(fmCount)); | |
2787 | + totalMap.put("doubleCount",String.valueOf(doubleCount)); | |
2788 | + totalMap.put("huiYinSpitCount",String.valueOf(huiYinSpitCount)); | |
2789 | + totalMap.put("fzrDoubleCount",String.valueOf(fzrDoubleCount)); | |
2790 | + | |
2791 | + totalMap.put("lowWeightCount",""); | |
2792 | + totalMap.put("babySiWangCount",""); | |
2793 | + totalMap.put("sieveCount",""); | |
2794 | + totalMap.put("bigBoyCount",""); | |
2795 | + totalMap.put("sieveFreeCount",""); | |
2796 | + totalMap.put("fmOtherCount",""); | |
2797 | + list.add(totalMap); | |
2734 | 2798 | } |
2735 | 2799 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/DueOrgCountWorker.java
View file @
351431f
... | ... | @@ -15,7 +15,6 @@ |
15 | 15 | import com.lyms.platform.pojo.MaternalDeliverModel; |
16 | 16 | import com.lyms.platform.pojo.Patients; |
17 | 17 | import com.lyms.platform.query.BabyModelQuery; |
18 | -import com.lyms.platform.query.BasicConfigQuery; | |
19 | 18 | import com.lyms.platform.query.MatDeliverQuery; |
20 | 19 | import com.lyms.platform.query.PatientsQuery; |
21 | 20 | |
... | ... | @@ -431,7 +430,7 @@ |
431 | 430 | patientsQuery4.setType(3); |
432 | 431 | patientsQuery4.setAreaRegisterId(basicConfig.getId()); |
433 | 432 | int areaCount = patientsService.queryPatientCount(patientsQuery4); |
434 | - map.put("areaCount"+index+basicConfig.getName(), String.valueOf(areaCount)); | |
433 | + map.put("areaCount"+index, String.valueOf(areaCount)); | |
435 | 434 | index++; |
436 | 435 | } |
437 | 436 | } |