jdshp order

This commit is contained in:
suyl
2020-11-08 11:53:19 +08:00
parent 77663fa9b9
commit 7600f6768f
2 changed files with 2 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ package dao
import (
"errors"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
@@ -62,8 +61,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
sqlParams = append(sqlParams, typeID)
}
sql += " ORDER BY t1.type"
fmt.Println(sql)
fmt.Println(sqlParams)
err = GetRows(db, &authList, sql, sqlParams...)
return authList, err
}

View File

@@ -183,6 +183,8 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
saleNormalSum += 1
}
shopPriceSum += storeSkuList[0].Price * sku.Count
} else {
shopPriceSum += int(sku.SalePrice) * 70 / 100
}
}
//可售数小于一半就不行