Pārlūkot izejas kodu

解决报错异常

hurugang 3 gadi atpakaļ
vecāks
revīzija
43f91fa049

+ 6 - 4
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -1939,11 +1939,13 @@ public class MedicalViewApiController {
             List<MzChargeDetail> mzChargeDetails = mzChargeDetailService.queryMzChargeDetailWithPage(mzChargeDetailPageDto);
             List<SfjkMzbrxxVo> resultList = new ArrayList<>();
             if (mzChargeDetails != null && mzChargeDetails.size() > 0) {
-                List<String> doctorCodes = mzChargeDetails.stream().filter(u -> StringUtils.isNotBlank(u.getDoctorCode())).map(u -> u.getDoctorCode()).collect(Collectors.toList());
+                Set<String> doctorCodes = mzChargeDetails.stream().filter(u -> StringUtils.isNotBlank(u.getDoctorCode())).map(u -> u.getDoctorCode()).collect(Collectors.toSet());
                 Map<String, String> employeeMap = null;
-                List<Employee> employees = employeeService.queryByCodes(doctorCodes);
-                if (employees != null) {
-                    employeeMap = employees.stream().collect(Collectors.toMap(Employee::getEmployeeCode, Employee::getEmployeeName));
+                if(doctorCodes!=null && doctorCodes.size()>0){
+                    List<Employee> employees = employeeService.queryByCodes(new ArrayList<>(doctorCodes));
+                    if (employees != null) {
+                        employeeMap = employees.stream().collect(Collectors.toMap(Employee::getEmployeeCode, Employee::getEmployeeName));
+                    }
                 }
                 for (MzChargeDetail mz : mzChargeDetails) {
                     if (mz != null) {

+ 16 - 14
src/main/java/cn/hnthyy/thmz/controller/mz/MzChargeDetailController.java

@@ -1080,7 +1080,7 @@ public class MzChargeDetailController {
                         map.put("parent", zyZdAuditItem.getParentCode());
                         map.put("audit_code", zyZdAuditItem.getName());
                     } else {
-                        log.info(" 没有父类型{},{}",auditCode);
+                        log.info(" 没有父类型{},{}", auditCode);
                     }
                     map.put("exec_dept", zdUnitCodeService.queryDeptNameByIdInCache((String) map.get("exec_dept")));
                     fomartData(mzBillItemMap, parentList, depetList, depetSet, parentMap, map);
@@ -1280,7 +1280,7 @@ public class MzChargeDetailController {
                 DecodedJWT decodedJWT = TokenUtil.parseJWT(token);
                 User tokenUser = (User) JsonUtil.jsontoObject(decodedJWT.getSubject(), User.class);
                 PayInfo result = tsmzService.uploadFees(tokenUser.getUserIdCode(), mzChargeDetailYb.getPatientId(), mzChargeDetailYb.getTimes(), mzChargeDetailYb.getReceiptNo());
-                if (result.getCode() != 0) {
+                if (result == null || result.getCode() != 0) {
                     resultMap.put("code", -1);
                     resultMap.put("message", result.getErrorMessage());
                     return resultMap;
@@ -1341,6 +1341,11 @@ public class MzChargeDetailController {
                 DecodedJWT decodedJWT = TokenUtil.parseJWT(token);
                 User tokenUser = (User) JsonUtil.jsontoObject(decodedJWT.getSubject(), User.class);
                 PayInfo result = tsmzService.retractFees(tokenUser.getUserIdCode(), mzChargeDetailYb.getPatientId(), mzChargeDetailYb.getTimes(), mzChargeDetailYb.getReceiptNo());
+                if (result == null || result.getCode() != 0) {
+                    resultMap.put("code", -1);
+                    resultMap.put("message", result.getErrorMessage());
+                    return resultMap;
+                }
                 resultMap.put("data", result);
             }
             resultMap.put("code", 0);
@@ -1373,7 +1378,7 @@ public class MzChargeDetailController {
                 return results;
             }
             Clinic clinic = mzChargeDetailService.nucleicAcidApplication(patientId);
-            if (clinic != null && clinic.getId()!=null) {
+            if (clinic != null && clinic.getId() != null) {
                 results.put("code", 0);
                 results.put("message", "核酸申请保存成功");
                 return results;
@@ -1430,7 +1435,7 @@ public class MzChargeDetailController {
             }
             mzPrescriptionVo.setJzFlag(YesNoEnum.NO.code);
             Clinic insertClinic = mzChargeDetailService.savePrescription(mzPrescriptionVo, clinic);
-            if (insertClinic != null && insertClinic.getId()!=null) {
+            if (insertClinic != null && insertClinic.getId() != null) {
                 resultMap.put("code", 0);
                 resultMap.put("data", insertClinic);
                 resultMap.put("message", "门诊处方保存成功");
@@ -1517,9 +1522,9 @@ public class MzChargeDetailController {
                     if (clinic != null) {
                         resultMap.put("opDate", DateUtil.fomart(clinic.getOpDay(), "yyyy-MM-dd HH:mm:ss"));
                         resultMap.put("deptName", zdUnitCodeService.queryDeptNameByIdInCache(clinic.getDeptCode()));
-                        if(clinic.getDoctorCode()!=null && StringUtils.isNotBlank(clinic.getDoctorCode())){
-                            Employee employee= employeeService.queryByUserCode(clinic.getDoctorCode());
-                            resultMap.put("doctorName", employee!=null?employee.getEmployeeName():"");
+                        if (clinic.getDoctorCode() != null && StringUtils.isNotBlank(clinic.getDoctorCode())) {
+                            Employee employee = employeeService.queryByUserCode(clinic.getDoctorCode());
+                            resultMap.put("doctorName", employee != null ? employee.getEmployeeName() : "");
                         }
                     }
                 }
@@ -1622,7 +1627,7 @@ public class MzChargeDetailController {
             results.put("message", "门诊缴费指引单查询成功");
             results.put("totalAmount", totalAmount.divide(BigDecimal.valueOf(100)).setScale(1, BigDecimal.ROUND_HALF_UP));
             results.put("data", returnList);
-            if(payQrcode!=null){
+            if (payQrcode != null) {
                 results.put("payQrcode", payQrcode);
             }
             return results;
@@ -1636,13 +1641,12 @@ public class MzChargeDetailController {
     }
 
 
-
     /**
      * 打印医技申请单
      *
      * @param patientId
      * @param times
-     * @param reqType 申请单类型:2:检验;3:检查
+     * @param reqType   申请单类型:2:检验;3:检查
      * @return
      */
     @UserLoginToken
@@ -1667,13 +1671,13 @@ public class MzChargeDetailController {
         try {
             results.put("code", 0);
             results.put("message", "查询医技申请单数据成功");
-            results.put("data", mzChargeDetailService.printYjReq(patientId,times,reqType));
+            results.put("data", mzChargeDetailService.printYjReq(patientId, times, reqType));
             return results;
         } catch (MzException e) {
             results.put("code", -1);
             results.put("message", "查询医技申请单数据失败,请联系管理员");
             return results;
-        }catch (Exception e) {
+        } catch (Exception e) {
             results.put("code", -1);
             results.put("message", "查询医技申请单数据失败,请联系管理员");
             log.error("系统异常,错误信息{}", e);
@@ -1774,8 +1778,6 @@ public class MzChargeDetailController {
 //    }
 
 
-
-
     /**
      * 清洗历史数据
      *

+ 4 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -2469,7 +2469,10 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
             times = 0;
             if (count > 0) {
                 //PayInfo result=
-                tsmzService.retractFees(opId, mzChargeDetailYb.getPatientId(), mzChargeDetailYb.getTimes(), mzChargeDetailYb.getReceiptNo());
+                PayInfo result =tsmzService.retractFees(opId, mzChargeDetailYb.getPatientId(), mzChargeDetailYb.getTimes(), mzChargeDetailYb.getReceiptNo());
+                if (result == null || result.getCode() != 0) {
+                    throw new MzException("退费失败,特门退费失败!");
+                }
             }
             mzYpFydlMapper.deleteMzYpFydl(mzDepositFileVo.getPatientId(), mzDepositFileVo.getTimes(), mzDepositFileVo.getReceiptNo());
         } else {

+ 134 - 0
src/main/resources/static/js/mz/daily_repeat_print.js

@@ -72,153 +72,221 @@ function extractedSf (res,flag) {
     $("#xjbs").html(res.chargeCountVo.xjbs);
     if (res.chargeCountVo.xjsk != null) {
         $("#xjsk").html(res.chargeCountVo.xjsk.toFixed(2));
+    }else {
+        $("#xjsk").html(0.00);
     }
     $("#xjtfbs").html(res.chargeCountVo.xjtfbs);
     if (res.chargeCountVo.xjtf != null) {
         $("#xjtf").html(res.chargeCountVo.xjtf.toFixed(2));
+    }else {
+        $("#xjtf").html(0.00);
     }
     $("#xjssbs").html(res.chargeCountVo.xjssbs);
     if (res.chargeCountVo.xjss != null) {
         $("#xjss").html(res.chargeCountVo.xjss.toFixed(2));
+    }else {
+        $("#xjss").html(0.00);
     }
     //银行卡收款
     $("#yhsbs").html(res.chargeCountVo.yhsbs);
     if (res.chargeCountVo.yhksk != null) {
         $("#yhksk").html(res.chargeCountVo.yhksk.toFixed(2));
+    }else {
+        $("#yhksk").html(0.00);
     }
     $("#yhktfbs").html(res.chargeCountVo.yhktfbs);
     if (res.chargeCountVo.yhktf != null) {
         $("#yhktf").html(res.chargeCountVo.yhktf.toFixed(2));
+    }else {
+        $("#yhktf").html(0.00);
     }
     $("#yhkssbs").html(res.chargeCountVo.yhkssbs);
     if (res.chargeCountVo.yhkss != null) {
         $("#yhkss").html(res.chargeCountVo.yhkss.toFixed(2));
+    }else {
+        $("#yhkss").html(0.00);
     }
     //医保卡记账卡收款
     $("#ybkjzbs").html(res.chargeCountVo.ybjzbs);
     if (res.chargeCountVo.ybjzsk != null) {
         $("#ybkjzsk").html(res.chargeCountVo.ybjzsk.toFixed(2));
+    }else {
+        $("#ybkjzsk").html(0.00);
     }
     $("#ybkjztfbs").html(res.chargeCountVo.ybjztfbs);
     if (res.chargeCountVo.ybjztf != null) {
         $("#ybkjztf").html(res.chargeCountVo.ybjztf.toFixed(2));
+    }else {
+        $("#ybkjztf").html(0.00);
     }
     $("#ybkjzssbs").html(res.chargeCountVo.ybjzssbs);
     if (res.chargeCountVo.ybjzss != null) {
         $("#ybkjzss").html(res.chargeCountVo.ybjzss.toFixed(2));
+    }else {
+        $("#ybkjzss").html(0.00);
     }
     if(flag){
         //支付宝自助收款
         $("#zfbbs").html(res.chargeCountVo.zfbzzbs);
         if (res.chargeCountVo.zfbzzsk != null) {
             $("#zfbsk").html(res.chargeCountVo.zfbzzsk.toFixed(2));
+        }else {
+            $("#zfbsk").html(0.00);
         }
         $("#zfbtfbs").html(res.chargeCountVo.zfbzztfbs);
         if (res.chargeCountVo.zfbzztf != null) {
             $("#zfbtf").html(res.chargeCountVo.zfbzztf.toFixed(2));
+        }else {
+            $("#zfbtf").html(0.00);
         }
         $("#zfbssbs").html(res.chargeCountVo.zfbzzssbs);
         if (res.chargeCountVo.zfbzzss != null) {
             $("#zfbss").html(res.chargeCountVo.zfbzzss.toFixed(2));
+        }else {
+            $("#zfbss").html(0.00);
         }
         //微信自助收款
         $("#wxbs").html(res.chargeCountVo.wxzzbs);
         if (res.chargeCountVo.wxzzsk != null) {
             $("#wxsk").html(res.chargeCountVo.wxzzsk.toFixed(2));
+        }else {
+            $("#wxsk").html(0.00);
         }
         $("#wxtfbs").html(res.chargeCountVo.wxzztfbs);
         if (res.chargeCountVo.wxzztf != null) {
             $("#wxtf").html(res.chargeCountVo.wxzztf.toFixed(2));
+        }else {
+            $("#wxtf").html(0.00);
         }
         $("#wxssbs").html(res.chargeCountVo.wxzzssbs);
         if (res.chargeCountVo.wxzzss != null) {
             $("#wxss").html(res.chargeCountVo.wxzzss.toFixed(2));
+        }else {
+            $("#wxss").html(0.00);
         }
     }else {
         //支付宝收款
         $("#zfbbs").html(res.chargeCountVo.zfbbs);
         if (res.chargeCountVo.zfbsk != null) {
             $("#zfbsk").html(res.chargeCountVo.zfbsk.toFixed(2));
+        }else {
+            $("#zfbsk").html(0.00);
         }
         $("#zfbtfbs").html(res.chargeCountVo.zfbtfbs);
         if (res.chargeCountVo.zfbtf != null) {
             $("#zfbtf").html(res.chargeCountVo.zfbtf.toFixed(2));
+        }else {
+            $("#zfbtf").html(0.00);
         }
         $("#zfbssbs").html(res.chargeCountVo.zfbssbs);
         if (res.chargeCountVo.zfbss != null) {
             $("#zfbss").html(res.chargeCountVo.zfbss.toFixed(2));
+        }else {
+            $("#zfbss").html(0.00);
         }
         //微信收款
         $("#wxbs").html(res.chargeCountVo.wxbs);
         if (res.chargeCountVo.wxsk != null) {
             $("#wxsk").html(res.chargeCountVo.wxsk.toFixed(2));
+        }else {
+            $("#wxsk").html(0.00);
         }
         $("#wxtfbs").html(res.chargeCountVo.wxtfbs);
         if (res.chargeCountVo.wxtf != null) {
             $("#wxtf").html(res.chargeCountVo.wxtf.toFixed(2));
+        }else {
+            $("#wxtf").html(0.00);
         }
         $("#wxssbs").html(res.chargeCountVo.wxssbs);
         if (res.chargeCountVo.wxss != null) {
             $("#wxss").html(res.chargeCountVo.wxss.toFixed(2));
+        }else {
+            $("#wxss").html(0.00);
         }
     }
     //记账绿色通道收款
     $("#zfbs").html(res.chargeCountVo.zfbs);
     if (res.chargeCountVo.zfsk != null) {
         $("#zfsk").html(res.chargeCountVo.zfsk.toFixed(2));
+    }else {
+        $("#zfsk").html(0.00);
     }
     $("#zftfbs").html(res.chargeCountVo.zftfbs);
     if (res.chargeCountVo.zftf != null) {
         $("#zftf").html(res.chargeCountVo.zftf.toFixed(2));
+    }else {
+        $("#zftf").html(0.00);
     }
     $("#zfssbs").html(res.chargeCountVo.zfssbs);
     if (res.chargeCountVo.zfss != null) {
         $("#zfss").html(res.chargeCountVo.zfss.toFixed(2));
+    }else {
+        $("#zfss").html(0.00);
     }
     //医保卡收款
     $("#sybbs").html(res.chargeCountVo.sybbs);
     if (res.chargeCountVo.sybksk != null) {
         $("#sybksk").html(res.chargeCountVo.sybksk.toFixed(2));
+    }else {
+        $("#sybksk").html(0.00);
     }
     $("#sybtfbs").html(res.chargeCountVo.sybtfbs);
     if (res.chargeCountVo.sybtf != null) {
         $("#sybtf").html(res.chargeCountVo.sybtf.toFixed(2));
+    }else {
+        $("#sybtf").html(0.00);
     }
     $("#sybssbs").html(res.chargeCountVo.sybssbs);
     if (res.chargeCountVo.sybkss != null) {
         $("#sybkss").html(res.chargeCountVo.sybkss.toFixed(2));
+    }else {
+        $("#sybkss").html(0.00);
     }
     //总计收款
     $("#zjbs").html(res.chargeCountVo.zjbs);
     if (res.chargeCountVo.zjsk != null) {
         $("#zjsk").html(res.chargeCountVo.zjsk.toFixed(2));
+    }else {
+        $("#zjsk").html(0.00);
     }
     $("#ztfbs").html(res.chargeCountVo.ztfbs);
     if (res.chargeCountVo.zjtk != null) {
         $("#zjtk").html(res.chargeCountVo.zjtk.toFixed(2));
+    }else {
+        $("#zjtk").html(0.00);
     }
     $("#zjssbs").html(res.chargeCountVo.zjssbs);
     if (res.chargeCountVo.zjss != null) {
         $("#zjss").html(res.chargeCountVo.zjss.toFixed(2));
+    }else {
+        $("#zjss").html(0.00);
     }
 
 
     if (res.chargeCountVo.sjhj != null) {
         $("#sjhj").html(res.chargeCountVo.sjhj.toFixed(2));
+    }else {
+        $("#sjhj").html(0.00);
     }
     $("#sjhjdx").html(res.chargeCountVo.sjhjdx);
     if (res.chargeCountVo.zfss != null) {
         $("#zfsshj").html(res.chargeCountVo.zfss.toFixed(2));
+    }else {
+        $("#zfsshj").html(0.00);
     }
     $("#zfdx").html(res.chargeCountVo.zfdx);
 
     if (res.chargeCountVo.ybjzss != null) {
         $("#ybkjzhj").html(res.chargeCountVo.ybjzss.toFixed(2));
+    }else {
+        $("#ybkjzhj").html(0.00);
     }
     $("#ybkjzhjdx").html(res.chargeCountVo.ybkjzhjdx);
 
     if (res.chargeCountVo.zj != null) {
         $("#zj").html(res.chargeCountVo.zj.toFixed(2));
+    }else {
+        $("#zj").html(0.00);
     }
     $("#zjdx").html(res.chargeCountVo.zjdx);
 }
@@ -234,145 +302,211 @@ function extractedGh (res,flag) {
     $("#ghxjbs").html(res.ghsrgcmx.xjhs);
     if (res.ghsrgcmx.xjsk != null) {
         $("#ghxjsk").html(res.ghsrgcmx.xjsk.toFixed(2));
+    }else {
+        $("#ghxjsk").html(0.00);
     }
     $("#ghxjtfbs").html(res.ghsrgcmx.xjthhs);
     if (res.ghsrgcmx.xjth != null) {
         $("#ghxjtf").html(res.ghsrgcmx.xjth.toFixed(2));
+    }else {
+        $("#ghxjtf").html(0.00);
     }
     $("#ghxjssbs").html(res.ghsrgcmx.xjsshs);
     if (res.ghsrgcmx.xjss != null) {
         $("#ghxjss").html(res.ghsrgcmx.xjss.toFixed(2));
+    }else {
+        $("#ghxjss").html(0.00);
     }
     //银行卡收款
     $("#ghyhsbs").html(res.ghsrgcmx.yhkhs);
     if (res.ghsrgcmx.yhksk != null) {
         $("#ghyhksk").html(res.ghsrgcmx.yhksk.toFixed(2));
+    }else {
+        $("#ghyhksk").html(0.00);
     }
     $("#ghyhktfbs").html(res.ghsrgcmx.yhkthhs);
     if (res.ghsrgcmx.yhkth != null) {
         $("#ghyhktf").html(res.ghsrgcmx.yhkth.toFixed(2));
+    }else {
+        $("#ghyhktf").html(0.00);
     }
     $("#ghyhkssbs").html(res.ghsrgcmx.yhksshs);
     if (res.ghsrgcmx.yhkss != null) {
         $("#ghyhkss").html(res.ghsrgcmx.yhkss.toFixed(2));
+    }else {
+        $("#ghyhkss").html(0.00);
     }
     //医保卡卡收款
     $("#ghsybbs").html(res.ghsrgcmx.ybkhs);
     if (res.ghsrgcmx.ybksk != null) {
         $("#ghsybksk").html(res.ghsrgcmx.ybksk.toFixed(2));
+    }else {
+        $("#ghsybksk").html(0.00);
     }
     $("#ghsybtfbs").html(res.ghsrgcmx.ybkthhs);
     if (res.ghsrgcmx.ybkth != null) {
         $("#ghsybtf").html(res.ghsrgcmx.ybkth.toFixed(2));
+    }else {
+        $("#ghsybtf").html(0.00);
     }
     $("#ghsybssbs").html(res.ghsrgcmx.ybksshs);
     if (res.ghsrgcmx.ybkss != null) {
         $("#ghsybkss").html(res.ghsrgcmx.ybkss.toFixed(2));
+    }else {
+        $("#ghsybkss").html(0.00);
     }
     if(flag){
         //支付宝自助收款
         $("#ghzfbbs").html(res.ghsrgcmx.zfbzzhs);
         if (res.ghsrgcmx.zfbzzsk != null) {
             $("#ghzfbsk").html(res.ghsrgcmx.zfbzzsk.toFixed(2));
+        }else {
+            $("#ghzfbsk").html(0.00);
         }
         $("#ghzfbtfbs").html(res.ghsrgcmx.zfbzzthhs);
         if (res.ghsrgcmx.zfbzzth != null) {
             $("#ghzfbtf").html(res.ghsrgcmx.zfbzzth.toFixed(2));
+        }else {
+            $("#ghzfbtf").html(0.00);
         }
         $("#ghzfbssbs").html(res.ghsrgcmx.zfbzzsshs);
         if (res.ghsrgcmx.zfbzzss != null) {
             $("#ghzfbss").html(res.ghsrgcmx.zfbzzss.toFixed(2));
+        }else {
+            $("#ghzfbss").html(0.00);
         }
         //微信自助收款
         $("#ghwxbs").html(res.ghsrgcmx.wxzzhs);
         if (res.ghsrgcmx.wxzzsk != null) {
             $("#ghwxsk").html(res.ghsrgcmx.wxzzsk.toFixed(2));
+        }else {
+            $("#ghwxsk").html(0.00);
         }
         $("#ghwxtfbs").html(res.ghsrgcmx.wxzzthhs);
         if (res.ghsrgcmx.wxzzth != null) {
             $("#ghwxtf").html(res.ghsrgcmx.wxzzth.toFixed(2));
+        }else {
+            $("#ghwxtf").html(0.00);
         }
         $("#ghwxssbs").html(res.ghsrgcmx.wxzzsshs);
         if (res.ghsrgcmx.wxzzss != null) {
             $("#ghwxss").html(res.ghsrgcmx.wxzzss.toFixed(2));
+        }else {
+            $("#ghwxss").html(0.00);
         }
     }else {
         //支付宝收款
         $("#ghzfbbs").html(res.ghsrgcmx.zfbhs);
         if (res.ghsrgcmx.zfbsk != null) {
             $("#ghzfbsk").html(res.ghsrgcmx.zfbsk.toFixed(2));
+        }else {
+            $("#ghzfbsk").html(0.00);
         }
         $("#ghzfbtfbs").html(res.ghsrgcmx.zfbthhs);
         if (res.ghsrgcmx.zfbth != null) {
             $("#ghzfbtf").html(res.ghsrgcmx.zfbth.toFixed(2));
+        }else {
+            $("#ghzfbtf").html(0.00);
         }
         $("#ghzfbssbs").html(res.ghsrgcmx.zfbsshs);
         if (res.ghsrgcmx.zfbss != null) {
             $("#ghzfbss").html(res.ghsrgcmx.zfbss.toFixed(2));
+        }else {
+            $("#ghzfbss").html(0.00);
         }
         //微信收款
         $("#ghwxbs").html(res.ghsrgcmx.wxhs);
         if (res.ghsrgcmx.wxsk != null) {
             $("#ghwxsk").html(res.ghsrgcmx.wxsk.toFixed(2));
+        }else {
+            $("#ghwxsk").html(0.00);
         }
         $("#ghwxtfbs").html(res.ghsrgcmx.wxthhs);
         if (res.ghsrgcmx.wxth != null) {
             $("#ghwxtf").html(res.ghsrgcmx.wxth.toFixed(2));
+        }else {
+            $("#ghwxtf").html(0.00);
         }
         $("#ghwxssbs").html(res.ghsrgcmx.wxsshs);
         if (res.ghsrgcmx.wxss != null) {
             $("#ghwxss").html(res.ghsrgcmx.wxss.toFixed(2));
+        }else {
+            $("#ghwxss").html(0.00);
         }
     }
     //记账绿色通道收款
     $("#ghzfbs").html(res.ghsrgcmx.byjzhs);
     if (res.ghsrgcmx.byjzsk != null) {
         $("#ghzfsk").html(res.ghsrgcmx.byjzsk.toFixed(2));
+    }else {
+        $("#ghzfsk").html(0.00);
     }
     $("#ghzftfbs").html(res.ghsrgcmx.byjzthhs);
     if (res.ghsrgcmx.byjzth != null) {
         $("#ghzftf").html(res.ghsrgcmx.byjzth.toFixed(2));
+    }else {
+        $("#ghzftf").html(0.00);
     }
     $("#ghzfssbs").html(res.ghsrgcmx.byjzsshs);
     if (res.ghsrgcmx.byjzss != null) {
         $("#ghzfss").html(res.ghsrgcmx.byjzss.toFixed(2));
+    }else {
+        $("#ghzfss").html(0.00);
     }
     //总计收款
     $("#ghzjbs").html(res.ghsrgcmx.hjhs);
     if (res.ghsrgcmx.hjsk != null) {
         $("#ghzjsk").html(res.ghsrgcmx.hjsk.toFixed(2));
+    }else {
+        $("#ghzjsk").html(0.00);
     }
     $("#ghztfbs").html(res.ghsrgcmx.hjthhs);
     if (res.ghsrgcmx.hjth != null) {
         $("#ghzjtk").html(res.ghsrgcmx.hjth.toFixed(2));
+    }else {
+        $("#ghzjtk").html(0.00);
     }
     $("#ghzjssbs").html(res.ghsrgcmx.hjsshs);
     if (res.ghsrgcmx.hjss != null) {
         $("#ghzjss").html(res.ghsrgcmx.hjss.toFixed(2));
+    }else {
+        $("#ghzjss").html(0.00);
     }
 
 
     if (res.ghsrgcmx.ghjebhjz != null) {
         $("#ghsjhj").html(res.ghsrgcmx.ghjebhjz.toFixed(2));
+    }else {
+        $("#ghsjhj").html(0.00);
     }
     $("#ghsjhjdx").html(res.ghsrgcmx.ghjebhjzdx);
     if (res.ghsrgcmx.byjzss != null) {
         $("#ghzfsshj").html(res.ghsrgcmx.byjzss.toFixed(2));
+    }else {
+        $("#ghzfsshj").html(0.00);
     }
     $("#ghzfdx").html(res.ghsrgcmx.byjzssdx);
 
     if (res.ghsrgcmx.hjss != null) {
         $("#ghzj").html(res.ghsrgcmx.hjss.toFixed(2));
+    }else {
+        $("#ghzj").html(0.00);
     }
     $("#ghzjdx").html(res.ghsrgcmx.hjssdx);
     if (res.ghsrgcmx.zcsr != null) {
         $("#zcsr").html(res.ghsrgcmx.zcsr.toFixed(2));
+    }else {
+        $("#zcsr").html(0.00);
     }
     if (res.ghsrgcmx.jcsr != null) {
         $("#jcsr").html(res.ghsrgcmx.jcsr.toFixed(2));
+    }else {
+        $("#jcsr").html(0.00);
     }
     if (res.ghsrgcmx.ghsr != null) {
         $("#ghsr").html(res.ghsrgcmx.ghsr.toFixed(2));
+    }else {
+        $("#ghsr").html(0.00);
     }
 
 }