Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyixcx
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
yuyixcx
Commits
537b6516
Commit
537b6516
authored
Feb 14, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/yuyixcx
parents
3d0576ff
90015098
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
enterpriseInfo.ts
src/biz/enterpriseInfo.ts
+6
-3
enterpriseInfo.ts
src/routers/enterpriseInfo.ts
+2
-2
No files found.
src/biz/enterpriseInfo.ts
View file @
537b6516
...
@@ -21,9 +21,12 @@ import moment = require("moment");
...
@@ -21,9 +21,12 @@ import moment = require("moment");
//==登录登出
//==登录登出
export
async
function
enterpriseLogin
(
phone
:
string
,
pwd
:
string
)
{
//企业用户表没有存uscc字段,先查询到企业eId,然后到用户表查询密码判断是否登录成功
export
async
function
enterpriseLogin
(
uscc
:
string
,
pwd
:
string
)
{
let
dbInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业基础信息表
,
{
uscc
},
[
"eId"
]);
let
filesList
=
[
"userName"
,
"eId"
,
"pwd"
,
"uId"
];
let
filesList
=
[
"userName"
,
"eId"
,
"pwd"
,
"uId"
];
let
enterpriseInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业用户表
,
{
phone
},
filesList
);
let
enterpriseInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业用户表
,
{
eId
:
dbInfo
.
eId
},
filesList
);
if
(
!
enterpriseInfo
||
!
enterpriseInfo
.
eId
)
{
if
(
!
enterpriseInfo
||
!
enterpriseInfo
.
eId
)
{
throw
new
BizError
(
ERRORENUM
.
账号或密码错误
);
throw
new
BizError
(
ERRORENUM
.
账号或密码错误
);
...
@@ -560,7 +563,7 @@ export async function enterpriseQualificationInfo(eId) {
...
@@ -560,7 +563,7 @@ export async function enterpriseQualificationInfo(eId) {
return
{
dataInfo
:
addInfo
};
return
{
dataInfo
:
addInfo
};
}
}
qualificationInfo
.
goPublicSector
=
JSON
.
parse
(
qualificationInfo
.
goPublicSector
);
if
(
qualificationInfo
.
goPublicSector
)
qualificationInfo
.
goPublicSector
=
JSON
.
parse
(
qualificationInfo
.
goPublicSector
);
let
resultInfo
:
any
=
extractData
(
EnterpriseQualificationInfoResConfig
,
qualificationInfo
);
let
resultInfo
:
any
=
extractData
(
EnterpriseQualificationInfoResConfig
,
qualificationInfo
);
resultInfo
.
kxTime
=
new
Date
(
resultInfo
.
kxTime
).
valueOf
();
resultInfo
.
kxTime
=
new
Date
(
resultInfo
.
kxTime
).
valueOf
();
...
...
src/routers/enterpriseInfo.ts
View file @
537b6516
...
@@ -557,8 +557,8 @@ async function originateDel(req, res) {
...
@@ -557,8 +557,8 @@ async function originateDel(req, res) {
* @param res
* @param res
*/
*/
async
function
login
(
req
,
res
)
{
async
function
login
(
req
,
res
)
{
let
{
phone
,
pwd
}
=
req
.
body
let
{
uscc
,
pwd
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseLogin
(
phone
,
pwd
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseLogin
(
uscc
,
pwd
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
...
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