|
|
@ -10,10 +10,10 @@ import (
|
|
|
|
|
|
|
|
|
|
|
|
func OrderProfit(od order.Information, tx *gorm.DB) error {
|
|
|
|
func OrderProfit(od order.Information, tx *gorm.DB) error {
|
|
|
|
var u1 user.Information
|
|
|
|
var u1 user.Information
|
|
|
|
tx.First(&u1, "user_id = ?", od.UserID)
|
|
|
|
tx.First(&u1, "id = ?", od.UserID)
|
|
|
|
|
|
|
|
|
|
|
|
var s1 user.Information
|
|
|
|
var s1 user.Information
|
|
|
|
tx.First(&s1, "user_id = ?", od.SharerID)
|
|
|
|
tx.First(&s1, "id = ?", od.SharerID)
|
|
|
|
fmt.Println("用户:", s1, u1)
|
|
|
|
fmt.Println("用户:", s1, u1)
|
|
|
|
|
|
|
|
|
|
|
|
condition := od.SharerID == od.UserID
|
|
|
|
condition := od.SharerID == od.UserID
|
|
|
|