<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 組件源碼 ``` /** * <b>方法描述:</b> 金額格式化 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2020-12-16 10:17:29 <br/> * * @param inamt * 入參|輸入金額|{@link java.lang.Object} * @param unit * 入參|輸入金額單位0-分 1-元|{@link int} * @param withcomma * 入參|輸出格式:0-無千位分割 1-帶千位分割|{@link int} * @param outamt * 出參|輸出格式字符串(單位元)|{@link java.lang.String} * @return 0 失敗<br/> * 1 成功<br/> */ @Component(label = "金額格式化", style = "處理型", type = "同步組件", comment = "將輸入的指定格式的金額轉換為指定格式輸出。輸出金額單位為:元", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-16 10:17:29") @InParams(param = {@Param(name = "inamt", comment = "輸入金額", type = java.lang.Object.class), @Param(name = "unit", comment = "輸入金額單位0-分 1-元", type = int.class), @Param(name = "withcomma", comment = "輸出格式:0-無千位分割 1-帶千位分割", type = int.class)}) @OutParams(param = {@Param(name = "outamt", comment = "輸出格式字符串(單位元)", type = java.lang.String.class)}) @Returns(returns = {@Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_amtFormat(Object inamt, int unit, int withcomma) { BigDecimal d = transform(inamt); if (d == null) return ResultBase.newFailureResult("TPTA0003", "輸入不是合法金額數據,輸入數據:" + inamt); double fAmt = d.doubleValue(); if (unit == 0) { fAmt = fAmt / 100.00; } String strRet = withcomma == 0 ? new java.text.DecimalFormat("###.00").format(fAmt) : new java.text.DecimalFormat(",###.00").format(fAmt); return ResultBase.newSuccessResult(strRet); } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/65/33/653376e586ce47609390476447ab4f29_1874x868.png) # 參數說明及示例 ## 入口參數 輸入金額:輸入一個數值型參數,示例: `562152.26469` 輸入金額單位0-分 1-元:設置金額單位,示例: `1` 輸出格式:0-無千位分割 1-帶千位分割:設置輸出格式,示例: `1` ## 出口參數 輸出格式字符串(單位元):根據設置的格式設置金額,示例: `__INNER__["result"]`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看