|
@@ -3,11 +3,11 @@ const db = require("../../../plugin/DataBase/db")
|
|
|
const AccessControl = require("../../../lib/AccessControl")
|
|
const AccessControl = require("../../../lib/AccessControl")
|
|
|
const { BaseStdResponse } = require("../../../BaseStdResponse")
|
|
const { BaseStdResponse } = require("../../../BaseStdResponse")
|
|
|
|
|
|
|
|
-class GetPathDetail extends API {
|
|
|
|
|
|
|
+class GetRecordDetail extends API {
|
|
|
constructor() {
|
|
constructor() {
|
|
|
super();
|
|
super();
|
|
|
|
|
|
|
|
- this.setPath('/Lepao/GetPathDetail')
|
|
|
|
|
|
|
+ this.setPath('/Lepao/GetRecordDetail')
|
|
|
this.setMethod('GET')
|
|
this.setMethod('GET')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -47,9 +47,9 @@ class GetPathDetail extends API {
|
|
|
ON
|
|
ON
|
|
|
r.path_id = p.id
|
|
r.path_id = p.id
|
|
|
WHERE
|
|
WHERE
|
|
|
- a.create_user = ?
|
|
|
|
|
|
|
+ a.create_user = ? AND r.id = ?
|
|
|
`
|
|
`
|
|
|
- let rows = await db.query(sql, [id])
|
|
|
|
|
|
|
+ let rows = await db.query(sql, [uuid, id])
|
|
|
|
|
|
|
|
if (!rows)
|
|
if (!rows)
|
|
|
return res.json({
|
|
return res.json({
|
|
@@ -73,4 +73,4 @@ class GetPathDetail extends API {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-module.exports.GetPathDetail = GetPathDetail
|
|
|
|
|
|
|
+module.exports.GetRecordDetail = GetRecordDetail
|