...
|
...
|
@@ -36,6 +36,7 @@ func (c *OrderDividendController) PageListOrderDividend() { |
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
PartnerCategoryId int `json:"partnerCategoryId"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -66,6 +67,7 @@ func (c *OrderDividendController) PageListOrderDividend() { |
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategoryId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
@@ -407,6 +409,7 @@ func (c *OrderDividendController) ListOrderBonusForExcel() { |
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
PartnerCategoryId int `json:"partnerCategoryId"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -426,10 +429,12 @@ func (c *OrderDividendController) ListOrderBonusForExcel() { |
|
|
|
|
|
companyId := c.GetUserCompany()
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
|
|
dataResult, column, err := orderSrv.ListOrderBonusForExcel(orderQuery.ListOrderBonusQuery{
|
|
|
dataResult, column, err := orderSrv.ListOrderBonusForExcel(
|
|
|
orderQuery.ListOrderBonusQuery{
|
|
|
OrderType: param.OrderType,
|
|
|
PartnerOrCode: param.SearchWord,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategoryId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
|