Commit 096073e6 authored by 姜登's avatar 姜登

user_id

parent 1f90ddf6
Pipeline #22015 passed with stage
in 2 seconds
...@@ -43,6 +43,8 @@ class UserDetailService extends Service { ...@@ -43,6 +43,8 @@ class UserDetailService extends Service {
async analyseInfo({ start_date, end_date, product }) { async analyseInfo({ start_date, end_date, product }) {
const { ctx } = this; const { ctx } = this;
const user_id = ctx.userId;
const ret = { const ret = {
product: 'all', product: 'all',
overview: { overview: {
...@@ -101,7 +103,7 @@ class UserDetailService extends Service { ...@@ -101,7 +103,7 @@ class UserDetailService extends Service {
} }
ret.overview.use_money += parseFloat(ret[i].cost); ret.overview.use_money += parseFloat(ret[i].cost);
ret.overview.use_amount += ret[i].pull_volume; ret.overview.use_amount += ret[i].pull_volume;
if (listMap.size > 0) { if (listMap.size > 0) {
listMap.forEach((value, key) => { listMap.forEach((value, key) => {
ret.list.push({ ret.list.push({
......
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