企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * @category 以子字符串开始 * @param instr * 入参|原字符串|{@link java.lang.String} * @param substr * 入参|子字符串|{@link java.lang.String} * @return 0 失败<br/> * 1 成功<br/> */ @InParams(param = { @Param(name = "instr", comment = "原字符串", type = java.lang.String.class), @Param(name = "substr", comment = "子字符串", type = java.lang.String.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) @Component(label = "以字符串开始", style = "判断型", type = "同步组件", version = "1.0.0", deprecated = false, author = "test", date = "2018-01-22 04:48:39") public static ResultBase P_stratsWith(String instr, String substr) { if (instr != null && substr != null && instr.startsWith(substr)) { return ResultBase.newSuccessResult(); } return ResultBase.newFailureResult("TPTS1008", "不以子字符串开头"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/ae/2c/ae2c63334f34677afe0bea84db2ecbcf_1867x890.png) # 参数说明及示例 ## 入口参数 原字符串:输入一串字符串,示例: `"wsxxcderfv"` 子字符串:输入一串字符串,示例: `"w"`