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
ea0aa92c
Commit
ea0aa92c
authored
Mar 21, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
882cd34b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
member.ts
src/biz/member/member.ts
+3
-1
memberFees.ts
src/biz/member/memberFees.ts
+3
-6
order.ts
src/biz/member/order.ts
+10
-3
router.ts
src/routers/member/router.ts
+1
-1
No files found.
src/biz/member/member.ts
View file @
ea0aa92c
...
@@ -190,7 +190,8 @@ export async function individualMemberList({name, documentId, phone, individualM
...
@@ -190,7 +190,8 @@ export async function individualMemberList({name, documentId, phone, individualM
* @returns {顶部数据, 基本信息, 专业信息, 其他附件}
* @returns {顶部数据, 基本信息, 专业信息, 其他附件}
*/
*/
const
IndividualBasicConfig
=
[
"name"
,
"sex"
,
"nation"
,
"birth"
,
"documentType"
,
"documentId"
,
"sheng"
,
"shi"
,
"qu"
,
"addres"
,
"photoUrl"
,
"uscc"
,
"unitName"
];
const
IndividualBasicConfig
=
[
"name"
,
"sex"
,
"nation"
,
"birth"
,
"documentType"
,
"documentId"
,
"sheng"
,
"shi"
,
"qu"
,
"addres"
,
"photoUrl"
,
"uscc"
,
"unitName"
,
"education"
,
"uscc"
,
"unitName"
];
const
SpecialityConfig
=
[
"workUnit"
,
"duties"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
const
SpecialityConfig
=
[
"workUnit"
,
"duties"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
export
async
function
individualMemberDetails
({
id
})
{
export
async
function
individualMemberDetails
({
id
})
{
...
@@ -203,6 +204,7 @@ export async function individualMemberDetails({id}) {
...
@@ -203,6 +204,7 @@ export async function individualMemberDetails({id}) {
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
basicInfo
.
documentType
=
changeEnumValue
(
DOCUMENTTYPE
,
basicInfo
.
documentType
);
basicInfo
.
documentType
=
changeEnumValue
(
DOCUMENTTYPE
,
basicInfo
.
documentType
);
basicInfo
.
nation
=
changeEnumValue
(
NATION
,
basicInfo
.
nation
);
basicInfo
.
nation
=
changeEnumValue
(
NATION
,
basicInfo
.
nation
);
/**获取订单表新社会信用代码和新发票抬头 */
let
orderInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
userId
:
id
});
let
orderInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
userId
:
id
});
if
(
!
orderInfo
||
!
orderInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
orderInfo
||
!
orderInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
basicInfo
.
newUscc
=
orderInfo
.
newUscc
;
basicInfo
.
newUscc
=
orderInfo
.
newUscc
;
...
...
src/biz/member/memberFees.ts
View file @
ea0aa92c
...
@@ -49,7 +49,7 @@ export async function getPaid({unitName, joinStartTime, joinEndTime, memberType,
...
@@ -49,7 +49,7 @@ export async function getPaid({unitName, joinStartTime, joinEndTime, memberType,
let
item
:
any
=
extractData
(
info
,
itemFiles
);
let
item
:
any
=
extractData
(
info
,
itemFiles
);
item
.
lifespanTime
=
`
${
moment
(
info
.
lifespanStartTime
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
lifespanEndTime
).
format
(
"YYYY-MM-DD"
)}
`
;
item
.
lifespanTime
=
`
${
moment
(
info
.
lifespanStartTime
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
lifespanEndTime
).
format
(
"YYYY-MM-DD"
)}
`
;
item
.
nextLifespanTime
=
"大于90天"
;
item
.
nextLifespanTime
=
"大于90天"
;
item
.
joinTime
=
moment
(
i
nfo
.
joinTime
).
format
(
"YYYY-MM-DD"
);
item
.
joinTime
=
moment
(
i
tem
.
joinTime
).
format
(
"YYYY-MM-DD"
);
item
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
item
.
memberState
);
item
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
item
.
memberState
);
item
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
item
.
memberType
);
item
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
item
.
memberType
);
dataList
.
push
(
item
);
dataList
.
push
(
item
);
...
@@ -90,12 +90,9 @@ export async function paidOrderList({id}) {
...
@@ -90,12 +90,9 @@ export async function paidOrderList({id}) {
*/
*/
export
async
function
unpaidList
({
unitName
,
joinStartTime
,
joinEndTime
,
memberType
,
pageNumber
})
{
export
async
function
unpaidList
({
unitName
,
joinStartTime
,
joinEndTime
,
memberType
,
pageNumber
})
{
const
NowMs
=
new
Date
().
valueOf
();
const
NowMs
=
new
Date
().
valueOf
();
/**到期时间距离今天
大
于90天 */
/**到期时间距离今天
小
于90天 */
let
selectParam
:
any
=
{
let
selectParam
:
any
=
{
"$and"
:[
lifespanEndTime
:{
"$lt"
:
NowMs
+
(
90
*
24
*
3600
*
1000
)},
{
"lifespanEndTime"
:{
"$lt"
:
NowMs
+
(
30
*
24
*
3600
*
1000
)}},
{
"lifespanEndTime"
:{
"$gt"
:
NowMs
}}
],
isAdmin
:
STATE
.
否
,
isAdmin
:
STATE
.
否
,
isGracePeriod
:
STATE
.
否
isGracePeriod
:
STATE
.
否
}
}
...
...
src/biz/member/order.ts
View file @
ea0aa92c
...
@@ -177,7 +177,7 @@ export async function paidList({unitName, paymentType, costType, pageNumber }) {
...
@@ -177,7 +177,7 @@ export async function paidList({unitName, paymentType, costType, pageNumber }) {
if
(
paymentType
)
findParam
.
paymentMethod
=
paymentType
;
if
(
paymentType
)
findParam
.
paymentMethod
=
paymentType
;
if
(
costType
)
findParam
.
isFirst
=
costType
==
COSTTYPE
.
首次
;
if
(
costType
)
findParam
.
isFirst
=
costType
==
COSTTYPE
.
首次
;
let
selectFile
=
[
"id"
,
"unitName"
,
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"paymentMethod"
,
"memberCategory"
,
"isFirst"
,
"paymentNum"
];
let
selectFile
=
[
"id"
,
"unitName"
,
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"paymentMethod"
,
"memberCategory"
,
"isFirst"
,
"paymentNum"
,
"memberState"
];
let
dbList
=
await
findToPage
(
TABLEENUM
.
订单表
,
findParam
,
selectFile
,
pageNumber
);
let
dbList
=
await
findToPage
(
TABLEENUM
.
订单表
,
findParam
,
selectFile
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
订单表
,
findParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
订单表
,
findParam
);
...
@@ -186,11 +186,18 @@ export async function paidList({unitName, paymentType, costType, pageNumber }) {
...
@@ -186,11 +186,18 @@ export async function paidList({unitName, paymentType, costType, pageNumber }) {
let
itemFile
=
[
"unitName"
,
"money"
,
"paymentNum"
];
let
itemFile
=
[
"unitName"
,
"money"
,
"paymentNum"
];
dbList
.
forEach
(
info
=>
{
dbList
.
forEach
(
info
=>
{
let
itemData
:
any
=
extractData
(
info
,
itemFile
);
let
itemData
:
any
=
extractData
(
info
,
itemFile
);
itemData
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
info
.
memberState
);
itemData
.
joinTime
=
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
);
itemData
.
joinTime
=
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
);
itemData
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
i
temData
.
memberCategory
);
itemData
.
memberType
=
changeEnumValue
(
MEMBERTYPE
,
i
nfo
.
memberCategory
);
itemData
.
paymentMethod
=
changeEnumValue
(
MEMBERTYPE
,
itemData
.
paymentMethod
);
itemData
.
paymentMethod
=
changeEnumValue
(
PAYMENTTYPE
,
info
.
paymentMethod
);
itemData
.
costType
=
info
.
isFirst
==
COSTTYPE
.
首次
?
"首次"
:
"续费"
;
itemData
.
costType
=
info
.
isFirst
==
COSTTYPE
.
首次
?
"首次"
:
"续费"
;
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY-MM-DD"
)}
`
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY-MM-DD"
)}
`
if
(
!
info
.
paymentMethod
)
{
itemData
.
paymentMethod
=
"-"
;
itemData
.
paymentNum
=
"-"
;
}
dataList
.
push
(
itemData
);
dataList
.
push
(
itemData
);
});
});
...
...
src/routers/member/router.ts
View file @
ea0aa92c
...
@@ -49,7 +49,7 @@ export const Config = {
...
@@ -49,7 +49,7 @@ export const Config = {
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
education
:{
type
:
'Number'
,
desc
:
'学历'
},
education
:{
type
:
'Number'
,
desc
:
'学历'
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
},
workUnit
:{
type
:
'String'
,
desc
:
'工作单位'
},
unitName
:{
type
:
'String'
,
desc
:
'工作单位'
},
duties
:{
type
:
'String'
,
desc
:
'职务'
},
duties
:{
type
:
'String'
,
desc
:
'职务'
},
workTitle
:{
type
:
'String'
,
desc
:
'职称'
},
workTitle
:{
type
:
'String'
,
desc
:
'职称'
},
profCategory
:{
type
:
'Number'
,
desc
:
'专业类别'
},
profCategory
:{
type
:
'Number'
,
desc
:
'专业类别'
},
...
...
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