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