|
@@ -143,7 +143,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask |
|
|
userStatusList := userStatus(session, uids, 0, subsidyBase) |
|
|
userStatusList := userStatus(session, uids, 0, subsidyBase) |
|
|
storeStatusList := userStatus(session, storeUids, 1, subsidyBase) |
|
|
storeStatusList := userStatus(session, storeUids, 1, subsidyBase) |
|
|
for _, v := range uids { |
|
|
for _, v := range uids { |
|
|
sql := `select stop_date from subsidy_with_user_flow order by create_at desc where uid=%d and kind in(1,2) limit 1` |
|
|
|
|
|
|
|
|
sql := `select stop_date from subsidy_with_user_flow where uid=%d and kind in(1,2) order by create_at desc limit 1` |
|
|
sql = fmt.Sprintf(sql, v) |
|
|
sql = fmt.Sprintf(sql, v) |
|
|
one, _ := db.QueryNativeStringSess(session, sql) |
|
|
one, _ := db.QueryNativeStringSess(session, sql) |
|
|
if userStatusList[v]["status"] != "1" { |
|
|
if userStatusList[v]["status"] != "1" { |
|
@@ -154,7 +154,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
for _, v := range storeUids { |
|
|
for _, v := range storeUids { |
|
|
sql := `select stop_date from subsidy_with_user_flow order by create_at desc where uid=%d and kind=3 limit 1` |
|
|
|
|
|
|
|
|
sql := `select stop_date from subsidy_with_user_flow where uid=%d and kind=3 order by create_at desc limit 1` |
|
|
sql = fmt.Sprintf(sql, v) |
|
|
sql = fmt.Sprintf(sql, v) |
|
|
one, _ := db.QueryNativeStringSess(session, sql) |
|
|
one, _ := db.QueryNativeStringSess(session, sql) |
|
|
if storeStatusList[v]["status"] != "1" { |
|
|
if storeStatusList[v]["status"] != "1" { |
|
|