sunqing 4 years ago
parent
commit
ed8daad333

+ 0 - 1
src/main/java/com/minpay/common/service/impl/LogServiceImpl.java

@@ -85,7 +85,6 @@ public class LogServiceImpl implements ILogService {
 		
 		ImLog imLog = new ImLog();
 		imLog.setLogno(logNo);
-		imLog.setChannel(channel);
 		imLog.setUserid(userId);
 		imLog.setBsncode(bsnCode);
 		imLog.setDatetime(dateTime);

+ 2 - 1
src/main/java/com/minpay/db/table/mapper/ImLogMapper.java

@@ -3,9 +3,10 @@ package com.minpay.db.table.mapper;
 import com.minpay.db.table.model.ImLog;
 import com.minpay.db.table.model.ImLogExample;
 import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
-import java.util.List;
 import org.apache.ibatis.annotations.Param;
 
+import java.util.List;
+
 public interface ImLogMapper extends IMINMybatisEntityMapper<ImLog, String, ImLogExample> {
     /**
      * This method was generated by MyBatis Generator.

+ 32 - 32
src/main/java/com/minpay/db/table/model/ImLog.java

@@ -13,14 +13,6 @@ public class ImLog extends AbstractMINBean {
 
     /**
      * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column im_log.LOG_CHANNEL
-     *
-     * @mbggenerated
-     */
-    private String channel;
-
-    /**
-     * This field was generated by MyBatis Generator.
      * This field corresponds to the database column im_log.LOG_DATETIME
      *
      * @mbggenerated
@@ -76,6 +68,14 @@ public class ImLog extends AbstractMINBean {
     private String ip;
 
     /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column im_log.LOG_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
      * This method was generated by MyBatis Generator.
      * This method returns the value of the database column im_log.LOG_LOGNO
      *
@@ -101,30 +101,6 @@ public class ImLog extends AbstractMINBean {
 
     /**
      * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column im_log.LOG_CHANNEL
-     *
-     * @return the value of im_log.LOG_CHANNEL
-     *
-     * @mbggenerated
-     */
-    public String getChannel() {
-        return channel;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column im_log.LOG_CHANNEL
-     *
-     * @param channel the value for im_log.LOG_CHANNEL
-     *
-     * @mbggenerated
-     */
-    public void setChannel(String channel) {
-        this.channel = channel == null ? null : channel.trim();
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
      * This method returns the value of the database column im_log.LOG_DATETIME
      *
      * @return the value of im_log.LOG_DATETIME
@@ -290,4 +266,28 @@ public class ImLog extends AbstractMINBean {
     public void setIp(String ip) {
         this.ip = ip == null ? null : ip.trim();
     }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column im_log.LOG_STATE
+     *
+     * @return the value of im_log.LOG_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column im_log.LOG_STATE
+     *
+     * @param state the value for im_log.LOG_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
 }

+ 78 - 78
src/main/java/com/minpay/db/table/model/ImLogExample.java

@@ -268,84 +268,6 @@ public class ImLogExample {
             return (Criteria) this;
         }
 
-        public Criteria andChannelIsNull() {
-            addCriterion("LOG_CHANNEL is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelIsNotNull() {
-            addCriterion("LOG_CHANNEL is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelEqualTo(String value) {
-            if(value == null ){
-                andChannelIsNull();
-            } else {
-                addCriterion("LOG_CHANNEL =", value, "channel");
-            }
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelNotEqualTo(String value) {
-            if(value == null ){
-                andChannelIsNotNull();
-            } else {
-                addCriterion("LOG_CHANNEL <>", value, "channel");
-            }
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelGreaterThan(String value) {
-            addCriterion("LOG_CHANNEL >", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelGreaterThanOrEqualTo(String value) {
-            addCriterion("LOG_CHANNEL >=", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelLessThan(String value) {
-            addCriterion("LOG_CHANNEL <", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelLessThanOrEqualTo(String value) {
-            addCriterion("LOG_CHANNEL <=", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelLike(String value) {
-            addCriterion("LOG_CHANNEL like", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelNotLike(String value) {
-            addCriterion("LOG_CHANNEL not like", value, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelIn(List<String> values) {
-            addCriterion("LOG_CHANNEL in", values, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelNotIn(List<String> values) {
-            addCriterion("LOG_CHANNEL not in", values, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelBetween(String value1, String value2) {
-            addCriterion("LOG_CHANNEL between", value1, value2, "channel");
-            return (Criteria) this;
-        }
-
-        public Criteria andChannelNotBetween(String value1, String value2) {
-            addCriterion("LOG_CHANNEL not between", value1, value2, "channel");
-            return (Criteria) this;
-        }
-
         public Criteria andDatetimeIsNull() {
             addCriterion("LOG_DATETIME is null");
             return (Criteria) this;
@@ -891,6 +813,84 @@ public class ImLogExample {
             addCriterion("LOG_IP not between", value1, value2, "ip");
             return (Criteria) this;
         }
+
+        public Criteria andStateIsNull() {
+            addCriterion("LOG_STATE is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIsNotNull() {
+            addCriterion("LOG_STATE is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateEqualTo(String value) {
+            if(value == null ){
+                andStateIsNull();
+            } else {
+                addCriterion("LOG_STATE =", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotEqualTo(String value) {
+            if(value == null ){
+                andStateIsNotNull();
+            } else {
+                addCriterion("LOG_STATE <>", value, "state");
+            }
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThan(String value) {
+            addCriterion("LOG_STATE >", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateGreaterThanOrEqualTo(String value) {
+            addCriterion("LOG_STATE >=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThan(String value) {
+            addCriterion("LOG_STATE <", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLessThanOrEqualTo(String value) {
+            addCriterion("LOG_STATE <=", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateLike(String value) {
+            addCriterion("LOG_STATE like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotLike(String value) {
+            addCriterion("LOG_STATE not like", value, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateIn(List<String> values) {
+            addCriterion("LOG_STATE in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotIn(List<String> values) {
+            addCriterion("LOG_STATE not in", values, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateBetween(String value1, String value2) {
+            addCriterion("LOG_STATE between", value1, value2, "state");
+            return (Criteria) this;
+        }
+
+        public Criteria andStateNotBetween(String value1, String value2) {
+            addCriterion("LOG_STATE not between", value1, value2, "state");
+            return (Criteria) this;
+        }
     }
 
     /**

+ 116 - 118
src/main/resources/com/minpay/db/table/mapper/ImLogMapper.xml

@@ -1,44 +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.ImLogMapper" >
-  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImLog" >
+<?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.ImLogMapper">
+  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImLog">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    <id column="LOG_LOGNO" property="logno" jdbcType="CHAR" />
-    <result column="LOG_CHANNEL" property="channel" jdbcType="VARCHAR" />
-    <result column="LOG_DATETIME" property="datetime" jdbcType="CHAR" />
-    <result column="LOG_USERID" property="userid" jdbcType="VARCHAR" />
-    <result column="LOG_BSNCODE" property="bsncode" jdbcType="VARCHAR" />
-    <result column="LOG_RESULT" property="result" jdbcType="CHAR" />
-    <result column="LOG_CONTEXTID" property="contextid" jdbcType="VARCHAR" />
-    <result column="LOG_INFO" property="info" jdbcType="VARCHAR" />
-    <result column="LOG_IP" property="ip" jdbcType="VARCHAR" />
+    <id column="LOG_LOGNO" jdbcType="CHAR" property="logno" />
+    <result column="LOG_DATETIME" jdbcType="CHAR" property="datetime" />
+    <result column="LOG_USERID" jdbcType="VARCHAR" property="userid" />
+    <result column="LOG_BSNCODE" jdbcType="VARCHAR" property="bsncode" />
+    <result column="LOG_RESULT" jdbcType="CHAR" property="result" />
+    <result column="LOG_CONTEXTID" jdbcType="VARCHAR" property="contextid" />
+    <result column="LOG_INFO" jdbcType="VARCHAR" property="info" />
+    <result column="LOG_IP" jdbcType="VARCHAR" property="ip" />
+    <result column="LOG_STATE" jdbcType="VARCHAR" property="state" />
   </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>
@@ -49,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>
@@ -82,33 +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.
     -->
-    LOG_LOGNO, LOG_CHANNEL, LOG_DATETIME, LOG_USERID, LOG_BSNCODE, LOG_RESULT, LOG_CONTEXTID, 
-    LOG_INFO, LOG_IP
+    LOG_LOGNO, LOG_DATETIME, LOG_USERID, LOG_BSNCODE, LOG_RESULT, LOG_CONTEXTID, LOG_INFO, 
+    LOG_IP, LOG_STATE
   </sql>
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImLogExample" >
+  <select id="selectByExample" parameterType="com.minpay.db.table.model.ImLogExample" 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 im_log
-    <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.
@@ -118,7 +118,7 @@
     from im_log
     where LOG_LOGNO = #{logno,jdbcType=CHAR}
   </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.
@@ -126,211 +126,209 @@
     delete from im_log
     where LOG_LOGNO = #{logno,jdbcType=CHAR}
   </delete>
-  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImLogExample" >
+  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImLogExample">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     delete from im_log
-    <if test="_parameter != null" >
+    <if test="_parameter != null">
       <include refid="Example_Where_Clause" />
     </if>
   </delete>
-  <insert id="insert" parameterType="com.minpay.db.table.model.ImLog" >
+  <insert id="insert" parameterType="com.minpay.db.table.model.ImLog">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    insert into im_log (LOG_LOGNO, LOG_CHANNEL, LOG_DATETIME, 
-      LOG_USERID, LOG_BSNCODE, LOG_RESULT, 
-      LOG_CONTEXTID, LOG_INFO, LOG_IP
-      )
-    values (#{logno,jdbcType=CHAR}, #{channel,jdbcType=VARCHAR}, #{datetime,jdbcType=CHAR}, 
-      #{userid,jdbcType=VARCHAR}, #{bsncode,jdbcType=VARCHAR}, #{result,jdbcType=CHAR}, 
-      #{contextid,jdbcType=VARCHAR}, #{info,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}
-      )
+    insert into im_log (LOG_LOGNO, LOG_DATETIME, LOG_USERID, 
+      LOG_BSNCODE, LOG_RESULT, LOG_CONTEXTID, 
+      LOG_INFO, LOG_IP, LOG_STATE)
+    values (#{logno,jdbcType=CHAR}, #{datetime,jdbcType=CHAR}, #{userid,jdbcType=VARCHAR}, 
+      #{bsncode,jdbcType=VARCHAR}, #{result,jdbcType=CHAR}, #{contextid,jdbcType=VARCHAR}, 
+      #{info,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR})
   </insert>
-  <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImLog" >
+  <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImLog">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     insert into im_log
-    <trim prefix="(" suffix=")" suffixOverrides="," >
-      <if test="logno != null" >
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="logno != null">
         LOG_LOGNO,
       </if>
-      <if test="channel != null" >
-        LOG_CHANNEL,
-      </if>
-      <if test="datetime != null" >
+      <if test="datetime != null">
         LOG_DATETIME,
       </if>
-      <if test="userid != null" >
+      <if test="userid != null">
         LOG_USERID,
       </if>
-      <if test="bsncode != null" >
+      <if test="bsncode != null">
         LOG_BSNCODE,
       </if>
-      <if test="result != null" >
+      <if test="result != null">
         LOG_RESULT,
       </if>
-      <if test="contextid != null" >
+      <if test="contextid != null">
         LOG_CONTEXTID,
       </if>
-      <if test="info != null" >
+      <if test="info != null">
         LOG_INFO,
       </if>
-      <if test="ip != null" >
+      <if test="ip != null">
         LOG_IP,
       </if>
+      <if test="state != null">
+        LOG_STATE,
+      </if>
     </trim>
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
-      <if test="logno != null" >
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="logno != null">
         #{logno,jdbcType=CHAR},
       </if>
-      <if test="channel != null" >
-        #{channel,jdbcType=VARCHAR},
-      </if>
-      <if test="datetime != null" >
+      <if test="datetime != null">
         #{datetime,jdbcType=CHAR},
       </if>
-      <if test="userid != null" >
+      <if test="userid != null">
         #{userid,jdbcType=VARCHAR},
       </if>
-      <if test="bsncode != null" >
+      <if test="bsncode != null">
         #{bsncode,jdbcType=VARCHAR},
       </if>
-      <if test="result != null" >
+      <if test="result != null">
         #{result,jdbcType=CHAR},
       </if>
-      <if test="contextid != null" >
+      <if test="contextid != null">
         #{contextid,jdbcType=VARCHAR},
       </if>
-      <if test="info != null" >
+      <if test="info != null">
         #{info,jdbcType=VARCHAR},
       </if>
-      <if test="ip != null" >
+      <if test="ip != null">
         #{ip,jdbcType=VARCHAR},
       </if>
+      <if test="state != null">
+        #{state,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
-  <select id="countByExample" parameterType="com.minpay.db.table.model.ImLogExample" resultType="java.lang.Integer" >
+  <select id="countByExample" parameterType="com.minpay.db.table.model.ImLogExample" resultType="java.lang.Integer">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     select count(*) from im_log
-    <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 im_log
-    <set >
-      <if test="record.logno != null" >
+    <set>
+      <if test="record.logno != null">
         LOG_LOGNO = #{record.logno,jdbcType=CHAR},
       </if>
-      <if test="record.channel != null" >
-        LOG_CHANNEL = #{record.channel,jdbcType=VARCHAR},
-      </if>
-      <if test="record.datetime != null" >
+      <if test="record.datetime != null">
         LOG_DATETIME = #{record.datetime,jdbcType=CHAR},
       </if>
-      <if test="record.userid != null" >
+      <if test="record.userid != null">
         LOG_USERID = #{record.userid,jdbcType=VARCHAR},
       </if>
-      <if test="record.bsncode != null" >
+      <if test="record.bsncode != null">
         LOG_BSNCODE = #{record.bsncode,jdbcType=VARCHAR},
       </if>
-      <if test="record.result != null" >
+      <if test="record.result != null">
         LOG_RESULT = #{record.result,jdbcType=CHAR},
       </if>
-      <if test="record.contextid != null" >
+      <if test="record.contextid != null">
         LOG_CONTEXTID = #{record.contextid,jdbcType=VARCHAR},
       </if>
-      <if test="record.info != null" >
+      <if test="record.info != null">
         LOG_INFO = #{record.info,jdbcType=VARCHAR},
       </if>
-      <if test="record.ip != null" >
+      <if test="record.ip != null">
         LOG_IP = #{record.ip,jdbcType=VARCHAR},
       </if>
+      <if test="record.state != null">
+        LOG_STATE = #{record.state,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.
     -->
     update im_log
     set LOG_LOGNO = #{record.logno,jdbcType=CHAR},
-      LOG_CHANNEL = #{record.channel,jdbcType=VARCHAR},
       LOG_DATETIME = #{record.datetime,jdbcType=CHAR},
       LOG_USERID = #{record.userid,jdbcType=VARCHAR},
       LOG_BSNCODE = #{record.bsncode,jdbcType=VARCHAR},
       LOG_RESULT = #{record.result,jdbcType=CHAR},
       LOG_CONTEXTID = #{record.contextid,jdbcType=VARCHAR},
       LOG_INFO = #{record.info,jdbcType=VARCHAR},
-      LOG_IP = #{record.ip,jdbcType=VARCHAR}
-    <if test="_parameter != null" >
+      LOG_IP = #{record.ip,jdbcType=VARCHAR},
+      LOG_STATE = #{record.state,jdbcType=VARCHAR}
+    <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
   </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImLog" >
+  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImLog">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     update im_log
-    <set >
-      <if test="channel != null" >
-        LOG_CHANNEL = #{channel,jdbcType=VARCHAR},
-      </if>
-      <if test="datetime != null" >
+    <set>
+      <if test="datetime != null">
         LOG_DATETIME = #{datetime,jdbcType=CHAR},
       </if>
-      <if test="userid != null" >
+      <if test="userid != null">
         LOG_USERID = #{userid,jdbcType=VARCHAR},
       </if>
-      <if test="bsncode != null" >
+      <if test="bsncode != null">
         LOG_BSNCODE = #{bsncode,jdbcType=VARCHAR},
       </if>
-      <if test="result != null" >
+      <if test="result != null">
         LOG_RESULT = #{result,jdbcType=CHAR},
       </if>
-      <if test="contextid != null" >
+      <if test="contextid != null">
         LOG_CONTEXTID = #{contextid,jdbcType=VARCHAR},
       </if>
-      <if test="info != null" >
+      <if test="info != null">
         LOG_INFO = #{info,jdbcType=VARCHAR},
       </if>
-      <if test="ip != null" >
+      <if test="ip != null">
         LOG_IP = #{ip,jdbcType=VARCHAR},
       </if>
+      <if test="state != null">
+        LOG_STATE = #{state,jdbcType=VARCHAR},
+      </if>
     </set>
     where LOG_LOGNO = #{logno,jdbcType=CHAR}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImLog" >
+  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImLog">
     <!--
       WARNING - @mbggenerated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
     update im_log
-    set LOG_CHANNEL = #{channel,jdbcType=VARCHAR},
-      LOG_DATETIME = #{datetime,jdbcType=CHAR},
+    set LOG_DATETIME = #{datetime,jdbcType=CHAR},
       LOG_USERID = #{userid,jdbcType=VARCHAR},
       LOG_BSNCODE = #{bsncode,jdbcType=VARCHAR},
       LOG_RESULT = #{result,jdbcType=CHAR},
       LOG_CONTEXTID = #{contextid,jdbcType=VARCHAR},
       LOG_INFO = #{info,jdbcType=VARCHAR},
-      LOG_IP = #{ip,jdbcType=VARCHAR}
+      LOG_IP = #{ip,jdbcType=VARCHAR},
+      LOG_STATE = #{state,jdbcType=VARCHAR}
     where LOG_LOGNO = #{logno,jdbcType=CHAR}
   </update>
 </mapper>