From a3e794bb31687df834d944e16838423f62d9197c Mon Sep 17 00:00:00 2001 From: liulixin Date: Thu, 25 Jan 2024 11:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=A6=81=E9=97=B8=E6=9C=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/GateCarIOServiceImpl.java | 2 +- .../gatemachine/CzksGateCarIOMapper.xml | 38 ++++++++++++++++--- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/zcloud/service/gatemachine/impl/GateCarIOServiceImpl.java b/src/main/java/com/zcloud/service/gatemachine/impl/GateCarIOServiceImpl.java index fcce0e4e..f1a1f335 100644 --- a/src/main/java/com/zcloud/service/gatemachine/impl/GateCarIOServiceImpl.java +++ b/src/main/java/com/zcloud/service/gatemachine/impl/GateCarIOServiceImpl.java @@ -35,7 +35,7 @@ public class GateCarIOServiceImpl implements GateCarIOService { public List getDatalistpage(Page page) { if (page.getPd().get("GATE_AREA_TYPE") != null && "1".equals(page.getPd().get("GATE_AREA_TYPE"))) { return czksGateCarIOMapper.getGroceryDatalistPage(page); - } else if (page.getPd().get("GATE_AREA_TYPE") != null) { + } else if (page.getPd().get("GATE_AREA_TYPE") != null && "2".equals(page.getPd().get("GATE_AREA_TYPE"))) { return czksGateCarIOMapper.getMineralDatalistPage(page); } return new ArrayList<>(); diff --git a/src/main/resources/mybatis/datasource/gatemachine/CzksGateCarIOMapper.xml b/src/main/resources/mybatis/datasource/gatemachine/CzksGateCarIOMapper.xml index dc489bd0..1936e24b 100644 --- a/src/main/resources/mybatis/datasource/gatemachine/CzksGateCarIOMapper.xml +++ b/src/main/resources/mybatis/datasource/gatemachine/CzksGateCarIOMapper.xml @@ -174,10 +174,23 @@ and f.GATE_MACHINE_ID = #{pd.GATE_MACHINE_ID ,jdbcType=VARCHAR} - - and f.JGSJ = ]]> #{pd.JGSJ ,jdbcType=VARCHAR} and f.CGSJ - #{pd.CGSJ ,jdbcType=VARCHAR} + + + + + and f.PASS_TYPE=0 and f.JGSJ between #{pd.startTime ,jdbcType=VARCHAR} and + #{pd.endTime ,jdbcType=VARCHAR} + + + and f.PASS_TYPE=1 and f.CGSJ between #{pd.startTime ,jdbcType=VARCHAR} and + #{pd.endTime ,jdbcType=VARCHAR} + + + + and f.CREATTIME between #{pd.startTime ,jdbcType=VARCHAR} and #{pd.endTime ,jdbcType=VARCHAR} + + and f.TRUCK_NO like CONCAT(CONCAT('%',#{pd.TRUCK_NO}),'%') @@ -193,10 +206,23 @@ and f.GATE_MACHINE_ID = #{pd.GATE_MACHINE_ID ,jdbcType=VARCHAR} - - and f.JGSJ = ]]> #{pd.JGSJ ,jdbcType=VARCHAR} and f.CGSJ - #{pd.CGSJ ,jdbcType=VARCHAR} + + + + + and f.PASS_TYPE=0 and f.JGSJ between #{pd.startTime ,jdbcType=VARCHAR} and + #{pd.endTime ,jdbcType=VARCHAR} + + + and f.PASS_TYPE=1 and f.CGSJ between #{pd.startTime ,jdbcType=VARCHAR} and + #{pd.endTime ,jdbcType=VARCHAR} + + + + and f.CREATTIME between #{pd.startTime ,jdbcType=VARCHAR} and #{pd.endTime ,jdbcType=VARCHAR} + + and f.TRUCK_NO like CONCAT(CONCAT('%',#{pd.TRUCK_NO}),'%')