@ningboyz/apis 1.0.110 → 1.0.112
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 +2 -2
- package/packages/card/main.ts +11 -0
- package/packages/card/type.ts +24 -1
- package/packages/cron/main.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.0.
|
|
20
|
+
"@ningboyz/types": "1.0.112",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/card/main.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ICardMainGet4SplitQuerys,
|
|
13
13
|
ICardMainInsertdbQuerys,
|
|
14
14
|
ICardMainSelectd2Querys,
|
|
15
|
+
ICardMainSelectd4Querys,
|
|
15
16
|
ICardMainUpdated3Querys,
|
|
16
17
|
ICardMainUpdatedbQuerys,
|
|
17
18
|
ICardMainUploadd2Querys
|
|
@@ -206,6 +207,16 @@ class MainRequest {
|
|
|
206
207
|
copydb(querys: ICardMainCopydbQuerys, params: object) {
|
|
207
208
|
return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/copydb", querys, params);
|
|
208
209
|
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* 获取资产原值总数
|
|
213
|
+
* @param querys
|
|
214
|
+
* @param params
|
|
215
|
+
* @returns
|
|
216
|
+
*/
|
|
217
|
+
selectd4(querys: ICardMainSelectd4Querys, params: object) {
|
|
218
|
+
return this.httpRequest.post<TCard.ICardMainFindResponse[]>("/gapi/card/tmain/selectd4", querys, params);
|
|
219
|
+
}
|
|
209
220
|
}
|
|
210
221
|
|
|
211
222
|
export default MainRequest;
|
package/packages/card/type.ts
CHANGED
|
@@ -100,6 +100,30 @@ export class TCardMainSelectd2Querys implements ICardMainSelectd2Querys {
|
|
|
100
100
|
pagesize: number = -1;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
export interface ICardMainSelectd4Querys {
|
|
104
|
+
/** 年度 */
|
|
105
|
+
sourcend: number;
|
|
106
|
+
/** 是否需要筛选只能拆分的资产卡片 */
|
|
107
|
+
cansplit: number;
|
|
108
|
+
/** 1为待处理中数据,0为选择卡片(关联区数据以及所有业务中)\*/
|
|
109
|
+
/** 0为去除业务在途卡片 */
|
|
110
|
+
canclose: number;
|
|
111
|
+
cardkjnd: number;
|
|
112
|
+
cardkjqj: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class TCardMainSelectd4Querys implements ICardMainSelectd4Querys {
|
|
116
|
+
/** 年度 */
|
|
117
|
+
sourcend: number = -1;
|
|
118
|
+
/** 是否需要筛选只能拆分的资产卡片 */
|
|
119
|
+
cansplit: number = -1;
|
|
120
|
+
/** 1为待处理中数据,0为选择卡片(关联区数据以及所有业务中)\*/
|
|
121
|
+
/** 0为去除业务在途卡片 */
|
|
122
|
+
canclose: number = -1;
|
|
123
|
+
cardkjnd: number = -1;
|
|
124
|
+
cardkjqj: number = -1;
|
|
125
|
+
}
|
|
126
|
+
|
|
103
127
|
export interface ICardMainInsertdbQuerys {
|
|
104
128
|
autocode: number;
|
|
105
129
|
}
|
|
@@ -546,7 +570,6 @@ export class TCardZclbDetaildbQuerys implements ICardZclbDetaildbQuerys {
|
|
|
546
570
|
zclbmain: number = -1;
|
|
547
571
|
}
|
|
548
572
|
|
|
549
|
-
|
|
550
573
|
export interface ICardZclbsortSelectdbQuerys {
|
|
551
574
|
sourcend: number;
|
|
552
575
|
zclbtype: number;
|
package/packages/cron/main.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TCron } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import {ICronMainDetaildbQuerys, ICronMainSelectdbQuerys} from "./type";
|
|
4
4
|
|
|
@@ -12,35 +12,35 @@ class ParaRequest {
|
|
|
12
12
|
* 获取定时任务
|
|
13
13
|
*/
|
|
14
14
|
selectdb(querys: ICronMainSelectdbQuerys) {
|
|
15
|
-
return this.httpRequest.post<
|
|
15
|
+
return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/tmain/selectdb", querys, undefined);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 新增定时任务
|
|
20
20
|
*/
|
|
21
21
|
insertdb(params: object) {
|
|
22
|
-
return this.httpRequest.post<
|
|
22
|
+
return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/tmain/insertdb", undefined, params);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* 修改定时任务
|
|
27
27
|
*/
|
|
28
28
|
updatedb(params: object) {
|
|
29
|
-
return this.httpRequest.post<
|
|
29
|
+
return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/tmain/updatedb", undefined, params);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* 删除定时任务
|
|
34
34
|
*/
|
|
35
35
|
deletedb(params: object) {
|
|
36
|
-
return this.httpRequest.post<
|
|
36
|
+
return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/tmain/deletedb", undefined, params);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* 获取定时任务详情列表
|
|
41
41
|
*/
|
|
42
|
-
detaildb(querys: ICronMainDetaildbQuerys
|
|
43
|
-
return this.httpRequest.post<
|
|
42
|
+
detaildb(querys: ICronMainDetaildbQuerys) {
|
|
43
|
+
return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/tmain/detaildb", querys, undefined);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|