🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 组件源码 ``` /** * @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_endsWith(String instr, String substr) { if (instr != null && substr != null && instr.endsWith(substr)) { return ResultBase.newSuccessResult(); } return ResultBase.newFailureResult("TPTS1009", "不以子字符串结尾"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/27/ac/27ac94f8c39f142a85e2b23749c3530f_1868x891.png) # 参数说明及示例 ## 入口参数 原字符串:输入一串字符串,示例: `"qweasdzxcsaafffff"` 子字符串:输入一串字符串,示例: `"fff"`