|
@@ -47,9 +47,9 @@ class GetRecordDetail extends API {
|
|
|
ON
|
|
ON
|
|
|
r.path_id = p.id
|
|
r.path_id = p.id
|
|
|
WHERE
|
|
WHERE
|
|
|
- a.create_user = ? AND r.id = ?
|
|
|
|
|
|
|
+ (r.uuid = ? OR (a.create_user IS NOT NULL AND a.create_user = ?)) AND r.id = ?
|
|
|
`
|
|
`
|
|
|
- let rows = await db.query(sql, [uuid, id])
|
|
|
|
|
|
|
+ let rows = await db.query(sql, [uuid, uuid, id])
|
|
|
|
|
|
|
|
if (!rows)
|
|
if (!rows)
|
|
|
return res.json({
|
|
return res.json({
|