🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 组件源码 ``` /** * <b>方法描述:</b> 删除千分符 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-16 10:11:02 <br/> * * @param inamt * 入参|金额|{@link java.lang.String} * @param outamt * 出参|输出金额|{@link java.lang.String} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "删除千分符", style = "处理型", type = "同步组件", comment = "删除千分符,将格式为“9,999.99”转为'9999.99'", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-16 10:11:02") @InParams(param = {@Param(name = "inamt", comment = "金额", type = java.lang.String.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_amtDelComma(String inamt) { BigDecimal d = transform(inamt); if (d != null) return ResultBase.newSuccessResult(d.toString()); return ResultBase.newFailureResult("TPTA0001", "输入不是合法金额数据,输入数据:" + inamt); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/16/88/16886ce76e479e223f15fbfb2b54b20d_1865x865.png) # 参数说明及示例 ## 入口参数 金额:输入一个字符串型的数值,需要携带千分符,示例: `"9,999.99"` ## 出口参数 输出金额:删除千分符后的金额,示例: `__INNER__["result"]`