kd.bos.servicehelper.operation

## 类 SaveServiceHelper

- java.lang.Object
- - kd.bos.servicehelper.operation.SaveServiceHelper

-     @KSObject
      public class SaveServiceHelper
      extends java.lang.Object

- - ### 构造器概要

    构造器
    构造器和说明
    `SaveServiceHelper()`

  - ### 方法概要

    所有方法 静态方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static java.lang.Object[]` | `save(kd.bos.dataentity.entity.DynamicObject[] dataEntities)`
    `static java.lang.Object[]` | `save(kd.bos.dataentity.metadata.IDataEntityType type, java.lang.Object[] dataEntities)`
    `static OperationResult` | `saveOperate(java.lang.String entityNumber, kd.bos.dataentity.entity.DynamicObject[] dataEntities)` 已过时。 请改用 saveOperate(String entityNumber, DynamicObject[] dataEntities, OperateOption option)
    `static OperationResult` | `saveOperate(java.lang.String entityNumber, kd.bos.dataentity.entity.DynamicObject[] dataEntities, kd.bos.dataentity.OperateOption option)`
    `static OperationResult` | `saveOperate(java.lang.String operationKey, java.lang.String entityNumber, kd.bos.dataentity.entity.DynamicObject[] dataEntities)` 已过时。 请改用 (String operationKey, String entityNumber, DynamicObject[] dataEntities, OperateOption option)
    `static OperationResult` | `saveOperate(java.lang.String operationKey, java.lang.String entityNumber, kd.bos.dataentity.entity.DynamicObject[] dataEntities, kd.bos.dataentity.OperateOption option)` 执行保存操作

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SaveServiceHelper

          public SaveServiceHelper()

  - ### 方法详细资料

    - #### save

          @KSMethod
          public static java.lang.Object[] save(kd.bos.dataentity.metadata.IDataEntityType type,
                                                           java.lang.Object[] dataEntities)

      参数:
        `type` - 实体类型
        `dataEntities` - 数据包
      返回:
        保存结果

    - #### save

          @KSMethod
          public static java.lang.Object[] save(kd.bos.dataentity.entity.DynamicObject[] dataEntities)

      参数:
        `dataEntities` - 数据包
      返回:
        保存结果

    - #### saveOperate

          public static OperationResult saveOperate(java.lang.String entityNumber,
                                                    kd.bos.dataentity.entity.DynamicObject[] dataEntities)

      已过时。 请改用 saveOperate(String entityNumber, DynamicObject[] dataEntities, OperateOption option)

    - #### saveOperate

          public static OperationResult saveOperate(java.lang.String entityNumber,
                                                    kd.bos.dataentity.entity.DynamicObject[] dataEntities,
                                                    kd.bos.dataentity.OperateOption option)

      参数:
        `entityNumber` - 单据
        `dataEntities` - 数据包
        `option` - 自定义参数
      返回:
        保存结果

    - #### saveOperate

          public static OperationResult saveOperate(java.lang.String operationKey,
                                                    java.lang.String entityNumber,
                                                    kd.bos.dataentity.entity.DynamicObject[] dataEntities)

      已过时。 请改用 (String operationKey, String entityNumber, DynamicObject[] dataEntities, OperateOption option)

    - #### saveOperate

          public static OperationResult saveOperate(java.lang.String operationKey,
                                                    java.lang.String entityNumber,
                                                    kd.bos.dataentity.entity.DynamicObject[] dataEntities,
                                                    kd.bos.dataentity.OperateOption option)

      执行保存操作
      参数:
        `operationKey` - 操作名
        `entityNumber` - 单据
        `dataEntities` - 数据包
        `option` - 自定义参数
      返回: