企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * <b>方法描述:</b> 字符串转小写 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-04-12 17:17:51 <br/> * * @param str * 入参|带转换字符串|{@link java.lang.String} * @param text * 出参|小写字符|{@link java.lang.String} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "字符串小写", style = "判断型", type = "同步组件", comment = "转小写", version = "1.0.0", deprecated = false, author = "admin", date = "2018-04-12 05:17:51") @InParams(param = { @Param(name = "str", comment = "带转换字符串", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "text", comment = "小写字符", type = java.lang.String.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_toLower(String str) { if (str != null) return ResultBase.newSuccessResult(str.toLowerCase()); else return ResultBase.newFailureResult("TPTS1011", "转换字符为空(Null)"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/82/74/827498a752459c33458a0f2090a63285_1872x889.png) # 参数说明及示例 ## 入口参数 带转换字符串:输入一串字符串:示例: `"dadaFDSFEGdsfss"` ## 出口参数 小写字符:转换后的字符串,示例: `__INNER__["result"]`