From 53b5ea2b96d76b2072819f14a48f26c58cea0f84 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期二, 29 八月 2023 08:59:46 +0800
Subject: [PATCH] 修改bug

---
 chart-server/src/main/resources/mapper/WorkMapper.xml |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/chart-server/src/main/resources/mapper/WorkMapper.xml b/chart-server/src/main/resources/mapper/WorkMapper.xml
index 385f61c..5d3c2ab 100644
--- a/chart-server/src/main/resources/mapper/WorkMapper.xml
+++ b/chart-server/src/main/resources/mapper/WorkMapper.xml
@@ -7,7 +7,7 @@
         from (select distinct user.name, count(inspection_product.id) unfinish
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_pro_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and test_state is null
                 and inspection_product.inspection_material_id in
                     (select id
@@ -23,7 +23,7 @@
              (select distinct user.name, count(inspection_product.id) finsh
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_pro_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and test_state is not null
                 and inspection_product.inspection_material_id in
                     (select id
@@ -45,7 +45,7 @@
         from (select distinct user.name, count(inspection_product.id) unfinsh
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and test_state is null
                 and inspection_product.inspection_material_id in
                     (select id
@@ -61,7 +61,7 @@
              (select distinct user.name, count(inspection_product.id) finsh
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and test_state is not null
                 and inspection_product.inspection_material_id in
                     (select id
@@ -83,7 +83,7 @@
         from (select distinct user.name, count(inspection_product.id) total
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_pro_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and inspection_product.inspection_material_id in
                     (select id
                      from lims_laboratory.inspection_material
@@ -126,7 +126,7 @@
         from (select distinct user.name, count(inspection_product.id) total
               from lims_laboratory.inspection_product
                        left join lims_laboratory.user on inspection_product.user_id = user.id
-              where state = 1
+              where inspection_product.state = 1
                 and inspection_product.inspection_material_id in
                     (select id
                      from lims_laboratory.inspection_material

--
Gitblit v1.9.3