统计接口修改
This commit is contained in:
@@ -9,21 +9,21 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type StatisticsReportForOrdersList struct {
|
type StatisticsReportForOrdersList struct {
|
||||||
StoreID int
|
storeID int `json:"storeID"`
|
||||||
orderCounts int
|
orderCounts int `json:"orderCounts"`
|
||||||
salePrice int64
|
salePrice int64 `json:"salePrice"`
|
||||||
actualPayPrice int64
|
actualPayPrice int64 `json:"actualPayPrice"`
|
||||||
shopPrice int64
|
shopPrice int64 `json:"shopPrice"`
|
||||||
discountMoney int64
|
discountMoney int64 `json:"discountMoney"`
|
||||||
desiredFee int64
|
desiredFee int64 `json:"desiredFee"`
|
||||||
distanceFreightMoney int64
|
distanceFreightMoney int64 `json:"distanceFreightMoney"`
|
||||||
waybillTipMoney int64
|
waybillTipMoney int64 `json:"waybillTipMoney"`
|
||||||
totalShopMoney int64
|
totalShopMoney int64 `json:"totalShopMoney"`
|
||||||
pmSubsidyMoney int64
|
pmSubsidyMoney int64 `json:"pmSubsidyMoney"`
|
||||||
EarningPrice int64
|
earningPrice int64 `json:"earningPrice"`
|
||||||
totalGrossProfit int64
|
totalGrossProfit int64 `json:"totalGrossProfit"`
|
||||||
comGrossProfit float32
|
comGrossProfit float32 `json:"comGrossProfit"`
|
||||||
cityManagerGrossProfit float32
|
cityManagerGrossProfit float32 `json:"cityManagerGrossProfit"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetStatisticsReportForOrders(db *DaoDB, storeIDs []int, fromDate string, toDate string) (statisticsReportForOrdersList []*StatisticsReportForOrdersList, err error) {
|
func GetStatisticsReportForOrders(db *DaoDB, storeIDs []int, fromDate string, toDate string) (statisticsReportForOrdersList []*StatisticsReportForOrdersList, err error) {
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ type ReportController struct {
|
|||||||
// @Description 根据门店idlist和时间范围查询
|
// @Description 根据门店idlist和时间范围查询
|
||||||
// @Param token header string true "认证token"
|
// @Param token header string true "认证token"
|
||||||
// @Param storeIDs formData string true "京西门店ID列表[1,2,3]"
|
// @Param storeIDs formData string true "京西门店ID列表[1,2,3]"
|
||||||
// @Param FromDate formData string false "开始日期(包含),格式(2006-01-02 00:00:00)"
|
// @Param fromDate formData string false "开始日期(包含),格式(2006-01-02 00:00:00)"
|
||||||
// @Param ToDate formData string false "结束日期(包含),格式(2006-01-02 00:00:00)"
|
// @Param toDate formData string false "结束日期(包含),格式(2006-01-02 00:00:00)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /StatisticsReportForOrders [post]
|
// @router /StatisticsReportForOrders [post]
|
||||||
|
|||||||
Reference in New Issue
Block a user