Browse Source

自动生成

tudc 5 years ago
parent
commit
0c8875a052

+ 20 - 5
src/main/resources/com/minpay/db/table/mapper/DwBranchReportTypeMapper.xml

@@ -10,6 +10,7 @@
     <result column="DBRT_BRANCHID" jdbcType="VARCHAR" property="branchid" />
     <result column="DBRT_NAME" jdbcType="VARCHAR" property="name" />
     <result column="DBRT_TYPE" jdbcType="VARCHAR" property="type" />
+    <result column="DBRT_TIME_TYPE" jdbcType="VARCHAR" property="timeType" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <!--
@@ -82,7 +83,7 @@
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    DBRT_ID, DBRT_BRANCHID, DBRT_NAME, DBRT_TYPE
+    DBRT_ID, DBRT_BRANCHID, DBRT_NAME, DBRT_TYPE, DBRT_TIME_TYPE
   </sql>
   <select id="selectByExample" parameterType="com.minpay.db.table.model.DwBranchReportTypeExample" resultMap="BaseResultMap">
     <!--
@@ -136,9 +137,9 @@
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     insert into dw_branch_report_type (DBRT_ID, DBRT_BRANCHID, DBRT_NAME, 
-      DBRT_TYPE)
+      DBRT_TYPE, DBRT_TIME_TYPE)
     values (#{id,jdbcType=VARCHAR}, #{branchid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
-      #{type,jdbcType=VARCHAR})
+      #{type,jdbcType=VARCHAR}, #{timeType,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.minpay.db.table.model.DwBranchReportType">
     <!--
@@ -159,6 +160,9 @@
       <if test="type != null">
         DBRT_TYPE,
       </if>
+      <if test="timeType != null">
+        DBRT_TIME_TYPE,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -173,6 +177,9 @@
       <if test="type != null">
         #{type,jdbcType=VARCHAR},
       </if>
+      <if test="timeType != null">
+        #{timeType,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.minpay.db.table.model.DwBranchReportTypeExample" resultType="java.lang.Integer">
@@ -204,6 +211,9 @@
       <if test="record.type != null">
         DBRT_TYPE = #{record.type,jdbcType=VARCHAR},
       </if>
+      <if test="record.timeType != null">
+        DBRT_TIME_TYPE = #{record.timeType,jdbcType=VARCHAR},
+      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -218,7 +228,8 @@
     set DBRT_ID = #{record.id,jdbcType=VARCHAR},
       DBRT_BRANCHID = #{record.branchid,jdbcType=VARCHAR},
       DBRT_NAME = #{record.name,jdbcType=VARCHAR},
-      DBRT_TYPE = #{record.type,jdbcType=VARCHAR}
+      DBRT_TYPE = #{record.type,jdbcType=VARCHAR},
+      DBRT_TIME_TYPE = #{record.timeType,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -239,6 +250,9 @@
       <if test="type != null">
         DBRT_TYPE = #{type,jdbcType=VARCHAR},
       </if>
+      <if test="timeType != null">
+        DBRT_TIME_TYPE = #{timeType,jdbcType=VARCHAR},
+      </if>
     </set>
     where DBRT_ID = #{id,jdbcType=VARCHAR}
   </update>
@@ -250,7 +264,8 @@
     update dw_branch_report_type
     set DBRT_BRANCHID = #{branchid,jdbcType=VARCHAR},
       DBRT_NAME = #{name,jdbcType=VARCHAR},
-      DBRT_TYPE = #{type,jdbcType=VARCHAR}
+      DBRT_TYPE = #{type,jdbcType=VARCHAR},
+      DBRT_TIME_TYPE = #{timeType,jdbcType=VARCHAR}
     where DBRT_ID = #{id,jdbcType=VARCHAR}
   </update>
 </mapper>

+ 123 - 90
src/main/resources/com/minpay/db/table/mapper/DwReportInfMapper.xml

@@ -1,42 +1,44 @@
-<?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.DwReportInfMapper" >
-  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.DwReportInf" >
+<?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.DwReportInfMapper">
+  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.DwReportInf">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    <id column="DRI_ID" property="id" jdbcType="VARCHAR" />
-    <result column="DRI_UPLOAD_DATE" property="uploadDate" jdbcType="VARCHAR" />
-    <result column="DRI_FILE_NAME" property="fileName" jdbcType="VARCHAR" />
-    <result column="DRI_CREAT_USER" property="creatUser" jdbcType="VARCHAR" />
-    <result column="DRI_BRANCH" property="branch" jdbcType="VARCHAR" />
-    <result column="DRI_TYPE" property="type" jdbcType="VARCHAR" />
-    <result column="DRI_STATE" property="state" jdbcType="VARCHAR" />
+    <id column="DRI_ID" jdbcType="VARCHAR" property="id" />
+    <result column="DRI_UPLOAD_DATE" jdbcType="VARCHAR" property="uploadDate" />
+    <result column="DRI_FILE_NAME" jdbcType="VARCHAR" property="fileName" />
+    <result column="DRI_CREAT_USER" jdbcType="VARCHAR" property="creatUser" />
+    <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_DAY_INTERVAL" jdbcType="VARCHAR" property="dayInterval" />
+    <result column="DRI_TIME_INTERVAL" jdbcType="VARCHAR" property="timeInterval" />
   </resultMap>
-  <sql id="Example_Where_Clause" >
+  <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="(" suffix=")" prefixOverrides="and" >
-            <foreach collection="criteria.criteria" item="criterion" >
-              <choose >
-                <when test="criterion.noValue" >
+    <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" >
+                <when test="criterion.singleValue">
                   and ${criterion.condition} #{criterion.value}
                 </when>
-                <when test="criterion.betweenValue" >
+                <when test="criterion.betweenValue">
                   and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                 </when>
-                <when test="criterion.listValue" >
+                <when test="criterion.listValue">
                   and ${criterion.condition}
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                     #{listItem}
                   </foreach>
                 </when>
@@ -47,29 +49,29 @@
       </foreach>
     </where>
   </sql>
-  <sql id="Update_By_Example_Where_Clause" >
+  <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="(" suffix=")" prefixOverrides="and" >
-            <foreach collection="criteria.criteria" item="criterion" >
-              <choose >
-                <when test="criterion.noValue" >
+    <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" >
+                <when test="criterion.singleValue">
                   and ${criterion.condition} #{criterion.value}
                 </when>
-                <when test="criterion.betweenValue" >
+                <when test="criterion.betweenValue">
                   and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                 </when>
-                <when test="criterion.listValue" >
+                <when test="criterion.listValue">
                   and ${criterion.condition}
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                     #{listItem}
                   </foreach>
                 </when>
@@ -80,32 +82,33 @@
       </foreach>
     </where>
   </sql>
-  <sql id="Base_Column_List" >
+  <sql id="Base_Column_List">
     <!--
       WARNING - @mbggenerated
       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_ID, DRI_UPLOAD_DATE, DRI_FILE_NAME, DRI_CREAT_USER, DRI_BRANCH, DRI_TYPE, DRI_STATE, 
+    DRI_DAY_INTERVAL, DRI_TIME_INTERVAL
   </sql>
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.DwReportInfExample" >
+  <select id="selectByExample" parameterType="com.minpay.db.table.model.DwReportInfExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     select
-    <if test="distinct" >
+    <if test="distinct">
       distinct
     </if>
     <include refid="Base_Column_List" />
     from dw_report_inf
-    <if test="_parameter != null" >
+    <if test="_parameter != null">
       <include refid="Example_Where_Clause" />
     </if>
-    <if test="orderByClause != null" >
+    <if test="orderByClause != null">
       order by ${orderByClause}
     </if>
   </select>
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
@@ -115,7 +118,7 @@
     from dw_report_inf
     where DRI_ID = #{id,jdbcType=VARCHAR}
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
@@ -123,125 +126,145 @@
     delete from dw_report_inf
     where DRI_ID = #{id,jdbcType=VARCHAR}
   </delete>
-  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.DwReportInfExample" >
+  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.DwReportInfExample">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     delete from dw_report_inf
-    <if test="_parameter != null" >
+    <if test="_parameter != null">
       <include refid="Example_Where_Clause" />
     </if>
   </delete>
-  <insert id="insert" parameterType="com.minpay.db.table.model.DwReportInf" >
+  <insert id="insert" parameterType="com.minpay.db.table.model.DwReportInf">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     insert into dw_report_inf (DRI_ID, DRI_UPLOAD_DATE, DRI_FILE_NAME, 
       DRI_CREAT_USER, DRI_BRANCH, DRI_TYPE, 
-      DRI_STATE)
+      DRI_STATE, DRI_DAY_INTERVAL, DRI_TIME_INTERVAL
+      )
     values (#{id,jdbcType=VARCHAR}, #{uploadDate,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, 
       #{creatUser,jdbcType=VARCHAR}, #{branch,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
-      #{state,jdbcType=VARCHAR})
+      #{state,jdbcType=VARCHAR}, #{dayInterval,jdbcType=VARCHAR}, #{timeInterval,jdbcType=VARCHAR}
+      )
   </insert>
