Browse Source

1.新生儿出生体重填写错误修改bug

hujing 5 years ago
parent
commit
c3e6eaba31

+ 4 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP0200.java

@@ -27,7 +27,10 @@ public class FIRP0200 extends QCCatalogue {
             }
             newbornWeightStr = newbornWeightStr.replace("-","");
             if (!CatalogueUtil.isEmpty(newbornWeightStr)) {
-                int newbornWeight = Integer.parseInt(newbornWeightStr);
+                double newbornWeight = Double.parseDouble(newbornWeightStr);
+                if (newbornWeight / 1000 >= 1){
+                    newbornWeight = newbornWeight / 1000;
+                }
                 if (newbornWeight <= 1 || newbornWeight >= 10) {
                     status.set("-1");
                 }