From 97a45da9011f4e2dc32875f852b2199108a24f80 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Fri, 29 Mar 2024 10:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=BC=E7=8F=AD=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/business/DcWarningMapper.xml | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml index 71b2db5a..fe629ad5 100644 --- a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml @@ -77,8 +77,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" warning.`warning_type`,warning.`warning_subclass`,warning.`warning_title`, warning.`other_config` FROM dc_warning AS warning LEFT JOIN dc_stake_mark AS mark ON mark.stake_mark=warning.stake_mark - where warning.warning_source !=6 - + + and warning.warning_source !=6 + and warning.warning_source = #{warningSource} + and warning.warning_state = #{warningState} + and warning.warning_type = #{warningType} + and warning.warning_subclass = + #{warningSubclass} + + and warning.direction = #{direction} + and warning.stake_mark = #{stakeMark} + + and warning.warning_time between #{startTime} and #{completeTime} + + + and CAST(SUBSTRING(SUBSTRING_INDEX(warning.stake_mark,'+',1),2)AS UNSIGNED)*1000 + +CAST(SUBSTRING_INDEX(warning.stake_mark, '+', -1) AS UNSIGNED)>#{startStakeMark} + + + and CAST(SUBSTRING(SUBSTRING_INDEX(warning.stake_mark,'+',1),2)AS UNSIGNED)*1000 + +CAST(SUBSTRING_INDEX(warning.stake_mark, '+', -1) AS UNSIGNED)<#{endStakeMark} + +