-  <insert id="insertSelective" parameterType="com.minpay.db.table.model.DwReportInf" >
+  <insert id="insertSelective" parameterType="com.minpay.db.table.model.DwReportInf">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     insert into dw_report_inf
-    <trim prefix="(" suffix=")" suffixOverrides="," >
-      <if test="id != null" >
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
         DRI_ID,
       </if>
-      <if test="uploadDate != null" >
+      <if test="uploadDate != null">
         DRI_UPLOAD_DATE,
       </if>
-      <if test="fileName != null" >
+      <if test="fileName != null">
         DRI_FILE_NAME,
       </if>
-      <if test="creatUser != null" >
+      <if test="creatUser != null">
         DRI_CREAT_USER,
       </if>
-      <if test="branch != null" >
+      <if test="branch != null">
         DRI_BRANCH,
       </if>
-      <if test="type != null" >
+      <if test="type != null">
         DRI_TYPE,
       </if>
-      <if test="state != null" >
+      <if test="state != null">
         DRI_STATE,
       </if>
+      <if test="dayInterval != null">
+        DRI_DAY_INTERVAL,
+      </if>
+      <if test="timeInterval != null">
+        DRI_TIME_INTERVAL,
+      </if>
     </trim>
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
-      <if test="id != null" >
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
         #{id,jdbcType=VARCHAR},
       </if>
