test shops

This commit is contained in:
shoopea 2020-02-07 15:23:08 +08:00
parent 643126333f
commit 9713d468ac

7
job.go
View File

@ -2215,12 +2215,17 @@ func jobShops(j Job) {
}
}
args := make([]interface{}, len(l))
for i, id := range l {
args[i] = id
}
query := fmt.Sprintf(`SELECT omsm.obj_id id
FROM obj_msg_shop_main omsm
WHERE omsm.obj_id in (%d`+strings.Repeat(", %d", len(l)-1)+`)
ORDER BY COALESCE(omsm.guru, 'ZZZ') ASC
,omsm.open DESC
,omsm.mana DESC;`, l...)
,omsm.mana DESC;`, args...)
ids := getSQLListID64(query)
guru := `ZZZ`