diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 5f4b44996..c97d2a10c 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -322,6 +322,8 @@ func getStoreStatusCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) ( sql += ` WHERE a.deleted_at = ? ` + fmt.Println(sql) + fmt.Println(sqlParams) sqlParams = append(sqlParams, utils.DefaultTimeValue, utils.DefaultTimeValue) err = dao.GetRow(db, &countType, sql, sqlParams) return countType.Count, err @@ -355,6 +357,8 @@ func getOrderStateCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) (g sql += " AND b.status < ? AND b.status >= ?" sqlParams = append(sqlParams, model.OrderStatusEndBegin, model.OrderStatusWait4Pay) } + fmt.Println(sql) + fmt.Println(sqlParams) err = dao.GetRow(db, &getManageStateOrderInfo, sql, sqlParams) getManageStateOrderInfo.Yhld = utils.Float64ToStr((float64(getManageStateOrderInfo.ActualPayPrice-getManageStateOrderInfo.TotalShopMoney-getManageStateOrderInfo.DesiredFee) / float64(getManageStateOrderInfo.ActualPayPrice) * 100)) + "%" return getManageStateOrderInfo, err