<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ![](https://img.kancloud.cn/42/12/4212ffb11bfb1922d76d8525c41cebf8_1869x893.png)# 組件源碼 ``` /** * <b>方法描述:</b> 對象屬性賦值 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2018-06-28 10:11:16 <br/> * * @param bean 入參|賦值對象|{@link Object} * @param fieldValue 入參|屬性值列表|{@link java.util.Map} * @param obj 出參|賦值后的對象|{@link Object} * @return -1 異常<br/> * 0 失敗<br/> * 1 成功<br/> */ @Component(label = "對象屬性賦值", style = "判斷型", type = "同步組件", comment = "給指定的對象的屬性進行賦值,參數為容器,例:{'key1':'test','key2': __REQ__['name'],'key3':{'key3_1':12},'key4':['abc',2]}", version = "1.0.0", deprecated = false, author = "admin", date = "2018-06-28 10:11:16") @InParams(param = {@Param(name = "bean", comment = "賦值對象", type = Object.class), @Param(name = "fieldValue", comment = "屬性值列表", type = java.util.Map.class)}) @OutParams(param = {@Param(name = "obj", comment = "賦值后的對象", type = Object.class)}) @Returns(returns = {@Return(id = "-1", desp = "異常"), @Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功")}) public static ResultBase P_BeanFieldSetValue(Object bean, Map fieldValue) { if (bean == null) { return ResultBase.newFailureResult("TPTB0005", "參數錯誤:賦值的對象參數【bean】不能為空"); } StringBuffer sb = new StringBuffer(); try { if (fieldValue != null && !fieldValue.isEmpty()) { Class cls = bean.getClass(); setValue(cls, fieldValue, bean, sb); } } catch (Exception e) { AppLog.error("對象屬性賦值,出現異常", e); AppLog.error("對象屬性賦值,已賦值字段:", sb.toString()); String str = e.getMessage(); if (StringUtil.isEmpty(str)) str = e.getLocalizedMessage(); if (StringUtil.isEmpty(str)) str = e.getCause().getLocalizedMessage(); return ResultBase.newExceptionResult("TPTB0006", "對象屬性賦值錯誤:" + str); } return ResultBase.newSuccessResult(bean); } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/42/12/4212ffb11bfb1922d76d8525c41cebf8_1869x893.png) # 參數說明及示例 ## 入口參數 賦值對象:傳入一個對象類型,示例: `__INNER__["user"]` 屬性值列表: `{ "id":15, "name":"zs" }` ## 出口參數 賦值后的對象:根據輸入參數進行賦值,示例: `__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>

                              哎呀哎呀视频在线观看