From feeae093f13badaf82baeba471cea8a95ba97513 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期一, 28 八月 2023 09:24:33 +0800
Subject: [PATCH] 修改报告预览数据接口
---
chart-server/src/main/resources/mapper/WorkMapper.xml | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/chart-server/src/main/resources/mapper/WorkMapper.xml b/chart-server/src/main/resources/mapper/WorkMapper.xml
index 7da6829..385f61c 100644
--- a/chart-server/src/main/resources/mapper/WorkMapper.xml
+++ b/chart-server/src/main/resources/mapper/WorkMapper.xml
@@ -3,8 +3,8 @@
<mapper namespace="com.yuanchu.limslaboratory.mapper.WorkMapper">
<!--璐d换浜洪」鐩暟缁熻-->
<select id="dutyMater" resultType="java.util.Map">
- select n.name, 鏈畬鎴�, 宸插畬鎴�
- from (select distinct user.name, count(inspection_product.id) '鏈畬鎴�'
+ select n.name, unfinish, finsh
+ 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
@@ -20,7 +20,7 @@
and type = #{type}
and start_time between #{startTime} and #{endTime}))
group by user.name) n,
- (select distinct user.name, count(inspection_product.id) '宸插畬鎴�'
+ (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
@@ -41,8 +41,8 @@
<!--鎵ц浜洪」鐩暟缁熻-->
<select id="executeMater" resultType="java.util.Map">
- select n.name, 鏈畬鎴�, 宸插畬鎴�
- from (select distinct user.name, count(inspection_product.id) '鏈畬鎴�'
+ select n.name, unfinsh, finsh
+ 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
@@ -58,7 +58,7 @@
and type = #{type}
and start_time between #{startTime} and #{endTime}))
group by user.name) n,
- (select distinct user.name, count(inspection_product.id) '宸插畬鎴�'
+ (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
@@ -79,8 +79,8 @@
<!--璐d换浜烘墽琛岀巼-->
<select id="dutytimely" resultType="java.util.Map">
- select n.name, 椤圭洰鎬绘暟, 鍙婃椂瀹屾垚鏁� / 椤圭洰鎬绘暟 * 100 '鍙婃椂鐜�'
- from (select distinct user.name, count(inspection_product.id) '椤圭洰鎬绘暟'
+ select n.name, total, finshByTime / total * 100 timely
+ 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
@@ -95,7 +95,7 @@
and type = #{type}
and start_time between #{startTime} and #{endTime}))
group by user.name) n,
- (select distinct user.name, count(inspection_product.id) '鍙婃椂瀹屾垚鏁�'
+ (select distinct user.name, count(inspection_product.id) finshByTime
from lims_laboratory.inspection_product
left join lims_laboratory.user
on inspection_product.user_pro_id = user.id
@@ -122,8 +122,8 @@
<!--鎵ц浜哄強鏃剁巼-->
<select id="executetimely" resultType="java.util.Map">
- select n.name, 椤圭洰鎬绘暟, 鍙婃椂瀹屾垚鏁� / 椤圭洰鎬绘暟 * 100 '鍙婃椂鐜�'
- from (select distinct user.name, count(inspection_product.id) '椤圭洰鎬绘暟'
+ select n.name, total, finshByTime / total * 100 timely
+ 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
@@ -138,7 +138,7 @@
and type = #{type}
and start_time between #{startTime} and #{endTime}))
group by user.name) n,
- (select distinct user.name, count(inspection_product.id) '鍙婃椂瀹屾垚鏁�'
+ (select distinct user.name, count(inspection_product.id) finshByTime
from lims_laboratory.inspection_product
left join lims_laboratory.user
on inspection_product.user_id = user.id
--
Gitblit v1.9.3