Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
wenHuaBu_adminServer
Commits
22cf1b0a
Commit
22cf1b0a
authored
Mar 06, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单位会员逻辑
parent
2b017bb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
member.ts
src/biz/member/member.ts
+15
-2
No files found.
src/biz/member/member.ts
View file @
22cf1b0a
...
@@ -45,11 +45,24 @@ export async function unitMemberList({unitName, joinTime, unitMemberType, workDu
...
@@ -45,11 +45,24 @@ export async function unitMemberList({unitName, joinTime, unitMemberType, workDu
* 单位会员详情
* 单位会员详情
* @param param0
* @param param0
*/
*/
const
BasicConfig
=
[
"userId"
,
"unitName"
,
"addres"
,
"officialWebsite"
,
"uscc"
,
"legalPerson"
,
"legalPersonPhone"
,
"gongZhongHao"
,
"unitPhone"
,
"contactPerson"
,
"contactPersonDuties"
,
"sheng"
,
"shi"
,
"qu"
,
"uusinessLicenseUrl"
,
"personInChargeDesc"
];
const
UnitConfig
=
[
"unitInfoType"
,
"yuanXiaoBanXueLeiXing"
,
"yuanXiaoZhuGuanBuMen"
,
"yuanXiaoFuZeRen"
,
"yuanXiaoFuZeRenZhiWu"
,
"yuanXiaoFuZeRenDianHua"
,
"yuanXiaoBanGongFuZeRen"
,
"yuanXiaoBanGongFuZeRenZhiWu"
,
"yuanXiaoBanGongFuZeRenDianHua"
,
"yuanXiaoKeYanFuZeRen"
,
"yuanXiaoKeYanFuZeRenZhiWu"
,
"yuanXiaoKeYanFuZeRenDianHua"
,
"yuanXiaoXueShengZongRenShu"
,
"yuanXiaoJiaoZhiGongZongRenShu"
,
"yuanXiaoJianZhuMianJi"
,
"yuanXiaoGaoJiZhiCheng"
,
"yuanXiaoKaiSheZhuanYe"
];
export
async
function
unitMemberDetails
({
userId
})
{
export
async
function
unitMemberDetails
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
dataInfo
=
extractData
(
oldInfo
,
[]);
let
basicInfo
=
extractData
(
oldInfo
,
BasicConfig
);
return
{
dataInfo
};
let
unitInfo
=
extractData
(
oldInfo
,
UnitConfig
);
let
oldKeYanInfo
=
await
findOnce
(
TABLEENUM
.
单位所获得科研成果表
,
{
userId
});
let
scientificResearch
=
extractData
(
oldKeYanInfo
,
[
"startTime"
,
"endTime"
,
"describe"
]);
return
{
basicInfo
,
unitInfo
,
scientificResearch
};
}
}
...
...
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