|
|
@@ -83,7 +83,26 @@ func DailySettlementIntegralRelease(engine *xorm.Engine, mid string, isTask bool |
|
|
|
"key": "state", |
|
|
|
"value": 1, |
|
|
|
}) |
|
|
|
var uids = make([]int, 0) |
|
|
|
for _, ord := range *integralReleaseUserWithOrds { |
|
|
|
uids = append(uids, ord.Uid) |
|
|
|
} |
|
|
|
uidList, err := db.DbsUserFindByIdsSess(session, uids) |
|
|
|
if err != nil { |
|
|
|
_ = session.Rollback() |
|
|
|
return err |
|
|
|
} |
|
|
|
userMap := make(map[int]model.User) |
|
|
|
for _, v := range *uidList { |
|
|
|
userMap[v.Uid] = v |
|
|
|
} |
|
|
|
|
|
|
|
for _, ord := range *integralReleaseUserWithOrds { |
|
|
|
_, ok := userMap[ord.Uid] |
|
|
|
if ok == false { |
|
|
|
//判断下这个用户有没有被删了 |
|
|
|
continue |
|
|
|
} |
|
|
|
if zhios_order_relate_utils.StrToFloat64(ord.OrdDiscountRatio) == 0 { |
|
|
|
continue |
|
|
|
} |
|
|
|