From 2fe976b685692b20c20f2f809dc03ffbe0c53914 Mon Sep 17 00:00:00 2001 From: zhishi <1951671751@qq.com> Date: Thu, 2 Apr 2026 14:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=B5=84=E4=BA=A7=E6=97=B6?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=89=80=E6=9C=89=E8=A1=8D=E7=94=9F=E8=B5=84?= =?UTF-8?q?=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/production/getFlowData.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/production/getFlowData.ts b/src/routes/production/getFlowData.ts index 6a634b9..0df76f0 100644 --- a/src/routes/production/getFlowData.ts +++ b/src/routes/production/getFlowData.ts @@ -30,15 +30,17 @@ export default router.post( .select("o_assets.*", "o_image.filePath", "o_image.state", "o_image.errorReason") // @ts-ignore .where("o_assets.id", "in", assetIds) - .whereNull("o_assets.assetsId") + .andWhere("o_assets.assetsId", null) .where("o_assets.projectId", projectId); + console.log("%c Line:28 🎂 assetsData", "background:#6ec1c2", assetsData); + let childAssetsData = await u .db("o_assets") .leftJoin("o_image", "o_assets.imageId", "o_image.id") .select("o_assets.*", "o_image.filePath", "o_image.state", "o_image.errorReason") .where("o_assets.projectId", projectId) // @ts-ignore - .where("o_assets.id", "in", assetIds) + .where("o_assets.assetsId", "in", assetIds) .whereNotNull("o_assets.assetsId"); if (!sqlData) {