|
|
|
@ -1711,11 +1711,11 @@ app.get('/api/suppliers', async (req, res) => { |
|
|
|
const offset = (page - 1) * pageSize; |
|
|
|
params.push(parseInt(pageSize), offset); |
|
|
|
|
|
|
|
// 查询供应商列表
|
|
|
|
// 查询供应商列表,按创建时间倒序排序,确保最新创建的在前面
|
|
|
|
const [suppliers] = await connection.query( |
|
|
|
`SELECT userId, phoneNumber, province, city, district, detailedaddress, company, collaborationid, cooperation, businesslicenseurl, proofurl, brandurl, partnerstatus, reasonforfailure, reject_reason, terminate_reason, audit_time, created_at
|
|
|
|
FROM users${whereClause} |
|
|
|
ORDER BY audit_time DESC LIMIT ? OFFSET ?`,
|
|
|
|
ORDER BY created_at DESC LIMIT ? OFFSET ?`,
|
|
|
|
params |
|
|
|
); |
|
|
|
|
|
|
|
|