|
@@ -72,28 +72,29 @@ func GetInvoicePaymentCensusPageList(page base.IPage, condition string, pars []i
|
|
}
|
|
}
|
|
|
|
|
|
type InvoicePaymentSummaryItem struct {
|
|
type InvoicePaymentSummaryItem struct {
|
|
- SummaryId int `json:"summary_id" description:"汇总ID"`
|
|
|
|
- RegisterId int `json:"register_id" description:"登记ID"`
|
|
|
|
- CompanyName string `json:"company_name" description:"客户名称"`
|
|
|
|
- NewCompany int `json:"new_company" description:"是否为新客户: 0-否; 1-是"`
|
|
|
|
- StartDate time.Time `json:"start_date" description:"合同开始日期"`
|
|
|
|
- EndDate time.Time `json:"end_date" description:"合同结束日期"`
|
|
|
|
- InvoiceId int `json:"invoice_id" description:"开票ID"`
|
|
|
|
- InvoiceDate time.Time `json:"invoice_time" description:"开票日期"`
|
|
|
|
- InvoiceAmount float64 `json:"invoice_amount" description:"开票金额"`
|
|
|
|
- SellerId int `json:"seller_id" description:"销售ID"`
|
|
|
|
- SellerName string `json:"seller_name" description:"销售名称"`
|
|
|
|
- SellerGroupId int `json:"seller_group_id" description:"销售组别ID"`
|
|
|
|
- SellerGroupName string `json:"seller_group_name" description:"销售组别名称"`
|
|
|
|
- PaymentId int `json:"payment_id" description:"到款ID"`
|
|
|
|
- PaymentDate time.Time `json:"payment_date" description:"到款日期"`
|
|
|
|
- PaymentAmount float64 `json:"payment_amount" description:"到款金额"`
|
|
|
|
- PayType int `json:"pay_type" description:"付款方式:0-无;1-年付;2-半年付;3-季付;4-次付;5-异常"`
|
|
|
|
|
|
+ SummaryId int `json:"summary_id" description:"汇总ID"`
|
|
|
|
+ RegisterId int `json:"register_id" description:"登记ID"`
|
|
|
|
+ CompanyName string `json:"company_name" description:"客户名称"`
|
|
|
|
+ NewCompany int `json:"new_company" description:"是否为新客户: 0-否; 1-是"`
|
|
|
|
+ StartDate time.Time `json:"start_date" description:"合同开始日期"`
|
|
|
|
+ EndDate time.Time `json:"end_date" description:"合同结束日期"`
|
|
|
|
+ InvoiceId int `json:"invoice_id" description:"开票ID"`
|
|
|
|
+ InvoiceDate time.Time `json:"invoice_time" description:"开票日期"`
|
|
|
|
+ InvoiceAmount float64 `json:"invoice_amount" description:"开票金额"`
|
|
|
|
+ SellerId int `json:"seller_id" description:"销售ID"`
|
|
|
|
+ SellerName string `json:"seller_name" description:"销售名称"`
|
|
|
|
+ SellerGroupId int `json:"seller_group_id" description:"销售组别ID"`
|
|
|
|
+ SellerGroupName string `json:"seller_group_name" description:"销售组别名称"`
|
|
|
|
+ PaymentId int `json:"payment_id" description:"到款ID"`
|
|
|
|
+ PaymentDate time.Time `json:"payment_date" description:"到款日期"`
|
|
|
|
+ PaymentAmount float64 `json:"payment_amount" description:"到款金额"`
|
|
|
|
+ PayType int `json:"pay_type" description:"付款方式:0-无;1-年付;2-半年付;3-季付;4-次付;5-异常"`
|
|
|
|
+ ServiceProductId int `json:"service_product_id" description:"套餐类型:1ficc套餐,2权益套餐"`
|
|
}
|
|
}
|
|
|
|
|
|
// GetInvoicePaymentCensusSummaryData 获取商品到款统计列表-汇总数据
|
|
// GetInvoicePaymentCensusSummaryData 获取商品到款统计列表-汇总数据
|
|
func GetInvoicePaymentCensusSummaryData(condition string, pars []interface{}) (results []*InvoicePaymentSummaryItem, err error) {
|
|
func GetInvoicePaymentCensusSummaryData(condition string, pars []interface{}) (results []*InvoicePaymentSummaryItem, err error) {
|
|
- fields := []string{"a.id AS summary_id", "a.register_id", "a.invoice_id", "a.payment_id", "b.company_name", "b.start_date", "b.end_date",
|
|
|
|
|
|
+ fields := []string{"a.id AS summary_id", "a.register_id", "a.invoice_id", "a.payment_id", "a.service_product_id", "b.company_name", "b.start_date", "b.end_date",
|
|
"c.origin_amount AS invoice_amount", "c.invoice_time AS invoice_date", "c.seller_id", "c.seller_name", "c.seller_group_id",
|
|
"c.origin_amount AS invoice_amount", "c.invoice_time AS invoice_date", "c.seller_id", "c.seller_name", "c.seller_group_id",
|
|
"c.seller_group_name", "d.origin_amount AS payment_amount", "d.invoice_time AS payment_date", "d.pay_type",
|
|
"c.seller_group_name", "d.origin_amount AS payment_amount", "d.invoice_time AS payment_date", "d.pay_type",
|
|
}
|
|
}
|