Ver Fonte

feature: 下载空指针处理

wuyongyi há 2 anos atrás
pai
commit
2111e189a6

+ 1 - 1
src/main/java/com/ywt/mg/services/PrescriptionServices.java

@@ -405,7 +405,7 @@ public class PrescriptionServices {
                         total = "0.00元";
                     }
                     map.getStringListSafely(col10).add(total);
-                    map.getStringListSafely(col19).add(p.getPresType() == 1 ? "处方外转" : "互联网医院");
+                    map.getStringListSafely(col19).add(Checker.getIntegerValue(p.getPresType()) == 1 ? "处方外转" : "互联网医院");
                     map.getStringListSafely(col11).add(sdf.format(p.getCreateOn()));
                     String payTime = !Checker.isNone(p.getPayTime()) ? sdf.format(p.getPayTime()) : "";
                     map.getStringListSafely(col12).add(payTime);