|
|
@@ -0,0 +1,66 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
+<mapper namespace="com.minpay.db.table.own.mapper.ReportServiceMapper">
|
|
|
+ <select id="selectReportType00" resultType="hashmap" parameterType="java.util.Map">
|
|
|
+ select
|
|
|
+ a.DFD0_ID id,
|
|
|
+ a.DFD0_NUMBER number,
|
|
|
+ a.DFD0_ADDRESS_NUM addressNum,
|
|
|
+ a.DFD0_ADDRESS_NAME addressName,
|
|
|
+ a.DFD0_DATE date,
|
|
|
+ a.DFD0_AREA area,
|
|
|
+ a.DFD0_COMONPANY_NAME comonpanyName,
|
|
|
+ a.DFD0_TERMINAL_NAME terminalName,
|
|
|
+ a.DFD0_TERMINAL_NUM terminalNum,
|
|
|
+ a.DFD0_TERMINAL_ADDRESS terminalAddress,
|
|
|
+ a.DFD0_START_TIME startTime,
|
|
|
+ a.DFD0_END_TIME endTime
|
|
|
+ from
|
|
|
+ dw_file_detail_00 a
|
|
|
+ where
|
|
|
+ 1 = 1
|
|
|
+ <if test="beginTime != null and beginTime != ''">
|
|
|
+ and DFD0_START_TIME > #{beginTime,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
+ and DFD0_START_TIME < #{endTime,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectMountCount00" resultType="hashmap" parameterType="java.util.Map">
|
|
|
+ select
|
|
|
+ a.DFD0_ADDRESS_NUM,
|
|
|
+ a.DFD0_AREA area,
|
|
|
+ count(1) num
|
|
|
+ from
|
|
|
+ dw_file_detail_00 a
|
|
|
+ where
|
|
|
+ 1 = 1
|
|
|
+ <if test="beginDay != null and beginDay != ''">
|
|
|
+ and DFD0_START_TIME > #{beginDay,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="endDay != null and endDay != ''">
|
|
|
+ and DFD0_START_TIME < #{endDay,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="yesterdayDetail != null">
|
|
|
+ and DFD0_ADDRESS_NUM in
|
|
|
+ <foreach item="item" index="index" collection="yesterdayDetail" open="("
|
|
|
+ separator="," close=")">
|
|
|
+ #{item.addressNum}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ group by a.DFD0_ADDRESS_NUM,a.DFD0_AREA
|
|
|
+ having num >= 3
|
|
|
+ </select>
|
|
|
+ <select id="queryYesterdayDetail" resultType="hashmap" parameterType="java.util.Map">
|
|
|
+ select
|
|
|
+ a.DFD0_ADDRESS_NUM addressNum
|
|
|
+ from
|
|
|
+ dw_file_detail_00 a
|
|
|
+ where
|
|
|
+ 1 = 1
|
|
|
+ <if test="yesterday != null and yesterday != ''">
|
|
|
+ and DFD0_DATE = #{yesterday,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ group by a.DFD0_ADDRESS_NUM
|
|
|
+ </select>
|
|
|
+</mapper>
|