Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
方斌
51business
Commits
1b749b1c
Commit
1b749b1c
authored
Sep 25, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
06c60cc4
Pipeline
#14153
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
order.js
app/service/credit/order.js
+4
-4
No files found.
app/service/credit/order.js
View file @
1b749b1c
...
...
@@ -26,7 +26,7 @@ class OrderService extends Service {
const
type
=
TypeConfig
[
order_type
];
// const where = { user_id };
const
order_records
=
await
ctx
.
prometheusModel
.
CreditOrder
.
all
({
where
:
{
user_id
,
type
,
valid
:
1
}
});
const
order_records
=
await
ctx
.
prometheusModel
.
CreditOrder
.
all
({
where
:
{
user_id
,
type
,
valid
:
1
,
order
:
[[
'order_time'
,
'desc'
]]
}
});
const
worth_h
=
[];
const
worth_l
=
[];
...
...
@@ -42,12 +42,12 @@ class OrderService extends Service {
order_no
:
order
.
order_no
,
report_id
:
order
.
report_id
,
type
:
order_type
,
created_time
:
moment
(
order
.
created_at
).
format
(
'YYYY-MM-DD HH:mm'
),
created_time
:
moment
(
order
.
order_time
).
format
(
'YYYY-MM-DD HH:mm'
),
phone
:
order
.
phone
.
replace
(
order
.
phone
.
substring
(
3
,
7
),
"****"
),
state
:
order
.
state
,
state_text
:
order
.
state
===
'已支付'
?
''
:
order
.
state
,
};
if
(
is_expire
)
{
if
(
!
is_expire
)
{
worth_h
.
push
(
item
);
}
else
{
worth_l
.
push
(
item
);
...
...
@@ -133,7 +133,7 @@ class OrderService extends Service {
}
//检查订单报告是否 还在规定的时间内 是否具有高价值 0:高价值 1:低价值-生成时间过长-
//检查订单报告是否 还在规定的时间内 是否具有高价值 0:高价值
;
1:低价值-生成时间过长-
async
checkOrderExpire
(
order
)
{
const
{
ctx
}
=
this
;
...
...
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