@ningboyz/types 1.3.102 → 1.3.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.3.102",
4
+ "version": "1.3.104",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,4 +1,5 @@
1
1
  import _ from "lodash";
2
+ import {TFlowDataResponse} from "../flow";
2
3
 
3
4
  export interface IHznjNotiBillResponse {
4
5
  whoBuild: number;
@@ -199,4 +200,29 @@ export class THznjNotiBillResponse implements IHznjNotiBillResponse {
199
200
  _.merge(this, _.pick(data, Object.keys(this)));
200
201
  }
201
202
  }
203
+
204
+ static toFlowData(data: IHznjNotiBillResponse): TFlowDataResponse {
205
+ const result = new TFlowDataResponse();
206
+ result.whoBuild = data.whoBuild;
207
+ result.userIndx = data.userIndx;
208
+ result.flowMain = data.flowMain;
209
+ result.flowNode = data.flowNode;
210
+ result.notified = "";
211
+ result.entityID = data.entityID;
212
+ result.billMain = data.idEntity;
213
+ result.billCode = data.billCode;
214
+ result.billMemo = data.billMemo;
215
+ result.flowStat = data.billStat;
216
+ result.createAt = data.createAt;
217
+ result.mastName = data.mastName;
218
+ result.createBy = data.createBy;
219
+ result.unitMain = data.unitMain;
220
+ result.deptMain = data.deptMain;
221
+ result.menuUUID = data.menuUUID;
222
+ return result;
223
+ }
224
+
225
+ static toFlowDatas(list: IHznjNotiBillResponse[]): TFlowDataResponse[] {
226
+ return list.map((data) => this.toFlowData(data));
227
+ }
202
228
  }