From c1a352b272c653f0363de7dcc2dd73e1a6151c2e Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Mon, 24 Aug 2020 11:37:28 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=94=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93Mysql=E8=AF=AD=E5=8F=A5=202.=20=E7=BC=96?= =?UTF-8?q?=E5=86=99=E6=95=B0=E6=8D=AE=E5=BA=93DisposeTask=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mappers/DisposeTask.xml | 2 +- .../test/mapper/DisposeTaskMapperTest.java | 96 ++++++++++++++++--- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/src/main/resources/mappers/DisposeTask.xml b/src/main/resources/mappers/DisposeTask.xml index 13f0d3b0..dd3ff71d 100644 --- a/src/main/resources/mappers/DisposeTask.xml +++ b/src/main/resources/mappers/DisposeTask.xml @@ -67,7 +67,7 @@ ti.status status FROM dispose_task dt LEFT JOIN device_task ti on dt.id = ti.taskId - AND dt.id = #{taskId} + WHERE dt.id = #{taskId}