浏览代码

修复接诊人次

hsh 2 年之前
父节点
当前提交
d8594f6ff5
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/cn/hnthyy/thmz/controller/mz/ChargeFeeVoController.java

+ 4 - 4
src/main/java/cn/hnthyy/thmz/controller/mz/ChargeFeeVoController.java

@@ -1376,7 +1376,7 @@ public class ChargeFeeVoController {
                     // 门诊就诊人数
                     Map<String, Object> rsMap = clinicService.queryMzVisitRs(beginDate, endDate, (String) map.get("doctor_code"), (String) map.get("charge_date"));
                     map.put("patient_num", rsMap.get("patient_num"));
-                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? "" :
+                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? 0 :
                             BigDecimal.valueOf((Double) map.get("je")).divide(new BigDecimal((Long) rsMap.get("patient_num")), RoundingMode.CEILING));
                     if(employee!=null){
                         map.put("doctor_name",employee.getEmployeeName());
@@ -1408,7 +1408,7 @@ public class ChargeFeeVoController {
                     // 门诊就诊人数
                     Map<String, Object> rsMap = clinicService.queryMzVisitRs(beginDate, endDate, (String) map.get("doctor_code"), (String) map.get("charge_date"));
                     map.put("patient_num", rsMap.get("patient_num"));
-                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? "" :
+                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? 0 :
                             BigDecimal.valueOf((Double) map.get("je")).divide(new BigDecimal((Long) rsMap.get("patient_num")), RoundingMode.CEILING));
                     if(employee!=null){
                         map.put("doctor_name",employee.getEmployeeName());
@@ -1480,7 +1480,7 @@ public class ChargeFeeVoController {
                     // 门诊就诊人数
                     Map<String, Object> rsMap = clinicService.queryMzVisitRs(beginDate, endDate, (String) map.get("doctor_code"), null);
                     map.put("patient_num", rsMap.get("patient_num"));
-                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? "" :
+                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? 0 :
                             BigDecimal.valueOf((Double) map.get("je")).divide(new BigDecimal((Long) rsMap.get("patient_num")), RoundingMode.CEILING));
                     if(employee!=null){
                         map.put("doctor_name",employee.getEmployeeName());
@@ -1512,7 +1512,7 @@ public class ChargeFeeVoController {
                     // 门诊就诊人数
                     Map<String, Object> rsMap = clinicService.queryMzVisitRs(beginDate, endDate, (String) map.get("doctor_code"), null);
                     map.put("patient_num", rsMap.get("patient_num"));
-                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? "" :
+                    map.put("avg_fee", (String.valueOf(rsMap.get("patient_num")).equals("0")) ? 0 :
                             BigDecimal.valueOf((Double) map.get("je")).divide(new BigDecimal((Long) rsMap.get("patient_num")), RoundingMode.CEILING));
                     if(employee!=null){
                         map.put("doctor_name",employee.getEmployeeName());