aa
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user