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
4ecc1fa6
Commit
4ecc1fa6
authored
Mar 15, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a11acf6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
memberFees.ts
src/biz/member/memberFees.ts
+17
-6
No files found.
src/biz/member/memberFees.ts
View file @
4ecc1fa6
...
@@ -15,10 +15,12 @@ import { changeEnumValue } from "../../util/verificationEnum";
...
@@ -15,10 +15,12 @@ import { changeEnumValue } from "../../util/verificationEnum";
*/
*/
export
async
function
getPaid
({
unitName
,
joinTime
,
memberType
,
pageNumber
})
{
export
async
function
getPaid
({
unitName
,
joinTime
,
memberType
,
pageNumber
})
{
let
now
=
new
Date
().
valueOf
();
let
now
=
new
Date
().
valueOf
();
let
selectParam
:
any
=
{
"$and"
:[
/**到期时间距离今天大于90天 */
{
lifespanStartTime
:{
"$lt"
:
now
}},
let
selectParam
:
any
=
{
"$expr"
:{
{
lifespanEndTime
:{
"$gt"
:
now
}}
"$gt"
:[{
]};
"$subtract"
:[
"$lifespanEndTime"
,
now
]
},
90
]
}};
if
(
unitName
)
selectParam
.
unitName
=
unitName
;
if
(
unitName
)
selectParam
.
unitName
=
unitName
;
if
(
joinTime
)
selectParam
.
joinTime
=
joinTime
;
if
(
joinTime
)
selectParam
.
joinTime
=
joinTime
;
...
@@ -49,10 +51,19 @@ export async function getPaid({unitName, joinTime, memberType, pageNumber}) {
...
@@ -49,10 +51,19 @@ export async function getPaid({unitName, joinTime, memberType, pageNumber}) {
* 续费期
* 续费期
*/
*/
export
async
function
getRenewalPeriod
()
{
export
async
function
getRenewalPeriod
()
{
let
now
=
new
Date
().
valueOf
();
}
/**到期时间距离今天等于90天至1天 */
let
selectParam
:
any
=
{
"$expr"
:{
"$and"
:[
{
"$lte"
:[{
"$subtract"
:[
"$lifespanEndTime"
,
now
]
},
90
]},
{
"$gt"
:[{
"$subtract"
:[
"$lifespanEndTime"
,
now
]
},
1
]},
]}
};
}
/**
/**
* 欠费
* 欠费
*/
*/
...
...
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