tudc 5 лет назад
Родитель
Сommit
caeb5b9e70

+ 398 - 0
src/main/resources/com/minpay/db/table/mapper/DwFileDetail02Mapper.xml

@@ -0,0 +1,398 @@
+<?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.mapper.DwFileDetail02Mapper">
+  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.DwFileDetail02">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="DFD2_ID" jdbcType="VARCHAR" property="id" />
+    <result column="DFD2_NO" jdbcType="VARCHAR" property="no" />
+    <result column="DFD2_BEGIN_TIME" jdbcType="VARCHAR" property="beginTime" />
+    <result column="DFD2_END_TIME" jdbcType="VARCHAR" property="endTime" />
+    <result column="DFD2_GDLX" jdbcType="VARCHAR" property="gdlx" />
+    <result column="DFD2_CXBDZ" jdbcType="VARCHAR" property="cxbdz" />
+    <result column="DFD2_XLMC" jdbcType="VARCHAR" property="xlmc" />
+    <result column="DFD2_XLLX" jdbcType="VARCHAR" property="xllx" />
+    <result column="DFD2_QDFA" jdbcType="VARCHAR" property="qdfa" />
+    <result column="DFD2_GZQJPD" jdbcType="VARCHAR" property="gzqjpd" />
+    <result column="DFD2_GZQHDHF" jdbcType="VARCHAR" property="gzqhdhf" />
+    <result column="DFD2_GZGL" jdbcType="VARCHAR" property="gzgl" />
+    <result column="DFD2_FILE_ID" jdbcType="VARCHAR" property="fileId" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    DFD2_ID, DFD2_NO, DFD2_BEGIN_TIME, DFD2_END_TIME, DFD2_GDLX, DFD2_CXBDZ, DFD2_XLMC, 
+    DFD2_XLLX, DFD2_QDFA, DFD2_GZQJPD, DFD2_GZQHDHF, DFD2_GZGL, DFD2_FILE_ID
+  </sql>
+  <select id="selectByExample" parameterType="com.minpay.db.table.model.DwFileDetail02Example" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from dw_file_detail_02
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from dw_file_detail_02
+    where DFD2_ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from dw_file_detail_02
+    where DFD2_ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.DwFileDetail02Example">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from dw_file_detail_02
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.minpay.db.table.model.DwFileDetail02">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into dw_file_detail_02 (DFD2_ID, DFD2_NO, DFD2_BEGIN_TIME, 
+      DFD2_END_TIME, DFD2_GDLX, DFD2_CXBDZ, 
+      DFD2_XLMC, DFD2_XLLX, DFD2_QDFA, DFD2_GZQJPD, 
+      DFD2_GZQHDHF, DFD2_GZGL, DFD2_FILE_ID
+      )
+    values (#{id,jdbcType=VARCHAR}, #{no,jdbcType=VARCHAR}, #{beginTime,jdbcType=VARCHAR}, 
+      #{endTime,jdbcType=VARCHAR}, #{gdlx,jdbcType=VARCHAR}, #{cxbdz,jdbcType=VARCHAR}, 
+      #{xlmc,jdbcType=VARCHAR}, #{xllx,jdbcType=VARCHAR}, #{qdfa,jdbcType=VARCHAR}, #{gzqjpd,jdbcType=VARCHAR}, 
+      #{gzqhdhf,jdbcType=VARCHAR}, #{gzgl,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.minpay.db.table.model.DwFileDetail02">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into dw_file_detail_02
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        DFD2_ID,
+      </if>
+      <if test="no != null">
+        DFD2_NO,
+      </if>
+      <if test="beginTime != null">
+        DFD2_BEGIN_TIME,
+      </if>
+      <if test="endTime != null">
+        DFD2_END_TIME,
+      </if>
+      <if test="gdlx != null">
+        DFD2_GDLX,
+      </if>
+      <if test="cxbdz != null">
+        DFD2_CXBDZ,
+      </if>
+      <if test="xlmc != null">
+        DFD2_XLMC,
+      </if>
+      <if test="xllx != null">
+        DFD2_XLLX,
+      </if>
+      <if test="qdfa != null">
+        DFD2_QDFA,
+      </if>
+      <if test="gzqjpd != null">
+        DFD2_GZQJPD,
+      </if>
+      <if test="gzqhdhf != null">
+        DFD2_GZQHDHF,
+      </if>
+      <if test="gzgl != null">
+        DFD2_GZGL,
+      </if>
+      <if test="fileId != null">
+        DFD2_FILE_ID,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="no != null">
+        #{no,jdbcType=VARCHAR},
+      </if>
+      <if test="beginTime != null">
+        #{beginTime,jdbcType=VARCHAR},
+      </if>
+      <if test="endTime != null">
+        #{endTime,jdbcType=VARCHAR},
+      </if>
+      <if test="gdlx != null">
+        #{gdlx,jdbcType=VARCHAR},
+      </if>
+      <if test="cxbdz != null">
+        #{cxbdz,jdbcType=VARCHAR},
+      </if>
+      <if test="xlmc != null">
+        #{xlmc,jdbcType=VARCHAR},
+      </if>
+      <if test="xllx != null">
+        #{xllx,jdbcType=VARCHAR},
+      </if>
+      <if test="qdfa != null">
+        #{qdfa,jdbcType=VARCHAR},
+      </if>
+      <if test="gzqjpd != null">
+        #{gzqjpd,jdbcType=VARCHAR},
+      </if>
+      <if test="gzqhdhf != null">
+        #{gzqhdhf,jdbcType=VARCHAR},
+      </if>
+      <if test="gzgl != null">
+        #{gzgl,jdbcType=VARCHAR},
+      </if>
+      <if test="fileId != null">
+        #{fileId,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.minpay.db.table.model.DwFileDetail02Example" resultType="java.lang.Integer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from dw_file_detail_02
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update dw_file_detail_02
+    <set>
+      <if test="record.id != null">
+        DFD2_ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.no != null">
+        DFD2_NO = #{record.no,jdbcType=VARCHAR},
+      </if>
+      <if test="record.beginTime != null">
+        DFD2_BEGIN_TIME = #{record.beginTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.endTime != null">
+        DFD2_END_TIME = #{record.endTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.gdlx != null">
+        DFD2_GDLX = #{record.gdlx,jdbcType=VARCHAR},
+      </if>
+      <if test="record.cxbdz != null">
+        DFD2_CXBDZ = #{record.cxbdz,jdbcType=VARCHAR},
+      </if>
+      <if test="record.xlmc != null">
+        DFD2_XLMC = #{record.xlmc,jdbcType=VARCHAR},
+      </if>
+      <if test="record.xllx != null">
+        DFD2_XLLX = #{record.xllx,jdbcType=VARCHAR},
+      </if>
+      <if test="record.qdfa != null">
+        DFD2_QDFA = #{record.qdfa,jdbcType=VARCHAR},
+      </if>
+      <if test="record.gzqjpd != null">
+        DFD2_GZQJPD = #{record.gzqjpd,jdbcType=VARCHAR},
+      </if>
+      <if test="record.gzqhdhf != null">
+        DFD2_GZQHDHF = #{record.gzqhdhf,jdbcType=VARCHAR},
+      </if>
+      <if test="record.gzgl != null">
+        DFD2_GZGL = #{record.gzgl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.fileId != null">
+        DFD2_FILE_ID = #{record.fileId,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update dw_file_detail_02
+    set DFD2_ID = #{record.id,jdbcType=VARCHAR},
+      DFD2_NO = #{record.no,jdbcType=VARCHAR},
+      DFD2_BEGIN_TIME = #{record.beginTime,jdbcType=VARCHAR},
+      DFD2_END_TIME = #{record.endTime,jdbcType=VARCHAR},
+      DFD2_GDLX = #{record.gdlx,jdbcType=VARCHAR},
+      DFD2_CXBDZ = #{record.cxbdz,jdbcType=VARCHAR},
+      DFD2_XLMC = #{record.xlmc,jdbcType=VARCHAR},
+      DFD2_XLLX = #{record.xllx,jdbcType=VARCHAR},
+      DFD2_QDFA = #{record.qdfa,jdbcType=VARCHAR},
+      DFD2_GZQJPD = #{record.gzqjpd,jdbcType=VARCHAR},
+      DFD2_GZQHDHF = #{record.gzqhdhf,jdbcType=VARCHAR},
+      DFD2_GZGL = #{record.gzgl,jdbcType=VARCHAR},
+      DFD2_FILE_ID = #{record.fileId,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.DwFileDetail02">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update dw_file_detail_02
+    <set>
+      <if test="no != null">
+        DFD2_NO = #{no,jdbcType=VARCHAR},
+      </if>
+      <if test="beginTime != null">
+        DFD2_BEGIN_TIME = #{beginTime,jdbcType=VARCHAR},
+      </if>
+      <if test="endTime != null">
+        DFD2_END_TIME = #{endTime,jdbcType=VARCHAR},
+      </if>
+      <if test="gdlx != null">
+        DFD2_GDLX = #{gdlx,jdbcType=VARCHAR},
+      </if>
+      <if test="cxbdz != null">
+        DFD2_CXBDZ = #{cxbdz,jdbcType=VARCHAR},
+      </if>
+      <if test="xlmc != null">
+        DFD2_XLMC = #{xlmc,jdbcType=VARCHAR},
+      </if>
+      <if test="xllx != null">
+        DFD2_XLLX = #{xllx,jdbcType=VARCHAR},
+      </if>
+      <if test="qdfa != null">
+        DFD2_QDFA = #{qdfa,jdbcType=VARCHAR},
+      </if>
+      <if test="gzqjpd != null">
+        DFD2_GZQJPD = #{gzqjpd,jdbcType=VARCHAR},
+      </if>
+      <if test="gzqhdhf != null">
+        DFD2_GZQHDHF = #{gzqhdhf,jdbcType=VARCHAR},
+      </if>
+      <if test="gzgl != null">
+        DFD2_GZGL = #{gzgl,jdbcType=VARCHAR},
+      </if>
+      <if test="fileId != null">
+        DFD2_FILE_ID = #{fileId,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where DFD2_ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.DwFileDetail02">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update dw_file_detail_02
+    set DFD2_NO = #{no,jdbcType=VARCHAR},
+      DFD2_BEGIN_TIME = #{beginTime,jdbcType=VARCHAR},
+      DFD2_END_TIME = #{endTime,jdbcType=VARCHAR},
+      DFD2_GDLX = #{gdlx,jdbcType=VARCHAR},
+      DFD2_CXBDZ = #{cxbdz,jdbcType=VARCHAR},
+      DFD2_XLMC = #{xlmc,jdbcType=VARCHAR},
+      DFD2_XLLX = #{xllx,jdbcType=VARCHAR},
+      DFD2_QDFA = #{qdfa,jdbcType=VARCHAR},
+      DFD2_GZQJPD = #{gzqjpd,jdbcType=VARCHAR},
+      DFD2_GZQHDHF = #{gzqhdhf,jdbcType=VARCHAR},
+      DFD2_GZGL = #{gzgl,jdbcType=VARCHAR},
+      DFD2_FILE_ID = #{fileId,jdbcType=VARCHAR}
+    where DFD2_ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 37 - 5
src/main/resources/com/minpay/db/table/mapper/DwReportInfMapper.xml

@@ -13,6 +13,8 @@
     <result column="DRI_BRANCH" jdbcType="VARCHAR" property="branch" />
     <result column="DRI_TYPE" jdbcType="VARCHAR" property="type" />
     <result column="DRI_STATE" jdbcType="VARCHAR" property="state" />
+    <result column="DRI_TQTD_MONTH" jdbcType="VARCHAR" property="tqtdMonth" />
+    <result column="DRI_TQTD_COUNT" jdbcType="VARCHAR" property="tqtdCount" />
     <result column="DRI_DAY_INTERVAL" jdbcType="VARCHAR" property="dayInterval" />
     <result column="DRI_TIME_INTERVAL" jdbcType="VARCHAR" property="timeInterval" />
     <result column="DRI_ZDTTY_COMPARE_ID" jdbcType="VARCHAR" property="zdttyCompareId" />
@@ -89,7 +91,7 @@
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     DRI_ID, DRI_UPLOAD_DATE, DRI_FILE_NAME, DRI_CREAT_USER, DRI_BRANCH, DRI_TYPE, DRI_STATE, 
-    DRI_DAY_INTERVAL, DRI_TIME_INTERVAL, DRI_ZDTTY_COMPARE_ID
+    DRI_TQTD_MONTH, DRI_TQTD_COUNT, DRI_DAY_INTERVAL, DRI_TIME_INTERVAL, DRI_ZDTTY_COMPARE_ID
   </sql>
   <select id="selectByExample" parameterType="com.minpay.db.table.model.DwReportInfExample" resultMap="BaseResultMap">
     <!--
@@ -144,12 +146,14 @@
     -->
     insert into dw_report_inf (DRI_ID, DRI_UPLOAD_DATE, DRI_FILE_NAME, 
       DRI_CREAT_USER, DRI_BRANCH, DRI_TYPE, 
-      DRI_STATE, DRI_DAY_INTERVAL, DRI_TIME_INTERVAL, 
-      DRI_ZDTTY_COMPARE_ID)
+      DRI_STATE, DRI_TQTD_MONTH, DRI_TQTD_COUNT, 
+      DRI_DAY_INTERVAL, DRI_TIME_INTERVAL, DRI_ZDTTY_COMPARE_ID
+      )
     values (#{id,jdbcType=VARCHAR}, #{uploadDate,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, 
       #{creatUser,jdbcType=VARCHAR}, #{branch,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
-      #{state,jdbcType=VARCHAR}, #{dayInterval,jdbcType=VARCHAR}, #{timeInterval,jdbcType=VARCHAR}, 
-      #{zdttyCompareId,jdbcType=VARCHAR})
+      #{state,jdbcType=VARCHAR}, #{tqtdMonth,jdbcType=VARCHAR}, #{tqtdCount,jdbcType=VARCHAR}, 
+      #{dayInterval,jdbcType=VARCHAR}, #{timeInterval,jdbcType=VARCHAR}, #{zdttyCompareId,jdbcType=VARCHAR}
+      )
   </insert>
   <insert id="insertSelective" parameterType="com.minpay.db.table.model.DwReportInf">
     <!--
