您需要將date_trunc和Interval兩個片段放在一個Literal中: const truncWithIntervalLiteral = literal("date_trunc('week', date::date), - Interval '4 days'");const result = await Employee.findAll({ attributes: [ [truncWithIntervalLiteral , "weekly"], [literal("COUNT(DISTINCT(date))"), "working_days"], ], group: ["weekly"], raw: true,});