fix: user_id

master
howell 4 years ago
parent fcadcfb2e9
commit 6289249320

@ -4,11 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
"git.oa00.com/go/mysql"
"github.com/golangkit/formatime"
"github.com/robfig/cron"
"github.com/shopspring/decimal"
gorm2 "gorm.io/gorm"
"log"
"recook/configs"
order3 "recook/internal/api/mobile/order"
@ -31,6 +26,12 @@ import (
"strconv"
"strings"
"time"
"git.oa00.com/go/mysql"
"github.com/golangkit/formatime"
"github.com/robfig/cron"
"github.com/shopspring/decimal"
gorm2 "gorm.io/gorm"
)
// Task 定时任务

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

Loading…
Cancel
Save