Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c317b7ce
Commit
c317b7ce
authored
Jul 03, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
46fd01aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
.vscode/launch.json
+2
-1
esign-sve-order/app/base/service/impl/eorder/eorderproductSve.js
+2
-6
No files found.
.vscode/launch.json
View file @
c317b7ce
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"type"
:
"node"
,
"type"
:
"node"
,
"request"
:
"launch"
,
"request"
:
"launch"
,
"name"
:
"Launch Program"
,
"name"
:
"Launch Program"
,
"program"
:
"${workspaceFolder}/esign-sve-
merchant
/main.js"
"program"
:
"${workspaceFolder}/esign-sve-
order
/main.js"
}
}
]
]
}
}
\ No newline at end of file
esign-sve-order/app/base/service/impl/eorder/eorderproductSve.js
View file @
c317b7ce
...
@@ -42,7 +42,7 @@ class EorderproductService extends ServiceBase {
...
@@ -42,7 +42,7 @@ class EorderproductService extends ServiceBase {
});
});
let
ids
=
[];
let
ids
=
[];
if
(
!
p_list
||
p_list
.
length
==
0
){
if
(
!
p_list
||
p_list
.
length
==
0
){
return
system
.
getResult
([]);
return
system
.
getResult
Success
([]);
}
else
{
}
else
{
for
(
let
item
of
p_list
)
{
for
(
let
item
of
p_list
)
{
ids
.
push
(
item
.
id
);
ids
.
push
(
item
.
id
);
...
@@ -57,11 +57,7 @@ class EorderproductService extends ServiceBase {
...
@@ -57,11 +57,7 @@ class EorderproductService extends ServiceBase {
},
},
attributes
:[
'product_id'
]
attributes
:[
'product_id'
]
});
});
let
productIds
=
[];
return
system
.
getResultSuccess
(
list
);
for
(
let
ele
of
list
)
{
productIds
.
push
(
ele
.
product_id
);
}
return
system
.
getResult
(
Array
.
from
(
new
Set
(
productIds
)));
}
}
}
}
...
...
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