This commit is contained in:
shoopea 2020-02-01 19:24:44 +08:00
parent 560894b96b
commit 48cc10b052

3
job.go
View File

@ -1339,7 +1339,8 @@ func jobVaultUserStatus(j Job) {
WHERE omv.chat_id = ? WHERE omv.chat_id = ?
AND omv.user_id IN (?` + strings.Repeat(",?", len(p.UserListID64)-1) + `) AND omv.user_id IN (?` + strings.Repeat(",?", len(p.UserListID64)-1) + `)
AND omv.item_type_id IN (?` + strings.Repeat(",?", len(p.ItemTypeListID64)-1) + `)) x AND omv.item_type_id IN (?` + strings.Repeat(",?", len(p.ItemTypeListID64)-1) + `)) x
ORDER BY x.user_id ASC;` ORDER BY x.user_id ASC
,(SELECT oi.intl_id FROM obj_item oi WHERE oi.obj_id = x.item_id) ASC;`
args := make([]interface{}, len(p.UserListID64)+len(p.ItemTypeListID64)+1) args := make([]interface{}, len(p.UserListID64)+len(p.ItemTypeListID64)+1)
args[0] = p.DepositChatID64 args[0] = p.DepositChatID64