### 一. 说明

盘点提醒默认只发送em的提醒，不支持钉钉待办这种类型的，所以增加个口子可以自行处理第三方的提醒.

### 二. 对接步骤

#### 1. 引入ebuilder-form-client 表单对外api包

```
<dependency>
    <groupId>com.weaver</groupId>
    <artifactId>weaver-ebuilder-form-client</artifactId>
</dependency>
```

#### 2. rpc接口说明

##### 2.1. 同步和完成提醒

```java
/** 以下接口为:com.weaver.ebuilder.form.client.service.cpt.CptRemindExtendService::secondevSyncDingTalkAction **/

    /***
     * 同步提醒到钉钉代办
     * @param cptRemindExtendDto
     * @return
     */
    Map<String, Object> syncDingTalkTodo(CptRemindExtendDto cptRemindExtendDto);

    /***
     * 盘点完成，关闭钉钉代办
     * @param cptRemindExtendDto
     * @return
     */
    Map<String, Object> finishDingTalkTodo(CptRemindExtendDto cptRemindExtendDto);
```

##### 2.2. 提醒实现说明

```
1. 实现接口com.weaver.ebuilder.form.client.service.cpt.CptRemindExtendService并暴露rpc接口, 
    暴露格式要求:  CptRemindExtendService::secondevSyncDingTalkAction
2. 返回结果中需有是否发送成功,方便后续日志排查
```

###### 2.2.1 接口实现demo

1. 代码实现权限逻辑
  
  ```java
  package com.weaver.ebuilder.form.test;
  
  import com.weaver.ebuilder.form.client.entity.permission.PermissionExtendDto;
  import com.weaver.ebuilder.form.client.entity.permission.PermissionExtendResult;
  import com.weaver.ebuilder.form.client.service.cpt.CptRemindExtendService;
  import org.springframework.stereotype.Service;
  
  @Service("secondevSyncDingTalkAction_CptRemindExtendService")
  public class TestRpcImpl implements CptRemindExtendService {
      @Override
      public Map<String, Object> syncDingTalkTodo(CptRemindExtendDto cptRemindExtendDto) {
          // todo...
          return null;
      }
  
      @Override
      public Map<String, Object> finishDingTalkTodo(CptRemindExtendDto cptRemindExtendDto) {
          // todo...
          return null;
      }
  }
  ```
2. 接口暴露

```java
<dubbo:service ref="secondevSyncDingTalkAction_CptRemindExtendService"
                   interface="com.weaver.ebuilder.form.client.service.cpt.CptRemindExtendService" group="secondevSyncDingTalkAction"/>
```

#### 3. 实体说明

**CptRemindExtendDto** 权限扩展传输对象:

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| sendUser | User | 发送人对象 |
| receiver | User | 接收人对象 |
| zcppd | String | 资产盘点单 |
| pdjhdh | String | 盘点计划单号 |
| inventoryPlanListId | String | 盘点表id |
| inventoryId | String | 盘点设置id |
