|
|
|
@ -9,7 +9,7 @@ import (
|
|
|
|
|
|
|
|
|
|
func Center(userId uint) (waitPay, waitSend, waitRecv, afterSalesCount int) {
|
|
|
|
|
var orderInfos []order.Information
|
|
|
|
|
dbc.DB.Select("id, status, express_status").Where("order_type = 1").Where("user_id = ?", userId).Find(&orderInfos)
|
|
|
|
|
dbc.DB.Select("id, status, express_status, is_split").Where("order_type = 1").Where("user_id = ?", userId).Find(&orderInfos)
|
|
|
|
|
for _, orderInfo := range orderInfos {
|
|
|
|
|
if !orderInfo.IsSplit {
|
|
|
|
|
if orderInfo.ExpressStatus == 0 && orderInfo.Status == 1 {
|
|
|
|
|