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
57c59e1e
Commit
57c59e1e
authored
Mar 22, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
40f5e6e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
member.ts
src/biz/member/member.ts
+3
-2
register.ts
src/biz/register.ts
+1
-0
router.ts
src/routers/member/router.ts
+2
-2
No files found.
src/biz/member/member.ts
View file @
57c59e1e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 会员管理逻辑
* 会员管理逻辑
*/
*/
import
{
MEMBERSTATE
,
MEMBERLEVEL
,
DOCUMENTTYPE
,
NATION
,
PROFCATEGORY
,
CODETYPE
,
MEMBERTYPE
,
REGISTERFLOW
,
SEX
,
USERREGISTERSTATE
,
OPERATIONREHAVIOR
,
STATE
,
BANXUELEIXING
,
UNITMEMBERTYPE
,
ADMINLV
}
from
"../../config/enum"
;
import
{
MEMBERSTATE
,
MEMBERLEVEL
,
DOCUMENTTYPE
,
NATION
,
PROFCATEGORY
,
MEMBERTYPE
,
USERREGISTERSTATE
,
STATE
,
UNITMEMBERTYPE
,
ADMINLV
}
from
"../../config/enum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findOnceToSort
,
findToPage
,
findToSort
}
from
"../../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findOnceToSort
,
findToPage
,
findToSort
}
from
"../../data/select"
;
...
@@ -215,6 +215,7 @@ export async function individualMemberList({name, documentId, phone, individualM
...
@@ -215,6 +215,7 @@ export async function individualMemberList({name, documentId, phone, individualM
* 其他附件: "cardUrl":身份证正反面图片地址, "academicCERTUrl":学历证明图片地址, "professionalCERTUrl":工作证明图片地址, "auxiliaryMaterial":其他辅助材料
* 其他附件: "cardUrl":身份证正反面图片地址, "academicCERTUrl":学历证明图片地址, "professionalCERTUrl":工作证明图片地址, "auxiliaryMaterial":其他辅助材料
*/
*/
const
TopConfig
=
[
"session"
,
"memberLevel"
];
const
IndividualBasicConfig
=
[
"userId"
,
"name"
,
"sex"
,
"nation"
,
"birth"
,
"documentType"
,
"documentId"
,
"sheng"
,
"shi"
,
"qu"
,
"phone"
,
"mail"
,
"addres"
,
"photoUrl"
,
"education"
,
"uscc"
,
"unitName"
];
const
IndividualBasicConfig
=
[
"userId"
,
"name"
,
"sex"
,
"nation"
,
"birth"
,
"documentType"
,
"documentId"
,
"sheng"
,
"shi"
,
"qu"
,
"phone"
,
"mail"
,
"addres"
,
"photoUrl"
,
"education"
,
"uscc"
,
"unitName"
];
const
SpecialityConfig
=
[
"unitName"
,
"duties"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
const
SpecialityConfig
=
[
"unitName"
,
"duties"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
...
@@ -222,7 +223,7 @@ export async function individualMemberDetails({id}) {
...
@@ -222,7 +223,7 @@ export async function individualMemberDetails({id}) {
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
id
});
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
id
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
topInfo
:
any
=
extractData
(
oldInfo
,
[
"session"
,
"memberLevel"
]
);
let
topInfo
:
any
=
extractData
(
oldInfo
,
TopConfig
);
topInfo
.
memberLevel
=
changeEnumValue
(
MEMBERLEVEL
,
topInfo
.
memberLevel
);
topInfo
.
memberLevel
=
changeEnumValue
(
MEMBERLEVEL
,
topInfo
.
memberLevel
);
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
...
...
src/biz/register.ts
View file @
57c59e1e
...
@@ -312,6 +312,7 @@ export async function unitMemberEcho2({userId}) {
...
@@ -312,6 +312,7 @@ export async function unitMemberEcho2({userId}) {
export
async
function
unitMemberEcho3
({
userId
})
{
export
async
function
unitMemberEcho3
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
[
"applicationForm"
]);
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
[
"applicationForm"
]);
if
(
!
oldInfo
||
!
oldInfo
.
applicationForm
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
oldInfo
||
!
oldInfo
.
applicationForm
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
oldInfo
.
defaultApplicationForm
=
"http://192.168.0.105:40012/单位会员情况统计表.docx"
;
return
{
dataInfo
:
oldInfo
};
return
{
dataInfo
:
oldInfo
};
}
}
...
...
src/routers/member/router.ts
View file @
57c59e1e
...
@@ -239,7 +239,7 @@ export const Config = {
...
@@ -239,7 +239,7 @@ export const Config = {
},
},
{
{
apiName
:
"单位会员详情"
,
apiName
:
"单位会员详情"
,
subUrl
:
'/memberdb/unitmemberdetails'
,
subUrl
:
'/memberdb/unit
/
memberdetails'
,
param
:[
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"用户id"
}
{
key
:
"id"
,
type
:
"String"
,
desc
:
"用户id"
}
],
],
...
@@ -247,7 +247,7 @@ export const Config = {
...
@@ -247,7 +247,7 @@ export const Config = {
},
},
{
{
apiName
:
"个人会员详情"
,
apiName
:
"个人会员详情"
,
subUrl
:
'/memberdb/individualmemberdetails'
,
subUrl
:
'/memberdb/individual
/
memberdetails'
,
param
:[
param
:[
{
key
:
"id"
,
type
:
"String"
,
desc
:
"用户id"
}
{
key
:
"id"
,
type
:
"String"
,
desc
:
"用户id"
}
],
],
...
...
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