From 05477e22f0ca3b17ca8a5a2996e539f3cd5cc1a9 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期五, 01 十一月 2024 15:06:12 +0800 Subject: [PATCH] 2024-11-01 修复整点报历史记录总数量错误的bug --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportHistoryMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportHistoryMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportHistoryMapper.xml index d950234..3735f0e 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportHistoryMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportHistoryMapper.xml @@ -200,12 +200,12 @@ SELECT COUNT(*) AS recordCount FROM rm_on_hour_report_history oh - INNER JOIN pr_intake inta ON inta.id = oh.intake_id + INNER JOIN pr_intake inta ON inta.id = oh.intake_id <where> <if test="intakeId != null and intakeId >0"> AND oh.intake_id = #{intakeId} </if> - <if test = "intakeName != null and intakeNum !=''"> + <if test = "intakeNum != null and intakeNum !=''"> AND inta.name LIKE CONCAT('%',#{intakeNum},'%') </if> <if test = "rtuAddr != null and rtuAddr !=''"> -- Gitblit v1.8.0