@ningboyz/types 1.2.157 → 1.2.159

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.2.157",
4
+ "version": "1.2.159",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -220,6 +220,7 @@ export const CONST_SYS_TYPEU_XXXC_XCLB = "信息宣传-宣传类别";
220
220
  export const CONST_SYS_TYPEU_XXXC_FWDX = "信息宣传-服务对象";
221
221
  export const CONST_SYS_TYPEU_DKBF_BFDD = "对口帮扶-帮扶地点";
222
222
  export const CONST_SYS_TYPEU_DWPX_PXLX = "对外培训-培训类型";
223
+ export const CONST_SYS_TYPEU_DWPX_DFSZ = "对外培训-得分设置";
223
224
  export const CONST_SYS_TYPEU_KJTPY_KJLX = "科技特派员-科技类型";
224
225
  export const CONST_SYS_TYPEU_KJTPY_KHDC = "科技特派员-考核等次";
225
226
  export const CONST_SYS_TYPEU_PTCJ_PTLX = "平台创建-平台类型";
@@ -1,8 +1,9 @@
1
1
  import { IUserAcnoResponse } from "../core";
2
2
  import { IPathResponse } from "../core/IPathResponse";
3
+ import { TFlowDataResponse } from "../flow";
3
4
  import { IHznkFytqBillResponse } from "./IHznkFytqBillResponse";
4
- import { IHznkFytqWbdwResponse } from "./IHznkFytqWbdwResponse";
5
5
  import { IHznkMainResponse } from "./IHznkMainResponse";
6
+ import _ from "lodash";
6
7
 
7
8
  export interface IHznkFytqResponse {
8
9
  whoBuild: number;
@@ -142,4 +143,33 @@ export class THznkFytqResponse implements IHznkFytqResponse {
142
143
  listFrom: IHznkMainResponse[] = [];
143
144
  listSKDW: IUserAcnoResponse[] = [];
144
145
  listBill: IHznkFytqBillResponse[] = [];
146
+ constructor(data: Partial<IHznkFytqResponse> = {}) {
147
+ if (data) {
148
+ _.merge(this, _.pick(data, Object.keys(this)));
149
+ }
150
+ }
151
+
152
+ static toFlowData(data: IHznkFytqResponse): TFlowDataResponse {
153
+ const result = new TFlowDataResponse();
154
+ result.whoBuild = data.whoBuild;
155
+ result.flowMain = data.flowMain;
156
+ result.flowNode = data.flowNode;
157
+ result.notified = "";
158
+ result.entityID = data.entityID;
159
+ result.billMain = data.fytqIndx;
160
+ result.billCode = data.baseCode;
161
+ result.billMemo = data.baseMemo;
162
+ result.createAt = data.createAt;
163
+ result.mastName = data.mastName;
164
+ result.createBy = data.createBy;
165
+ result.unitMain = data.unitMain;
166
+ result.deptMain = data.deptMain;
167
+ result.menuUUID = data.menuUUID;
168
+ result.flowStat = data.fytqStat;
169
+ return result;
170
+ }
171
+
172
+ static toFlowDatas(data: IHznkFytqResponse[]): TFlowDataResponse[] {
173
+ return data.map((u) => this.toFlowData(u));
174
+ }
145
175
  }