@@ -179,6 +183,12 @@
       <if test="state != null">
         DRI_STATE,
       </if>
+      <if test="tqtdMonth != null">
+        DRI_TQTD_MONTH,
+      </if>
+      <if test="tqtdCount != null">
+        DRI_TQTD_COUNT,
+      </if>
       <if test="dayInterval != null">
         DRI_DAY_INTERVAL,
       </if>
@@ -211,6 +221,12 @@
       <if test="state != null">
         #{state,jdbcType=VARCHAR},
       </if>
+      <if test="tqtdMonth != null">
+        #{tqtdMonth,jdbcType=VARCHAR},
+      </if>
+      <if test="tqtdCount != null">
+        #{tqtdCount,jdbcType=VARCHAR},
+      </if>
       <if test="dayInterval != null">
         #{dayInterval,jdbcType=VARCHAR},
       </if>
@@ -260,6 +276,12 @@
       <if test="record.state != null">
         DRI_STATE = #{record.state,jdbcType=VARCHAR},
       </if>
+      <if test="record.tqtdMonth != null">
+        DRI_TQTD_MONTH = #{record.tqtdMonth,jdbcType=VARCHAR},
+      </if>
+      <if test="record.tqtdCount != null">
+        DRI_TQTD_COUNT = #{record.tqtdCount,jdbcType=VARCHAR},
+      </if>
       <if test="record.dayInterval != null">
         DRI_DAY_INTERVAL = #{record.dayInterval,jdbcType=VARCHAR},
       </if>
