Commit 6a840961 authored by 姜登's avatar 姜登

query_volume

parent 4671f6ad
Pipeline #22023 passed with stage
in 2 seconds
......@@ -154,7 +154,7 @@ class UserDetailService extends Service {
};
const detail = await ctx.dataModel.YzbillCost.findAll({
attributes: ['appKey', 'service', 'day', 'query_volumn', 'pull_volume', 'price', 'cost'],
attributes: ['appKey', 'service', 'day', 'query_volume', 'pull_volume', 'price', 'cost'],
where,
order: [['day', 'desc']]
})
......@@ -162,7 +162,7 @@ class UserDetailService extends Service {
let data = ['appKey', '产品名称', '日期', '查询量(请求量)', '产品调用量(结果拉取量)', '产品单价', '消耗金额'];
for (let i = 0; i < detail.length; i++) {
data.push([detail[i].appKey, detail[i].service, detail[i].day, detail[i].query_volumn, detail[i].pull_volume, detail[i].price, detail[i].cost])
data.push([detail[i].appKey, detail[i].service, detail[i].day, detail[i].query_volume, detail[i].pull_volume, detail[i].price, detail[i].cost])
}
buffer = nodeExcel.build([{ name: 'sheet1', data }]);
......
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