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}),'%')