@@ -287,6 +309,8 @@
       DRI_BRANCH = #{record.branch,jdbcType=VARCHAR},
       DRI_TYPE = #{record.type,jdbcType=VARCHAR},
       DRI_STATE = #{record.state,jdbcType=VARCHAR},
+      DRI_TQTD_MONTH = #{record.tqtdMonth,jdbcType=VARCHAR},
+      DRI_TQTD_COUNT = #{record.tqtdCount,jdbcType=VARCHAR},
       DRI_DAY_INTERVAL = #{record.dayInterval,jdbcType=VARCHAR},
       DRI_TIME_INTERVAL = #{record.timeInterval,jdbcType=VARCHAR},
       DRI_ZDTTY_COMPARE_ID = #{record.zdttyCompareId,jdbcType=VARCHAR}
@@ -319,6 +343,12 @@
       <if test="state != null">
         DRI_STATE = #{state,jdbcType=VARCHAR},
       </if>
+      <if test="tqtdMonth != null">
+        DRI_TQTD_MONTH = #{tqtdMonth,jdbcType=VARCHAR},
+      </if>
+      <if test="tqtdCount != null">
+        DRI_TQTD_COUNT = #{tqtdCount,jdbcType=VARCHAR},
+      </if>
       <if test="dayInterval != null">
         DRI_DAY_INTERVAL = #{dayInterval,jdbcType=VARCHAR},
       </if>
