From 2b37f326c7146293794792c843e7dcb09085362c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Thu, 30 Oct 2025 13:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ipqc=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/pms/QcMapper.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/pms/QcMapper.xml b/src/main/resources/mapper/pms/QcMapper.xml index 4950861..0e85500 100644 --- a/src/main/resources/mapper/pms/QcMapper.xml +++ b/src/main/resources/mapper/pms/QcMapper.xml @@ -628,10 +628,9 @@ ORDER BY - CASE WHEN a.state = '待检验' THEN 1 - WHEN a.state = '待审核' THEN 2 - WHEN a.state = '已完成' THEN 3 - END, a.task_date desc + CASE WHEN a.state = '未开始' THEN 1 + WHEN a.state = '待检验' THEN 2 + END, a.action_date,a.task_date,a.inspector_date desc