|
|
@@ -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);
|