Bladeren bron

事中住院接口

0027005599 2 jaren geleden
bovenliggende
commit
4c3b578710

+ 4 - 2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/ruleengine/HospGetDataToRuleEngine.java

@@ -123,9 +123,11 @@ public class HospGetDataToRuleEngine {
             lowercaseMap.put("patient_gender", CommonUtil.getMedicalSex(patientGender));
             Object quantity = lowercaseMap.get("quantity");
             if (null != quantity) {
-                Integer quantityInt = (Integer) quantity;
-                if (quantityInt <= 0) {
+                BigDecimal quantityInt = (BigDecimal) quantity;
+                if (quantityInt.intValue() <= 0) {
                     lowercaseMap.put("quantity", 1);
+                }else{
+                    lowercaseMap.put("quantity", quantityInt.intValue());
                 }
             } else {
                 lowercaseMap.put("quantity", 1);