lighter 3 лет назад
Родитель
Сommit
75266802e4

+ 8 - 1
src/main/java/thyyxxk/webserver/controller/medicalinsurance/MarkMtFeesController.java

@@ -90,7 +90,14 @@ public class MarkMtFeesController {
             return map;
         }
         map.put("code", 0);
-        Map<String, String> payInfo = FilterUtil.cast(result.getData());
+        FundDetail fund = result.getData();
+        Map<String, String> payInfo = new HashMap<>();
+        payInfo.put("totalCost", fund.getTotalCost());
+        payInfo.put("fundPay", fund.getFundPay());
+        payInfo.put("cashPay", fund.getCashPay());
+        payInfo.put("acctPay", fund.getAcctPay());
+        payInfo.put("selfPay", fund.getSelfPay());
+
         map.put("payInfo", payInfo);
         log.info("{}:参数:{},结果:{}", logText, param, map);
         return map;

+ 2 - 2
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiMzService.java

@@ -155,7 +155,7 @@ public class SiMzService {
         receipt.setChargeItemCode(detail.get("chargeItemCode").toString());
         receipt.setPriceTime(DateUtil.formatPriceTime(detail.get("priceTime").toString()));
         receipt.setUnitPrice(new BigDecimal(detail.get("unitPrice").toString()).setScale(4, RoundingMode.HALF_UP));
-        receipt.setQuantity((double) detail.get("quantity"));
+        receipt.setQuantity(Double.valueOf(detail.get("quantity").toString()));
         receipt.setDrugWin((int) detail.get("drugWin"));
         receipt.setDoctorCode(detail.get("doctorCode").toString());
         receipt.setSerialNo(detail.get("serialNo").toString());
@@ -172,7 +172,7 @@ public class SiMzService {
             receipt.setFrequency(detail.get("frequency").toString());
         }
         if (null != detail.get("drugQuan")) {
-            receipt.setDrugQuan((Double) detail.get("drugQuan"));
+            receipt.setDrugQuan(Double.valueOf(detail.get("drugQuan").toString()));
         }
         if (null != detail.get("orderDays")) {
             receipt.setOrderDays((Integer) detail.get("orderDays"));