...
|
...
|
@@ -32,10 +32,11 @@ func (c *OrderDividendController) Prepare() { |
|
|
//PageListOrderDividend 获取实发订单分红列表
|
|
|
func (c *OrderDividendController) PageListOrderDividend() {
|
|
|
type Parameter struct {
|
|
|
SearchWord string `json:"searchWord"`
|
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
SearchWord string `json:"searchWord"`
|
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
PartnerCategoryId int `json:"partnerCategoryId"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -61,11 +62,12 @@ func (c *OrderDividendController) PageListOrderDividend() { |
|
|
companyId := c.GetUserCompany()
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
|
|
resp, cnt, err := orderSrv.PageListOrderBonus(orderQuery.ListOrderBonusQuery{
|
|
|
OrderType: param.OrderType,
|
|
|
PartnerOrCode: param.SearchWord,
|
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
CompanyId: companyId,
|
|
|
OrderType: param.OrderType,
|
|
|
PartnerOrCode: param.SearchWord,
|
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategoryId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
@@ -403,10 +405,11 @@ func (c *OrderDividendController) EditOrderRemarkBonusForBestshop() { |
|
|
|
|
|
func (c *OrderDividendController) ListOrderBonusForExcel() {
|
|
|
type Parameter struct {
|
|
|
SearchWord string `json:"searchWord"`
|
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
SearchWord string `json:"searchWord"`
|
|
|
OrderType int `json:"orderType"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
PartnerCategoryId int `json:"partnerCategoryId"`
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -426,11 +429,13 @@ func (c *OrderDividendController) ListOrderBonusForExcel() { |
|
|
|
|
|
companyId := c.GetUserCompany()
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
|
|
dataResult, column, err := orderSrv.ListOrderBonusForExcel(orderQuery.ListOrderBonusQuery{
|
|
|
OrderType: param.OrderType,
|
|
|
PartnerOrCode: param.SearchWord,
|
|
|
CompanyId: companyId,
|
|
|
})
|
|
|
dataResult, column, err := orderSrv.ListOrderBonusForExcel(
|
|
|
orderQuery.ListOrderBonusQuery{
|
|
|
OrderType: param.OrderType,
|
|
|
PartnerOrCode: param.SearchWord,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategoryId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
|
|
return
|
...
|
...
|
|