Ver código fonte

修改客户系统日志表

wanghui 8 anos atrás
pai
commit
4fcbfc1f40

+ 1 - 2
generatorConfig.xml

@@ -8,7 +8,6 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="AFT" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="AFT" />
     <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="AFT" type="XMLMAPPER" />
-    <table schema="aft" tableName="customer_user_info"/>
-    <table schema="aft" tableName="customer_organization_info"/>
+    <table schema="aft" tableName="customer_log"/>
   </context>
 </generatorConfiguration>

+ 13 - 13
src/main/java/com/goafanti/common/dao/CustomerLogMapper.java

@@ -9,71 +9,71 @@ public interface CustomerLogMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	long countByExample(CustomerLogExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int deleteByExample(CustomerLogExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int deleteByPrimaryKey(String id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int insert(CustomerLog record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int insertSelective(CustomerLog record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	List<CustomerLog> selectByExample(CustomerLogExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	CustomerLog selectByPrimaryKey(String id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int updateByExampleSelective(@Param("record") CustomerLog record, @Param("example") CustomerLogExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int updateByExample(@Param("record") CustomerLog record, @Param("example") CustomerLogExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int updateByPrimaryKeySelective(CustomerLog record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	int updateByPrimaryKey(CustomerLog record);
-	
-	   /**
+
+	/**
      * 查看操作日志
      * @param customerId 客户编号
      * @return

+ 22 - 22
src/main/java/com/goafanti/common/mapper/CustomerLogMapper.xml

@@ -5,13 +5,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     <id column="id" jdbcType="VARCHAR" property="id" />
     <result column="cid" jdbcType="VARCHAR" property="cid" />
     <result column="operator_name" jdbcType="VARCHAR" property="operatorName" />
     <result column="operator_type" jdbcType="VARCHAR" property="operatorType" />
-    <result column="operator_time" jdbcType="TIMESTAMP" property="operatorTime" />
+    <result column="operator_time" jdbcType="VARCHAR" property="operatorTime" />
     <result column="before_customer_status" jdbcType="VARCHAR" property="beforeCustomerStatus" />
     <result column="after_customer_status" jdbcType="VARCHAR" property="afterCustomerStatus" />
     <result column="before_customer_intention" jdbcType="VARCHAR" property="beforeCustomerIntention" />
@@ -25,7 +25,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -59,7 +59,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -93,7 +93,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     id, cid, operator_name, operator_type, operator_time, before_customer_status, after_customer_status, 
     before_customer_intention, after_customer_intention, before_follow_situation, after_follow_situation, 
@@ -103,7 +103,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     select
     <if test="distinct">
@@ -122,7 +122,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -133,7 +133,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     delete from customer_log
     where id = #{id,jdbcType=VARCHAR}
@@ -142,7 +142,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     delete from customer_log
     <if test="_parameter != null">
@@ -153,7 +153,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     insert into customer_log (id, cid, operator_name, 
       operator_type, operator_time, before_customer_status, 
@@ -162,7 +162,7 @@
       after_follow_situation, before_admin_name, 
       after_admin_name)
     values (#{id,jdbcType=VARCHAR}, #{cid,jdbcType=VARCHAR}, #{operatorName,jdbcType=VARCHAR}, 
-      #{operatorType,jdbcType=VARCHAR}, #{operatorTime,jdbcType=TIMESTAMP}, #{beforeCustomerStatus,jdbcType=VARCHAR}, 
+      #{operatorType,jdbcType=VARCHAR}, #{operatorTime,jdbcType=VARCHAR}, #{beforeCustomerStatus,jdbcType=VARCHAR}, 
       #{afterCustomerStatus,jdbcType=VARCHAR}, #{beforeCustomerIntention,jdbcType=VARCHAR}, 
       #{afterCustomerIntention,jdbcType=VARCHAR}, #{beforeFollowSituation,jdbcType=VARCHAR}, 
       #{afterFollowSituation,jdbcType=VARCHAR}, #{beforeAdminName,jdbcType=VARCHAR}, 
@@ -172,7 +172,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     insert into customer_log
     <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -230,7 +230,7 @@
         #{operatorType,jdbcType=VARCHAR},
       </if>
       <if test="operatorTime != null">
-        #{operatorTime,jdbcType=TIMESTAMP},
+        #{operatorTime,jdbcType=VARCHAR},
       </if>
       <if test="beforeCustomerStatus != null">
         #{beforeCustomerStatus,jdbcType=VARCHAR},
@@ -262,7 +262,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     select count(*) from customer_log
     <if test="_parameter != null">
@@ -273,7 +273,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     update customer_log
     <set>
@@ -290,7 +290,7 @@
         operator_type = #{record.operatorType,jdbcType=VARCHAR},
       </if>
       <if test="record.operatorTime != null">
-        operator_time = #{record.operatorTime,jdbcType=TIMESTAMP},
+        operator_time = #{record.operatorTime,jdbcType=VARCHAR},
       </if>
       <if test="record.beforeCustomerStatus != null">
         before_customer_status = #{record.beforeCustomerStatus,jdbcType=VARCHAR},
@@ -325,14 +325,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     update customer_log
     set id = #{record.id,jdbcType=VARCHAR},
       cid = #{record.cid,jdbcType=VARCHAR},
       operator_name = #{record.operatorName,jdbcType=VARCHAR},
       operator_type = #{record.operatorType,jdbcType=VARCHAR},
-      operator_time = #{record.operatorTime,jdbcType=TIMESTAMP},
+      operator_time = #{record.operatorTime,jdbcType=VARCHAR},
       before_customer_status = #{record.beforeCustomerStatus,jdbcType=VARCHAR},
       after_customer_status = #{record.afterCustomerStatus,jdbcType=VARCHAR},
       before_customer_intention = #{record.beforeCustomerIntention,jdbcType=VARCHAR},
@@ -349,7 +349,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     update customer_log
     <set>
@@ -363,7 +363,7 @@
         operator_type = #{operatorType,jdbcType=VARCHAR},
       </if>
       <if test="operatorTime != null">
-        operator_time = #{operatorTime,jdbcType=TIMESTAMP},
+        operator_time = #{operatorTime,jdbcType=VARCHAR},
       </if>
       <if test="beforeCustomerStatus != null">
         before_customer_status = #{beforeCustomerStatus,jdbcType=VARCHAR},
@@ -396,13 +396,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 13 16:56:48 CST 2017.
+      This element was generated on Wed Oct 25 15:20:07 CST 2017.
     -->
     update customer_log
     set cid = #{cid,jdbcType=VARCHAR},
       operator_name = #{operatorName,jdbcType=VARCHAR},
       operator_type = #{operatorType,jdbcType=VARCHAR},
-      operator_time = #{operatorTime,jdbcType=TIMESTAMP},
+      operator_time = #{operatorTime,jdbcType=VARCHAR},
       before_customer_status = #{beforeCustomerStatus,jdbcType=VARCHAR},
       after_customer_status = #{afterCustomerStatus,jdbcType=VARCHAR},
       before_customer_intention = #{beforeCustomerIntention,jdbcType=VARCHAR},

+ 42 - 42
src/main/java/com/goafanti/common/model/CustomerLog.java

@@ -6,74 +6,74 @@ public class CustomerLog {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.id
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.cid
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String cid;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.operator_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String operatorName;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.operator_type
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String operatorType;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.operator_time
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
-	private Date operatorTime;
+	private String operatorTime;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.before_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String beforeCustomerStatus;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.after_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String afterCustomerStatus;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.before_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String beforeCustomerIntention;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.after_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String afterCustomerIntention;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.before_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String beforeFollowSituation;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.after_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String afterFollowSituation;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.before_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String beforeAdminName;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column customer_log.after_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	private String afterAdminName;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.id
 	 * @return  the value of customer_log.id
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getId() {
 		return id;
@@ -82,7 +82,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.id
 	 * @param id  the value for customer_log.id
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setId(String id) {
 		this.id = id;
@@ -91,7 +91,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.cid
 	 * @return  the value of customer_log.cid
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getCid() {
 		return cid;
@@ -100,7 +100,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.cid
 	 * @param cid  the value for customer_log.cid
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setCid(String cid) {
 		this.cid = cid;
@@ -109,7 +109,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.operator_name
 	 * @return  the value of customer_log.operator_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getOperatorName() {
 		return operatorName;
@@ -118,7 +118,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.operator_name
 	 * @param operatorName  the value for customer_log.operator_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setOperatorName(String operatorName) {
 		this.operatorName = operatorName;
@@ -127,7 +127,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.operator_type
 	 * @return  the value of customer_log.operator_type
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getOperatorType() {
 		return operatorType;
@@ -136,7 +136,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.operator_type
 	 * @param operatorType  the value for customer_log.operator_type
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setOperatorType(String operatorType) {
 		this.operatorType = operatorType;
@@ -145,25 +145,25 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.operator_time
 	 * @return  the value of customer_log.operator_time
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
-	public Date getOperatorTime() {
+	public String getOperatorTime() {
 		return operatorTime;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.operator_time
 	 * @param operatorTime  the value for customer_log.operator_time
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
-	public void setOperatorTime(Date operatorTime) {
+	public void setOperatorTime(String operatorTime) {
 		this.operatorTime = operatorTime;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.before_customer_status
 	 * @return  the value of customer_log.before_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getBeforeCustomerStatus() {
 		return beforeCustomerStatus;
@@ -172,7 +172,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.before_customer_status
 	 * @param beforeCustomerStatus  the value for customer_log.before_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setBeforeCustomerStatus(String beforeCustomerStatus) {
 		this.beforeCustomerStatus = beforeCustomerStatus;
@@ -181,7 +181,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.after_customer_status
 	 * @return  the value of customer_log.after_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getAfterCustomerStatus() {
 		return afterCustomerStatus;
@@ -190,7 +190,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.after_customer_status
 	 * @param afterCustomerStatus  the value for customer_log.after_customer_status
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setAfterCustomerStatus(String afterCustomerStatus) {
 		this.afterCustomerStatus = afterCustomerStatus;
@@ -199,7 +199,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.before_customer_intention
 	 * @return  the value of customer_log.before_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getBeforeCustomerIntention() {
 		return beforeCustomerIntention;
@@ -208,7 +208,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.before_customer_intention
 	 * @param beforeCustomerIntention  the value for customer_log.before_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setBeforeCustomerIntention(String beforeCustomerIntention) {
 		this.beforeCustomerIntention = beforeCustomerIntention;
@@ -217,7 +217,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.after_customer_intention
 	 * @return  the value of customer_log.after_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getAfterCustomerIntention() {
 		return afterCustomerIntention;
@@ -226,7 +226,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.after_customer_intention
 	 * @param afterCustomerIntention  the value for customer_log.after_customer_intention
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setAfterCustomerIntention(String afterCustomerIntention) {
 		this.afterCustomerIntention = afterCustomerIntention;
@@ -235,7 +235,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.before_follow_situation
 	 * @return  the value of customer_log.before_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getBeforeFollowSituation() {
 		return beforeFollowSituation;
@@ -244,7 +244,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.before_follow_situation
 	 * @param beforeFollowSituation  the value for customer_log.before_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setBeforeFollowSituation(String beforeFollowSituation) {
 		this.beforeFollowSituation = beforeFollowSituation;
@@ -253,7 +253,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.after_follow_situation
 	 * @return  the value of customer_log.after_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getAfterFollowSituation() {
 		return afterFollowSituation;
@@ -262,7 +262,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.after_follow_situation
 	 * @param afterFollowSituation  the value for customer_log.after_follow_situation
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setAfterFollowSituation(String afterFollowSituation) {
 		this.afterFollowSituation = afterFollowSituation;
@@ -271,7 +271,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.before_admin_name
 	 * @return  the value of customer_log.before_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getBeforeAdminName() {
 		return beforeAdminName;
@@ -280,7 +280,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.before_admin_name
 	 * @param beforeAdminName  the value for customer_log.before_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setBeforeAdminName(String beforeAdminName) {
 		this.beforeAdminName = beforeAdminName;
@@ -289,7 +289,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column customer_log.after_admin_name
 	 * @return  the value of customer_log.after_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getAfterAdminName() {
 		return afterAdminName;
@@ -298,7 +298,7 @@ public class CustomerLog {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column customer_log.after_admin_name
 	 * @param afterAdminName  the value for customer_log.after_admin_name
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setAfterAdminName(String afterAdminName) {
 		this.afterAdminName = afterAdminName;

+ 36 - 26
src/main/java/com/goafanti/common/model/CustomerLogExample.java

@@ -7,23 +7,23 @@ import java.util.Date;
 public class CustomerLogExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public CustomerLogExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -31,7 +31,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -39,7 +39,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -47,7 +47,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -55,7 +55,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -63,7 +63,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -71,7 +71,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -79,7 +79,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -89,7 +89,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -101,7 +101,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -110,7 +110,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -120,7 +120,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -453,52 +453,62 @@ public class CustomerLogExample {
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeEqualTo(Date value) {
+		public Criteria andOperatorTimeEqualTo(String value) {
 			addCriterion("operator_time =", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeNotEqualTo(Date value) {
+		public Criteria andOperatorTimeNotEqualTo(String value) {
 			addCriterion("operator_time <>", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeGreaterThan(Date value) {
+		public Criteria andOperatorTimeGreaterThan(String value) {
 			addCriterion("operator_time >", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeGreaterThanOrEqualTo(Date value) {
+		public Criteria andOperatorTimeGreaterThanOrEqualTo(String value) {
 			addCriterion("operator_time >=", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeLessThan(Date value) {
+		public Criteria andOperatorTimeLessThan(String value) {
 			addCriterion("operator_time <", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeLessThanOrEqualTo(Date value) {
+		public Criteria andOperatorTimeLessThanOrEqualTo(String value) {
 			addCriterion("operator_time <=", value, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeIn(List<Date> values) {
+		public Criteria andOperatorTimeLike(String value) {
+			addCriterion("operator_time like", value, "operatorTime");
+			return (Criteria) this;
+		}
+
+		public Criteria andOperatorTimeNotLike(String value) {
+			addCriterion("operator_time not like", value, "operatorTime");
+			return (Criteria) this;
+		}
+
+		public Criteria andOperatorTimeIn(List<String> values) {
 			addCriterion("operator_time in", values, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeNotIn(List<Date> values) {
+		public Criteria andOperatorTimeNotIn(List<String> values) {
 			addCriterion("operator_time not in", values, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeBetween(Date value1, Date value2) {
+		public Criteria andOperatorTimeBetween(String value1, String value2) {
 			addCriterion("operator_time between", value1, value2, "operatorTime");
 			return (Criteria) this;
 		}
 
-		public Criteria andOperatorTimeNotBetween(Date value1, Date value2) {
+		public Criteria andOperatorTimeNotBetween(String value1, String value2) {
 			addCriterion("operator_time not between", value1, value2, "operatorTime");
 			return (Criteria) this;
 		}
@@ -1066,7 +1076,7 @@ public class CustomerLogExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table customer_log
-	 * @mbg.generated  Fri Oct 13 16:56:48 CST 2017
+	 * @mbg.generated  Wed Oct 25 15:20:07 CST 2017
 	 */
 	public static class Criterion {
 		private String condition;

+ 2 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -1,6 +1,7 @@
 package com.goafanti.customer.service.impl;
 
 import java.lang.reflect.InvocationTargetException;
+import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -229,7 +230,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
 		CustomerLog log = new CustomerLog();
 		log.setId(UUID.randomUUID().toString());
 		log.setCid(cid);
-		log.setOperatorTime(new Date());
+		log.setOperatorTime(new SimpleDateFormat(AFTConstants.YYYYMMDDHHMMSS).format(new Date()));
 		log.setOperatorName(TokenManager.getAdminToken().getName());
 		Customer c =  customerMapper.selectByPrimaryKey(cid) ;
 		if(operatorType.equals(AFTConstants.CUSTOMER_CREATE)){//创建用户