Browse Source

checkBigDecimal

dzxiii 3 months ago
parent
commit
2b2e46e892

+ 1 - 1
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankAccrualController.java

@@ -147,7 +147,7 @@ public class BankAccrualController extends BaseController
         ba.setRtnMessage(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYACCRUALTRNRS/STATUS/MESSAGE"));
         ba.setRtnRsbody(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYACCRUALTRNRS/RSBODY"));
         ba.setRtnTdrno(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYACCRUALTRNRS/RSBODY/TDRNO"));
-        ba.setRtnInterest(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYACCRUALTRNRS/RSBODY/INTEREST")));
+        ba.setRtnInterest(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYACCRUALTRNRS/RSBODY/INTEREST")));
 
         return bankAccrualService.updateBankAccrual(ba);
     }

+ 4 - 4
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankFrzandpenaltyController.java

@@ -160,10 +160,10 @@ public class BankFrzandpenaltyController extends BaseController
         bt.setRtnTdracctnobnknm(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/TDRACCTNOBNKNM"));
         bt.setRtnDuetp(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/DUETP"));
         bt.setRtnTdrnum(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/TDRNUM"));
-        bt.setRtnMrgnamt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/MRGNAMT")));
-        bt.setRtnTdramt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/TDRAMT")));
-        bt.setRtnFrzamt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/FRZAMT")));
-        bt.setRtnFineamt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/FINEAMT")));
+        bt.setRtnMrgnamt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/MRGNAMT")));
+        bt.setRtnTdramt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/TDRAMT")));
+        bt.setRtnFrzamt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/FRZAMT")));
+        bt.setRtnFineamt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/QUERYFRZANDPENALTYTRNRS/RSBODY/CONTENT/FINEAMT")));
 
         return bankFrzandpenaltyService.updateBankFrzandpenalty(bt);
     }

+ 1 - 1
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankRefundmgrController.java

@@ -145,7 +145,7 @@ public class BankRefundmgrController extends BaseController {
         bt.setRtnBusinesstype(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/BUSINESSTYPE"));
         bt.setRtnSgtid(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/SGTID"));
         bt.setRtnTdrno(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/TDRNO"));
-        bt.setRtnAmt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/AMT")));
+        bt.setRtnAmt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/AMT")));
         bt.setRtnXferprcsts("1");
         bt.setRtnXferprccode(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/XFERPRCSTS/XFERPRCCODE"));
         bt.setRtnDtxferprc(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/TENDERFIELDMANAGETRNRS/RSBODY/XFERPRCSTS/DTXFERPRC"));

+ 1 - 1
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankTendereditController.java

@@ -164,7 +164,7 @@ public class BankTendereditController extends BaseController {
         bt.setRtnAlwafddlntdrflg(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/ALWAFDDLNTDRFLG"));
         bt.setRtnBnkrfndcfrmflg(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/BNKRFNDCFRMFLG"));
         bt.setRtnIntacrlflg(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/INTACRLFLG"));
-        bt.setRtnMrgnamt(new BigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/MRGNAMT")));
+        bt.setRtnMrgnamt(JsonUtils.checkBigDecimal(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/MRGNAMT")));
 
         bt.setRtnStrtsgtdt(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/STRTSGTDT"));
         bt.setRtnExpdt(JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/MODIFYTENDERTRNRS/RSBODY/MRGNAMT"));