@@ -343,6 +373,8 @@
       DRI_BRANCH = #{branch,jdbcType=VARCHAR},
       DRI_TYPE = #{type,jdbcType=VARCHAR},
       DRI_STATE = #{state,jdbcType=VARCHAR},
+      DRI_TQTD_MONTH = #{tqtdMonth,jdbcType=VARCHAR},
+      DRI_TQTD_COUNT = #{tqtdCount,jdbcType=VARCHAR},
       DRI_DAY_INTERVAL = #{dayInterval,jdbcType=VARCHAR},
       DRI_TIME_INTERVAL = #{timeInterval,jdbcType=VARCHAR},
       DRI_ZDTTY_COMPARE_ID = #{zdttyCompareId,jdbcType=VARCHAR}

+ 1 - 0
src/main/resources/com/minpay/db/table/own/mapper/DataWareManageMapper.xml

@@ -37,5 +37,6 @@
 					#{item.filetypeId}
 				</foreach>
 		   	</if>
+		   	order by DFI_UPLOAD_DATE desc
 	</select>
 </mapper>

+ 1 - 0
src/main/resources/com/minpay/db/table/own/mapper/ReportManageMapper.xml

@@ -30,5 +30,6 @@
 			<if test="reportType != null  and reportType != ''">
 		    	and b.DBRT_ID = #{reportType,jdbcType=VARCHAR}
 		   	</if>
