feat(assets): release v1.1.18 with two-sheet analysis exports and flow contract details
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shishengliang
2026-09-28 17:03:59 +08:00
parent 807453b5fd
commit 40ef05d49b
18 changed files with 212 additions and 25 deletions
+8 -2
View File
@@ -24,6 +24,8 @@ export interface FlowDetailRow {
department: string | null;
manager: string | null;
customer_name: string | null;
contract_no: string | null;
project_name: string | null;
}
interface WeeklyStats {
@@ -263,7 +265,9 @@ export const FLOW_STATS_SQL = `
DATE_FORMAT(dv.create_time, '%Y-%m-%d %H:%i:%s') AS submit_time,
c.business_department_name AS department,
c.business_manager_name AS manager,
COALESCE(dts.customer_name, c.customer_name) AS customer_name
COALESCE(dts.customer_name, c.customer_name) AS customer_name,
COALESCE(NULLIF(dts.contract_code, ''), c.contract_code) AS contract_no,
COALESCE(NULLIF(dts.project_name, ''), c.project_name) AS project_name
FROM delivery_vehicle dv
LEFT JOIN delivery_task_subject dts
ON dts.id = dv.delivery_task_subject_id
@@ -293,7 +297,9 @@ export const FLOW_STATS_SQL = `
DATE_FORMAT(r.create_time, '%Y-%m-%d %H:%i:%s') AS submit_time,
c.business_department_name AS department,
c.business_manager_name AS manager,
COALESCE(dts.customer_name, c.customer_name) AS customer_name
COALESCE(dts.customer_name, c.customer_name) AS customer_name,
COALESCE(NULLIF(dts.contract_code, ''), c.contract_code) AS contract_no,
COALESCE(NULLIF(dts.project_name, ''), c.project_name) AS project_name
FROM return_vehicle_task r
LEFT JOIN delivery_task_subject dts
ON dts.id = r.delivery_task_subject_id