开发者社区 问答 正文

AgnDistributeRuleConfigBy方法中,如果传入的 id 为空或空白,会如何处理?

queryAgnDistributeRuleConfigById 方法中,如果传入的 id 为空或空白,会如何处理?

展开
收起
萝卜丝丸子 2024-07-29 13:00:26 54 分享 版权
1 条回答
写回答
取消 提交回答
  • 在 queryAgnDistributeRuleConfigById 方法中,如果传入的 id 为空或空白(通过 StringUtils.isBlank(id) 判断),则会将 ResultModel 的 success 字段设置为 false,并设置错误消息为 "id cannot be blank",然后直接返回该 ResultModel 对象。

    2024-07-29 16:06:36
    赞同 7 展开评论
问答地址: