Commit 5b54b719 authored by xianyang's avatar xianyang

代码业务汇总导出

parent 6143e996
...@@ -96,6 +96,7 @@ def month_to_export(param: schemas.MonthStatistics, request: Request, token=Depe ...@@ -96,6 +96,7 @@ def month_to_export(param: schemas.MonthStatistics, request: Request, token=Depe
headers = request.get("headers") headers = request.get("headers")
if not param.date: if not param.date:
return HttpResultResponse(code=500, msg='查询月份不能为空') return HttpResultResponse(code=500, msg='查询月份不能为空')
result = crud.MonthDataDerive().derive_data('assets_log_' + param.date, param.type, param.name) result, num = crud.CalculationMonthlyBill().month_statistics_task('assets_log_' + param.date, param.type, param.name,
param.page, 999999)
field_head = ['业务名称', '财务编码类型', '出账金额', '入账金额', '是否异常', '异常金额'] field_head = ['业务名称', '财务编码类型', '出账金额', '入账金额', '是否异常', '异常金额']
return statement_crud.data_to_file(db, result, "业务类型汇总", headers, field_head) return statement_crud.data_to_file(db, result, "业务类型汇总", headers, field_head)
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