|
|
@@ -49,7 +49,7 @@ func GetIntegralReleaseInterpositionUserFlowCount(Db *xorm.Engine) int { |
|
|
|
} |
|
|
|
func GetIntegralReleaseInterpositionUserFlowSum(sess *xorm.Session, uid int, coinId int, ordId string) float64 { |
|
|
|
var IntegralReleaseInterpositionUserFlow model.IntegralReleaseInterpositionUserFlow |
|
|
|
count, err := sess.Where("uid=? and coin_id=? and ord_id=? and kind=?", uid, coinId, ordId, 0).Sum(&IntegralReleaseInterpositionUserFlow, "amount") |
|
|
|
count, err := sess.Where("uid=? and coin_id=? and ord_id=? and kind=?", uid, coinId, ordId, 2).Sum(&IntegralReleaseInterpositionUserFlow, "amount") |
|
|
|
if err != nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|