<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 組件源碼 ``` /** * <b>方法描述:</b> 獲得對象字段值 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2018-05-11 11:50:49 <br/> * * @param bean 入參|bean實例|{@link Object} * @param fieldName 入參|字段名稱|{@link java.lang.String} * @param value 出參|字段值|{@link Object} * @return -1 異常<br/> * 0 失敗<br/> * 1 成功<br/> */ @Component(label = "獲得對象字段值", style = "判斷型", type = "同步組件", comment = "獲得給定bean的指定字段屬性值", version = "1.0.0", deprecated = false, author = "admin", date = "2018-05-11 11:50:49") @InParams(param = {@Param(name = "bean", comment = "bean實例", type = Object.class), @Param(name = "fieldName", comment = "字段名稱", type = java.lang.String.class)}) @OutParams(param = {@Param(name = "value", comment = "字段值", type = Object.class)}) @Returns(returns = {@Return(id = "-1", desp = "異常"), @Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功")}) public static ResultBase P_GetFieldValue(Object bean, String fieldName) { if (bean == null) { return ResultBase.newFailureResult("TPTB0009", "參數錯誤:對象參數【bean】不能為空"); } if (StringUtil.isEmpty(fieldName)) { return ResultBase.newFailureResult("TPTB0010", "參數錯誤:字段參數【fieldName】不能為空"); } try { Class cls = bean.getClass(); return ResultBase.newSuccessResult(CommonsUtils.getFieldValue(cls, bean, fieldName)); } catch (Exception e) { AppLog.error("獲得類字段{}值異常:{}", fieldName, e); return ResultBase.newExceptionResult("TPTB0011", "獲得對象字段值 異常:" + AppLog.errorMsg(e)); } } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/78/a0/78a0bb42aaba54571641feb9edf984ab_1869x889.png) # 參數說明及示例 ## 入口參數 bean實例:獲取容器中的對象,示例: `__INNER__["user"]` 字段名稱:對象中的屬性名稱,示例: `"name"` ## 出口參數 字段值:獲取對象中對應的字段值,示例: `__INNER__["result"]`
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看