-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
在后台管理页面新加一个功能显示每个渠道对应的财务报表数据
user表中新加了merchantid字段,对应finssp的ssp_merchant的id字段。
用户登录后session里会保存user对象。点击渠道报表界面后,先根据userInfo的id字段查询数据库里的merchantid字段,查到后保存在session里,key是merchantid。然后根据merchantid查询相关的渠道数据
userinfo := this.GetSession("userinfo")
- 渠道数据:
- 字段:
- 名称(ssp_merchant.name),
- 总进件数(ssp_merchant_bill_report.count_pass),
- 总金额(ssp_merchant_bill_report.�bill_amount),
- 可付款金额(ssp_merchant_bill_report.�bill_amount),
- 操作:报表。按钮点击报表界面
其中各个数字都是按�ssp_merchant_bill_report根据merchant_id合计,其中has_payed=1的记录表示已经付款。可付款金额=总金额-已付款金额-当前日期到30天之前的金额
- 分天报表界面
从列表界面的报表按钮进入,显示每天数据。
检索:
- 开始日期和结束日期,使用calendar控件,选择日期范围是最晚今天,最早6个月前。
列表显示:
- 日期(ssp_merchant_bill_report.�work_date),
- 进件数(ssp_merchant_bill_report.bill_count_pass),
- 分成金额(ssp_merchant_bill_report.�bill_amount),
- 申请数(ssp_merchant_bill_report.��count_apply),
- 去重借款人数(ssp_merchant_bill_report.��count_uv),
Metadata
Metadata
Assignees
Labels
No labels