+		   	order by DRI_UPLOAD_DATE desc
 	</select>
 </mapper>

+ 70 - 4
src/main/resources/com/minpay/db/table/own/mapper/ReportServiceMapper.xml

@@ -26,11 +26,28 @@
 		    	and DFD0_START_TIME &lt; #{endTime,jdbcType=VARCHAR}
 		   	</if>
 	</select>
+	<select id="selectReportType00TqtdGS" resultType="hashmap" parameterType="java.util.Map">
+		select
+			cast(COUNT(1) as char) num,
+			DFD0_AREA area
+        from 
+        	dw_file_detail_00 a
+		where
+			1 = 1
+			<if test="beginTime != null  and beginTime != ''">
+		    	and DFD0_START_TIME &gt; #{beginTime,jdbcType=VARCHAR}
+		   	</if>
+			<if test="endTime != null  and endTime != ''">
+		    	and DFD0_START_TIME &lt; #{endTime,jdbcType=VARCHAR}
+		   	</if>
+		   	GROUP BY DFD0_AREA
+	</select>
 	<select id="selectMountCount00" resultType="hashmap" parameterType="java.util.Map">
 		select
-			a.DFD0_ADDRESS_NUM,
+			a.DFD0_ADDRESS_NUM addressNum,
 			a.DFD0_AREA area,
-			count(1) num
+			a.DFD0_ADDRESS_NAME addressName,
+			cast(count(1) as char) num
         from 
         	dw_file_detail_00 a
 		where
@@ -48,8 +65,8 @@
 					#{item.addressNum}
 				</foreach>
 		   	</if>
-		group by a.DFD0_ADDRESS_NUM,a.DFD0_AREA
-		having num &gt;= 3
+		group by a.DFD0_ADDRESS_NUM,a.DFD0_AREA,DFD0_ADDRESS_NAME
+		having num &gt;= #{countNum,jdbcType=VARCHAR}
 	</select>
 	<select id="queryYesterdayDetail" resultType="hashmap" parameterType="java.util.Map">
 		select
@@ -80,4 +97,53 @@
 		   	</if>
 		group by a.DFD0_AREA
 	</select>
+	<select id="selectDetail02ByGZQJPD" resultType="hashmap" parameterType="java.util.Map">
+		select
+			DFD2_GZQJPD gzqjpd,
+			cast(COUNT(DFD2_GZQJPD) as char) num
+		from
+			dw_file_detail_02
+		where
+			1 = 1
+			<if test="beginTime != null  and beginTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &gt;= #{beginTime,jdbcType=VARCHAR}
+			</if>
+			<if test="endTime != null  and endTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &lt;= #{endTime,jdbcType=VARCHAR}
+			</if>
+		GROUP BY DFD2_GZQJPD
+	</select>
+	<select id="selectDetail02ByGZQHDHF" resultType="hashmap" parameterType="java.util.Map">
+		select
+			DFD2_GZQHDHF gzqhdhf,
+			cast(COUNT(DFD2_GZQHDHF) as char) num
+		from
+			dw_file_detail_02
+		where
+			1 = 1
+			<if test="beginTime != null  and beginTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &gt;= #{beginTime,jdbcType=VARCHAR}
+			</if>
+			<if test="endTime != null  and endTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &lt;= #{endTime,jdbcType=VARCHAR}
+			</if>
+		GROUP BY DFD2_GZQHDHF
+	</select>
+	<select id="selectDetail02ByGZQJPDAndGZQHDHF" resultType="hashmap" parameterType="java.util.Map">
+		select
+			DFD2_GZQJPD gzqjpd,
+			DFD2_GZQHDHF gzqhdhf,
+			cast(COUNT(1) as char) num
+		from
+			dw_file_detail_02
+		where
+			1 = 1
+			<if test="beginTime != null  and beginTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &gt;= #{beginTime,jdbcType=VARCHAR}
+			</if>
+			<if test="endTime != null  and endTime != ''">
+				and substring(DFD2_BEGIN_TIME, 1, 8) &lt;= #{endTime,jdbcType=VARCHAR}
+			</if>
+		GROUP BY DFD2_GZQJPD,DFD2_GZQHDHF
+	</select>
 </mapper>