(SELECT
t.`分组编号`,
t.`报价单号`,
t.`第三方订单号` AS `客户单号`,
date_format(t.`创建时间`, '%Y-%m-%d') AS `报价日期`,
t.`空间区域` AS `安装区域`,
floor(t.`工厂价`/100) AS `金额`,
t1.`产品大类名称` as `产品大类`,
t.`生产单号`
FROM
`报价单主表` AS t
LEFT JOIN
`产品大类` AS t1
ON
t.`产品大类ID` = t1.`产品大类ID`
WHERE
t.`分组编号` = ?
ORDER BY
t.`报价单号` ASC
)
UNION ALL
(
SELECT
t.`分组编号`,
"Z" AS `报价单号`,
"" AS `客户单号`,
"" AS `报价日期`,
"总金额:" AS `安装区域`,
sum(floor(t.`工厂价`/100))AS `总金额`,
"" as `产品大类`,
"" as `生产单号`
FROM
`报价单主表` AS t
WHERE
t.`分组编号` = ?
)
相同的sql,本地设计器验证正常,web设计器验证报错
|