新增分销员
This commit is contained in:
@@ -77,7 +77,7 @@ router.get('/', auth, async (req, res) => {
|
|||||||
SELECT
|
SELECT
|
||||||
o.id, o.order_no, o.user_id, o.total_amount, o.total_points,
|
o.id, o.order_no, o.user_id, o.total_amount, o.total_points,
|
||||||
o.status, o.address, o.created_at, o.updated_at,o.total_rongdou,
|
o.status, o.address, o.created_at, o.updated_at,o.total_rongdou,
|
||||||
u.username
|
u.username,salesperson_id
|
||||||
FROM orders o
|
FROM orders o
|
||||||
LEFT JOIN users u ON o.user_id = u.id
|
LEFT JOIN users u ON o.user_id = u.id
|
||||||
${whereClause}
|
${whereClause}
|
||||||
|
|||||||
Reference in New Issue
Block a user