From ea7ff0c1cb402cd35fc482aabf3359a4ea3969ab Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 10 九月 2024 16:58:43 +0800
Subject: [PATCH] plan rate
---
pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
index cf7ee7f..889e130 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
@@ -424,7 +424,8 @@
</select>
<select id="queryPlanList" resultType="cn.hutool.json.JSONObject">
- select pp.`name` as pro_name, p.`name` ,p.number, p.output_number, concat(round(((p.output_number/p.number) * 100 ),0), '%') as complete_rate ,p.end_date
+ select pp.`name` as pro_name, p.`name` ,p.number, p.output_number, concat(round(((p.output_number/p.number) * 100 ),0), '%') as complete_rate ,p.end_date,
+ TIMESTAMPDIFF(DAY, NOW(),p.end_date) AS days_difference
from (SELECT * FROM pr_assembly_plan WHERE STATUS = 1 and deleted = 0) p
LEFT JOIN plt_product pp
on p.pro_id = pp.id
--
Gitblit v1.8.0