|
|
@@ -100,12 +100,12 @@ func handleZhiosOrderSettleTotal(msg []byte) error { |
|
|
|
continue |
|
|
|
} |
|
|
|
var userStatistics model.UserStatistics |
|
|
|
sess.Where("uid=?", ordData.Uid).Get(&userStatistics) |
|
|
|
sess.Where("uid=?", v.Uid).Get(&userStatistics) |
|
|
|
if userStatistics.Id == 0 { |
|
|
|
userStatistics = model.UserStatistics{ |
|
|
|
ImportFinTotal: "", |
|
|
|
FinTotal: "", |
|
|
|
Uid: ordData.Uid, |
|
|
|
Uid: v.Uid, |
|
|
|
} |
|
|
|
_, err := sess.Insert(&userStatistics) |
|
|
|
if err != nil { |
|
|
|