-      <if test="uploadDate != null" >
+      <if test="uploadDate != null">
         #{uploadDate,jdbcType=VARCHAR},
       </if>
-      <if test="fileName != null" >
+      <if test="fileName != null">
         #{fileName,jdbcType=VARCHAR},
       </if>
-      <if test="creatUser != null" >
+      <if test="creatUser != null">
         #{creatUser,jdbcType=VARCHAR},
       </if>
-      <if test="branch != null" >
+      <if test="branch != null">
         #{branch,jdbcType=VARCHAR},
       </if>
-      <if test="type != null" >
+      <if test="type != null">
         #{type,jdbcType=VARCHAR},
       </if>
-      <if test="state != null" >
+      <if test="state != null">
         #{state,jdbcType=VARCHAR},
       </if>
+      <if test="dayInterval != null">
+        #{dayInterval,jdbcType=VARCHAR},
+      </if>
+      <if test="timeInterval != null">
+        #{timeInterval,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
-  <select id="countByExample" parameterType="com.minpay.db.table.model.DwReportInfExample" resultType="java.lang.Integer" >
+  <select id="countByExample" parameterType="com.minpay.db.table.model.DwReportInfExample" resultType="java.lang.Integer">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     select count(*) from dw_report_inf
-    <if test="_parameter != null" >
+    <if test="_parameter != null">
       <include refid="Example_Where_Clause" />
     </if>
   </select>
-  <update id="updateByExampleSelective" parameterType="map" >
+  <update id="updateByExampleSelective" parameterType="map">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     update dw_report_inf
-    <set >
-      <if test="record.id != null" >
+    <set>
+      <if test="record.id != null">
         DRI_ID = #{record.id,jdbcType=VARCHAR},
       </if>
-      <if test="record.uploadDate != null" >
+      <if test="record.uploadDate != null">
         DRI_UPLOAD_DATE = #{record.uploadDate,jdbcType=VARCHAR},
       </if>
