|
@ -167,6 +167,10 @@ async function getFileList(ctx, next) { |
|
|
queryOptions.roadId = roadId |
|
|
queryOptions.roadId = roadId |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
rslt.road = await models.FileRoad.findOne({ |
|
|
|
|
|
where: { rId: roadId } |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
rslt.type = await models.FileType.findOne({ |
|
|
rslt.type = await models.FileType.findOne({ |
|
|
where: { fId } |
|
|
where: { fId } |
|
|
}) |
|
|
}) |
|
@ -179,6 +183,9 @@ async function getFileList(ctx, next) { |
|
|
['id', 'DESC'] |
|
|
['id', 'DESC'] |
|
|
] |
|
|
] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rslt.counter = await models.Files.count({ |
|
|
rslt.counter = await models.Files.count({ |
|
|
where: queryOptions |
|
|
where: queryOptions |
|
|
}) |
|
|
}) |
|
|