Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
2838eb48
Commit
2838eb48
authored
Feb 14, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e4a48e0c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
9 deletions
+8
-9
out0213_3.zip
out0213_3.zip
+0
-0
financing.ts
src/biz/enterprise/financing.ts
+4
-4
month.ts
src/biz/fuHuqQi/month.ts
+1
-1
user.ts
src/biz/fuHuqQi/user.ts
+1
-1
user.ts
src/biz/guanWeiHui/user.ts
+0
-1
financing.ts
src/data/enterprise/financing.ts
+1
-1
tools.ts
src/util/tools.ts
+1
-1
No files found.
out0213_3.zip
0 → 100644
View file @
2838eb48
File added
src/biz/enterprise/financing.ts
View file @
2838eb48
...
...
@@ -50,7 +50,7 @@ export async function createFinancingInfo(uscc:string, param) {
let
dataBaseInfo
=
await
findFinancingInfoByTaskIdAndSucc
(
TaskId
,
param
.
uscc
);
if
(
dataBaseInfo
&&
dataBaseInfo
.
uscc
)
throw
new
BizError
(
ERRORENUM
.
该企业当月数据已存在
,
`
${
param
.
uscc
}
的融资信息已经存在`
);
await
createFinancing
(
uscc
,
TaskId
,
enterpriseInfo
.
uscc
,
enterpriseInfo
.
logonTime
,
param
);
await
createFinancing
(
uscc
,
TaskId
,
enterpriseInfo
.
uscc
,
enterpriseInfo
.
logonTime
,
enterpriseInfo
.
industry
||
[],
param
);
return
{
isSuccess
:
true
};
}
...
...
@@ -73,7 +73,7 @@ export async function updateFinancingInfo(uscc:string, param) {
fuHuaQiInvestmentAmount
:
param
.
fuHuaQiInvestmentAmount
,
fuHuaQiInvestmentStyle
:
param
.
fuHuaQiInvestmentStyle
,
};
checkParamater
(
subCheckName
,
{
fuHuaQiInvestmentAmount
:
"
String"
,
fuHuaQiInvestmentStyle
:
"String
"
},
subCheckData
);
checkParamater
(
subCheckName
,
{
fuHuaQiInvestmentAmount
:
"
Number"
,
fuHuaQiInvestmentStyle
:
"Number
"
},
subCheckData
);
}
else
{
param
.
fuHuaQiInvestmentAmount
=
0
;
param
.
fuHuaQiInvestmentStyle
=
0
;
...
...
@@ -196,8 +196,8 @@ export async function financingList(monthData:string, fuHuaQiName:string, indust
dataBaseList
.
forEach
(
info
=>
{
let
changeData
:
any
=
extractData
(
FinancingListConfig
,
info
,
true
);
changeData
.
fuhuaqiUscc
=
usccMap
[
changeData
.
fuhuaq
iUscc
]
||
""
;
changeData
.
industry
=
changeEnumValue
(
INDUSTRY
,
changeData
.
industry
);
changeData
.
fuhuaqiUscc
=
usccMap
[
info
.
fuHuaQ
iUscc
]
||
""
;
changeData
.
industry
=
changeEnumValue
(
INDUSTRY
,
info
.
industry
);
dataList
.
push
(
changeData
);
});
...
...
src/biz/fuHuqQi/month.ts
View file @
2838eb48
...
...
@@ -86,7 +86,7 @@ export async function getMonthByUscc(uscc:string) {
let
dataBaseInfo
=
await
monthData
.
findMonthTableByTaskId
(
TaskId
);
if
(
!
dataBaseInfo
.
isUpdate
)
throw
new
BizError
(
ERRORENUM
.
未找到数据
,
`未找到
${
uscc
}
的月度报表`
);
let
data
=
extractData
(
MonthConfig
,
dataBaseInfo
);
let
data
=
extractData
(
MonthConfig
,
dataBaseInfo
,
false
);
return
{
data
};
}
...
...
src/biz/fuHuqQi/user.ts
View file @
2838eb48
...
...
@@ -123,7 +123,7 @@ export async function logout(uscc:string):Promise<object> {
let
count
=
await
fuhuaqiData
.
findFuHuaQiUserCount
(
selectParam
);
let
dataList
=
[];
dataBaseList
.
forEach
(
info
=>
{
let
changeData
=
extractData
(
FuHuaQiListConfig
,
info
);
let
changeData
=
extractData
(
FuHuaQiListConfig
,
info
,
true
);
const
Count
=
enterpriseMap
[
info
.
uscc
]
||
0
;
dataList
.
push
(
changeData
);
});
...
...
src/biz/guanWeiHui/user.ts
View file @
2838eb48
...
...
@@ -23,7 +23,6 @@ export async function login(loginId:string, pwd:string) {
if
(
!
userInfo
)
throw
new
BizError
(
ERRORENUM
.
账号不存在
,
loginId
);
let
checkPwd
=
getPwdMd5
(
userInfo
.
loginId
,
pwd
);
console
.
log
(
loginId
,
checkPwd
);
//todo 后面删除
if
(
userInfo
.
pwd
!=
checkPwd
)
throw
new
BizError
(
ERRORENUM
.
密码错误
);
const
Token
=
getToken
(
loginId
);
...
...
src/data/enterprise/financing.ts
View file @
2838eb48
...
...
@@ -85,7 +85,7 @@ export async function updateFinancingDraftLock(taskId:string) {
* @param taskId 任务id 格式遵循tool中getTaskId
* @param param 所添加表单 需要提前验证
*/
export
async
function
createFinancing
(
fuHuaQiUscc
:
string
,
taskId
:
string
,
uscc
:
string
,
logonTime
:
number
,
param
)
{
export
async
function
createFinancing
(
fuHuaQiUscc
:
string
,
taskId
:
string
,
uscc
:
string
,
logonTime
:
number
,
industry
,
param
)
{
let
addInfo
=
Object
.
assign
({
fuHuaQiUscc
,
taskId
,
uscc
,
logonTime
,
createTime
:
new
Date
().
valueOf
()},
param
);
if
(
logonTime
)
addInfo
.
logonTime
=
logonTime
;
await
financingModel
.
create
(
addInfo
);
...
...
src/util/tools.ts
View file @
2838eb48
...
...
@@ -32,7 +32,7 @@ export function checkParamater(name:string, keyTypeConf:object, param:object, sk
if
(
skipKeys
&&
skipKeys
.
indexOf
(
key
)
>
-
1
&&
!
param
[
key
])
{
continue
;
}
if
(
!
param
[
key
]
)
throw
new
BizError
(
ERRORENUM
.
表单校验失败
,
name
,
`缺失
${
key
}
字段`
);
if
(
typeof
param
[
key
]
!=
'boolean'
&&
!
param
[
key
]
)
throw
new
BizError
(
ERRORENUM
.
表单校验失败
,
name
,
`缺失
${
key
}
字段`
);
let
type
=
typeof
param
[
key
];
switch
(
keyTypeConf
[
key
])
{
case
'Number'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment