From 07f2d5bcdc9eeaaba9a6211c00dce6fca2d830d1 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Mon, 3 Jun 2019 18:29:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=99=BA=E8=83=BD=E7=94=B5=E8=A1=A8][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E7=94=B5=E8=A1=A8=E8=A1=A8mapper.xml]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/KwBoxMapper.xml | 2 +- .../main/resources/mapper/KwMetersMapper.xml | 71 +++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 mallinkService/src/main/resources/mapper/KwMetersMapper.xml diff --git a/mallinkService/src/main/resources/mapper/KwBoxMapper.xml b/mallinkService/src/main/resources/mapper/KwBoxMapper.xml index 195778ab5..4ad622975 100644 --- a/mallinkService/src/main/resources/mapper/KwBoxMapper.xml +++ b/mallinkService/src/main/resources/mapper/KwBoxMapper.xml @@ -3,7 +3,7 @@ - + diff --git a/mallinkService/src/main/resources/mapper/KwMetersMapper.xml b/mallinkService/src/main/resources/mapper/KwMetersMapper.xml new file mode 100644 index 000000000..e6bcf67e3 --- /dev/null +++ b/mallinkService/src/main/resources/mapper/KwMetersMapper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + `id`,`tenant_id`,`address`,`brand`,`model`,`place`,`protocol`,`bandrate`,`online`,`config`,`create_time`,`update_time` + + + + where 1 = 1 + + + and `id` = #{id} + + + + and `tenant_id` = #{tenantId} + + + + and `address` like concat('%', #{address},'%') + + + + and `brand` like concat('%', #{brand},'%') + + + + and `place` like concat('%', #{place},'%') + + + + and `model` = #{model} + + + + and `online` = #{online} + + + + and id in + + #{idItem} + + + order by ${sortColumns} + + + + + +