-      <if test="record.fileName != null" >
+      <if test="record.fileName != null">
         DRI_FILE_NAME = #{record.fileName,jdbcType=VARCHAR},
       </if>
-      <if test="record.creatUser != null" >
+      <if test="record.creatUser != null">
         DRI_CREAT_USER = #{record.creatUser,jdbcType=VARCHAR},
       </if>
-      <if test="record.branch != null" >
+      <if test="record.branch != null">
         DRI_BRANCH = #{record.branch,jdbcType=VARCHAR},
       </if>
-      <if test="record.type != null" >
+      <if test="record.type != null">
         DRI_TYPE = #{record.type,jdbcType=VARCHAR},
       </if>
-      <if test="record.state != null" >
+      <if test="record.state != null">
         DRI_STATE = #{record.state,jdbcType=VARCHAR},
       </if>
+      <if test="record.dayInterval != null">
+        DRI_DAY_INTERVAL = #{record.dayInterval,jdbcType=VARCHAR},
+      </if>
+      <if test="record.timeInterval != null">
+        DRI_TIME_INTERVAL = #{record.timeInterval,jdbcType=VARCHAR},
+      </if>
     </set>
-    <if test="_parameter != null" >
+    <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
   </update>
-  <update id="updateByExample" parameterType="map" >
+  <update id="updateByExample" parameterType="map">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
@@ -253,40 +276,48 @@
       DRI_CREAT_USER = #{record.creatUser,jdbcType=VARCHAR},
       DRI_BRANCH = #{record.branch,jdbcType=VARCHAR},
       DRI_TYPE = #{record.type,jdbcType=VARCHAR},
-      DRI_STATE = #{record.state,jdbcType=VARCHAR}
-    <if test="_parameter != null" >
+      DRI_STATE = #{record.state,jdbcType=VARCHAR},
+      DRI_DAY_INTERVAL = #{record.dayInterval,jdbcType=VARCHAR},
+      DRI_TIME_INTERVAL = #{record.timeInterval,jdbcType=VARCHAR}
+    <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
   </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.DwReportInf" >
+  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.DwReportInf">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     update dw_report_inf
-    <set >
-      <if test="uploadDate != null" >
+    <set>
+      <if test="uploadDate != null">
         DRI_UPLOAD_DATE = #{uploadDate,jdbcType=VARCHAR},
       </if>
-      <if test="fileName != null" >
+      <if test="fileName != null">
         DRI_FILE_NAME = #{fileName,jdbcType=VARCHAR},
       </if>
-      <if test="creatUser != null" >
+      <if test="creatUser != null">
         DRI_CREAT_USER = #{creatUser,jdbcType=VARCHAR},
       </if>
-      <if test="branch != null" >
+      <if test="branch != null">
         DRI_BRANCH = #{branch,jdbcType=VARCHAR},
       </if>
-      <if test="type != null" >
+      <if test="type != null">
         DRI_TYPE = #{type,jdbcType=VARCHAR},
       </if>
-      <if test="state != null" >
+      <if test="state != null">
         DRI_STATE = #{state,jdbcType=VARCHAR},
       </if>
+      <if test="dayInterval != null">
+        DRI_DAY_INTERVAL = #{dayInterval,jdbcType=VARCHAR},
+      </if>
+      <if test="timeInterval != null">
+        DRI_TIME_INTERVAL = #{timeInterval,jdbcType=VARCHAR},
+      </if>
     </set>
     where DRI_ID = #{id,jdbcType=VARCHAR}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.DwReportInf" >
+  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.DwReportInf">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
@@ -297,7 +328,9 @@
       DRI_CREAT_USER = #{creatUser,jdbcType=VARCHAR},
       DRI_BRANCH = #{branch,jdbcType=VARCHAR},
       DRI_TYPE = #{type,jdbcType=VARCHAR},
-      DRI_STATE = #{state,jdbcType=VARCHAR}
+      DRI_STATE = #{state,jdbcType=VARCHAR},
+      DRI_DAY_INTERVAL = #{dayInterval,jdbcType=VARCHAR},
+      DRI_TIME_INTERVAL = #{timeInterval,jdbcType=VARCHAR}
     where DRI_ID = #{id,jdbcType=VARCHAR}
   </update>
 </mapper>