Commit c317b7ce by 王昆

gsb

parent 46fd01aa
...@@ -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
...@@ -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.getResultSuccess([]);
}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)));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment