From 8aa74635a762bbb5a49253b055eb69db5ebaab2d Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 19 九月 2023 10:20:58 +0800
Subject: [PATCH] 预测性维护方案生成工单bug修改

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PredictiveWorkPlanParameterMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PredictiveWorkPlanParameterMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PredictiveWorkPlanParameterMapper.xml
index 88b8fe2..0428ce5 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PredictiveWorkPlanParameterMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PredictiveWorkPlanParameterMapper.xml
@@ -56,8 +56,8 @@
         FROM
             mom_eam_predictive_work_plan_parameter t1
         WHERE t1.del_flag = 0
-        <if test="params.planId != null and params.planId != ''">
-            and t1.work_plan_id = #{params.planId}
+        <if test="predictiveWorkPlanId != null and predictiveWorkPlanId != ''">
+            and t1.work_plan_id = #{predictiveWorkPlanId}
         </if>
         ORDER BY t1.create_time desc
     </select>
@@ -67,10 +67,10 @@
             t1.CollectTime collectTime,
             t1.${parameterCode} actualValue
         FROM
-            [${saveTableName}] t1
+            ${saveTableName} t1
         WHERE
             t1.${parameterCode} <![CDATA[ < ]]>  #{lowerLimitValue}
-            OR t1.${parameterCode} > #{upperLimitValue}
+           OR t1.${parameterCode} > #{upperLimitValue}
         ORDER BY
             t1.CollectTime DESC
     </select>

--
Gitblit v1.9.3