...
|
...
|
@@ -160,15 +160,16 @@ func (postData *postOrderPurposeDelivery) Valid() error { |
|
|
**/
|
|
|
func (c *OrderInfoController) PageListOrderReal() {
|
|
|
type Parameter struct {
|
|
|
PartnerName string `json:"partnerName"` // 合伙人姓名
|
|
|
OrderCode string `json:"orderCode"` // 订单号
|
|
|
DeliveryCode string `json:"deliveryCode"` // 发货单号
|
|
|
PartnerCategory int `json:"PartnerCategory"` // 合伙人类型id
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
UpdateTime []string `json:"updateTime"` // 订单更新时间
|
|
|
CreateTime []string `json:"createTime"` // 订单创建时间
|
|
|
SaleDate []string `json:"saleDate"` // 销售时间
|
|
|
PartnerName string `json:"partnerName"` // 合伙人姓名
|
|
|
OrderCode string `json:"orderCode"` // 订单号
|
|
|
DeliveryCode string `json:"deliveryCode"` // 发货单号
|
|
|
PartnerCategory int `json:"partnerCategory"` // 合伙人类型id
|
|
|
PartnerCategoryName string `json:"partnerCategoryName"` // 合伙人类型名称
|
|
|
PageSize int `json:"pageSize"`
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
UpdateTime []string `json:"updateTime"` // 订单更新时间
|
|
|
CreateTime []string `json:"createTime"` // 订单创建时间
|
|
|
SaleDate []string `json:"saleDate"` // 销售时间
|
|
|
}
|
|
|
var (
|
|
|
param Parameter
|
...
|
...
|
@@ -269,20 +270,21 @@ func (c *OrderInfoController) PageListOrderReal() { |
|
|
companyId := c.GetUserCompany()
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
|
|
orderInfos, cnt, err := orderSrv.PageListOrderBase(orderQuery.ListOrderBaseQuery{
|
|
|
PartnerName: param.PartnerName,
|
|
|
OrderCode: param.OrderCode,
|
|
|
DeliveryCode: param.DeliveryCode,
|
|
|
OrderType: domain.OrderReal,
|
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategory,
|
|
|
UpdateTimeBegin: updateTimeBegin,
|
|
|
UpdateTimeEnd: updateTimeEnd,
|
|
|
CreateTimeBegin: createTimeBegin,
|
|
|
CreateTimeEnd: createTimeEnd,
|
|
|
SaleDateStart: saleDateBegin,
|
|
|
SaleDateEnd: saleDateEnd,
|
|
|
PartnerName: param.PartnerName,
|
|
|
OrderCode: param.OrderCode,
|
|
|
DeliveryCode: param.DeliveryCode,
|
|
|
OrderType: domain.OrderReal,
|
|
|
Limit: param.PageSize,
|
|
|
Offset: (param.PageNumber - 1) * param.PageSize,
|
|
|
CompanyId: companyId,
|
|
|
PartnerCategory: param.PartnerCategory,
|
|
|
PartnerCategoryName: param.PartnerCategoryName,
|
|
|
UpdateTimeBegin: updateTimeBegin,
|
|
|
UpdateTimeEnd: updateTimeEnd,
|
|
|
CreateTimeBegin: createTimeBegin,
|
|
|
CreateTimeEnd: createTimeEnd,
|
|
|
SaleDateBegin: saleDateBegin,
|
|
|
SaleDateEnd: saleDateEnd,
|
|
|
})
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
@@ -361,7 +363,7 @@ func (c *OrderInfoController) GetOrderReal() { |
|
|
"product": allGoods,
|
|
|
"create_time": orderinfo.CreateTime.Local().Format("2006-01-02 15:04:06"),
|
|
|
"update_time": orderinfo.UpdateTime.Local().Format("2006-01-02 15:04:06"),
|
|
|
"sale_date": orderinfo.SaleDate.Local().Format("2006-01-02 15:04:06"),
|
|
|
"saleDate": orderinfo.SaleDate.Local().Format("2006-01-02 15:04:06"),
|
|
|
"partnerCategoryId": orderinfo.PartnerCategory.Id,
|
|
|
"partnerCategoryName": orderinfo.PartnerCategory.Name,
|
|
|
}
|
...
|
...
|
|