zou_ht 8 years ago
parent
commit
f1bac532bf

+ 4 - 4
generatorConfig.xml

@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 <generatorConfiguration>
-  <classPathEntry location="E:/mysql-connector-java-5.1.40.jar" />
+  <classPathEntry location="E:/mysql-connector-java-5.1.44.jar" />
   <context id="context1">	
-    <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/aft" 
-    	driverClass="com.mysql.jdbc.Driver" password="123456" userId="root" />
+    <jdbcConnection connectionURL="jdbc:mysql://192.168.1.213:3306/aft" 
+    	driverClass="com.mysql.jdbc.Driver" password="123456" userId="dev" />
     <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="marketing_management"/>
+    <table schema="aft" tableName="customer"/>
   </context>
 </generatorConfiguration>

+ 25 - 82
src/main/java/com/goafanti/admin/controller/AdminCustomerApiController.java

@@ -1,19 +1,21 @@
 package com.goafanti.admin.controller;
 
 import java.text.ParseException;
-import java.text.SimpleDateFormat;
 import java.util.UUID;
 
 import javax.annotation.Resource;
-import javax.servlet.http.HttpServletRequest;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
+import com.goafanti.admin.service.CustomerOrganizationService;
 import com.goafanti.admin.service.CustomerService;
+import com.goafanti.admin.service.CustomerUserService;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.controller.CertifyApiController;
 import com.goafanti.common.model.Customer;
+import com.goafanti.common.model.CustomerOrganizationInfo;
+import com.goafanti.common.model.CustomerUserInfo;
 import com.goafanti.core.shiro.token.TokenManager;
 
 @RestController
@@ -22,6 +24,10 @@ public class AdminCustomerApiController extends CertifyApiController {
 
 	@Resource
 	private CustomerService customerService;
+	@Resource
+	private CustomerUserService customerUserService;
+	@Resource
+	private CustomerOrganizationService customerOrganizationService;
 
 	/**
 	 * 新增客户
@@ -30,89 +36,26 @@ public class AdminCustomerApiController extends CertifyApiController {
 	 * @throws ParseException
 	 */
 	@RequestMapping(value = "/addCustomer", method = RequestMethod.POST)
-	public Result addCustomer(String createTime, String companyName, String companyIndustry, String companyIntention,
-			String adress, String customerName, String mobile, String email, String qq, String wechat,
-			String customerPosition, String remark, String province, String fllowSituation, int sex,
-			String customerStatue, String department, Integer customerTyp, String telNum) throws ParseException {
-		Customer cus = new Customer();
-		Result res = new Result();
-		cus.setAdress(adress);
-		cus.setCompanyIndustry(companyIndustry);
-		cus.setCompanyIntention(companyIntention);
-		cus.setCompanyName(companyName);
-		if (null != createTime && createTime != "") {
-			cus.setCreateTime((new SimpleDateFormat("yyyy-MM-dd").parse(createTime)));
-		}
-		cus.setCustomerName(customerName);
-		cus.setCustomerPosition(customerPosition);
-		cus.setCustomerStatue(customerStatue);
-		cus.setCustomerTyp(customerTyp);
-		cus.setDepartment(department);
-		cus.setEmail(email);
-		cus.setFllowSituation(fllowSituation);
-		cus.setId(UUID.randomUUID().toString());
-		cus.setMobile(mobile);
+	public Result addCustomer(Customer cus,CustomerOrganizationInfo coi,CustomerUserInfo cui) throws ParseException {
+		Result res=new Result();
+		/*生成cutomerid*/
+		String cid = UUID.randomUUID().toString();
+		cus.setId(cid);
+		/*获取admin的id*/
 		cus.setAid(TokenManager.getUserId());
-		cus.setProvince(province);
-		cus.setQq(qq);
-		cus.setRemark(remark);
-		cus.setSex(sex);
-		cus.setTelNum(telNum);
-		cus.setWechat(wechat);
-		customerService.addCustomer(cus);
-		return res;
-	}
-
-	/**
-	 * 删除客户信息
-	 * 
-	 * @return
-	 */
-	@RequestMapping(value = "/deleteCustomer", method = RequestMethod.GET)
-	public int deleteCustomer(HttpServletRequest req, String id) {
-		int res = customerService.deleteCustomer(id);
+		/*插入客户信息*/
+		int result = customerService.addCustomer(cus);
+		if(result>0) {
+			/*插入客户个人信息*/
+			cui.setCid(cid);
+			customerUserService.addCustomerUser(cui);
+			/*插入客户公司信息*/
+			coi.setCid(cid);
+			customerOrganizationService.addCustomerOrganization(coi);
+		}
 		return res;
+		
 	}
 
-	/**
-	 * 查询客户列表
-	 * 
-	 * @return
-	 */
-	@RequestMapping(value = "/searchCustomerList", method = RequestMethod.GET)
-	public Result SearchCustomerList(String companyName, Integer customerTyp, String province,
-			String customerName, String telNum, String customerStatue, String CompanyIntention, String fllowSituation,Integer pageNo,Integer pageSize) {
-		Result res =new Result();
-		res.setData(customerService.findCustomerByPage(companyName, customerTyp, province, customerName, telNum, customerStatue,
-				CompanyIntention, fllowSituation,pageNo,pageSize));
-		return res;
-	}
-	
-	/**
-	 * 查询客户信息
-	 * 
-	 * @return
-	 */
-	@RequestMapping(value = "/findCustomer", method = RequestMethod.GET)
-	public Result SearchCustomerInfo(String id) {
-		Result res =new Result();
-		res.setData(customerService.searchCustomer(id));
-		return res;
-	}
-	
-	/**
-	 * 修改客户信息
-	 * 
-	 * @return
-	 */
-	@RequestMapping(value = "/updCustomerList", method = RequestMethod.GET)
-	public Result updCustomerInfo(String id,String aid,String createTime, String companyName, String companyIndustry, String companyIntention,
-			String adress, String customerName, String mobile, String email, String qq, String wechat,
-			String customerPosition, String remark, String province, String fllowSituation, int sex,
-			String customerStatue, String department, Integer customerTyp, String telNum) {
-		Result res =new Result();
-		customerService.updCustomer(id, aid, createTime, companyName, companyIndustry, companyIntention, adress, customerName, mobile, email, qq, wechat, customerPosition, remark, province, fllowSituation, sex, customerStatue, department, customerTyp, telNum);
-		return res;
-	}
 
 }

+ 0 - 12
src/main/java/com/goafanti/admin/service/CustomerService.java

@@ -2,21 +2,9 @@ package com.goafanti.admin.service;
 
 
 import com.goafanti.common.model.Customer;
-import com.goafanti.core.mybatis.page.Pagination;
 
 public interface CustomerService {
 
 	int addCustomer(Customer cus);
 	
-	int deleteCustomer(String id);
-	
-	Pagination<Customer> findCustomerByPage(String companyName ,Integer customerTyp ,String province ,String customerName ,String telNum ,
-			String customerStatue  ,String CompanyIntention  ,String fllowSituation,Integer pageNo, Integer pageSize);
-	
-	int updCustomer(String id,String aid,String createTime, String companyName, String companyIndustry, String companyIntention,
-			String adress, String customerName, String mobile, String email, String qq, String wechat,
-			String customerPosition, String remark, String province, String fllowSituation, int sex,
-			String customerStatue, String department, Integer customerTyp, String telNum);
-	
-	Customer searchCustomer(String id);
 }

+ 0 - 74
src/main/java/com/goafanti/admin/service/impl/CustomerServiceImpl.java

@@ -1,17 +1,12 @@
 package com.goafanti.admin.service.impl;
 
-import java.util.HashMap;
-import java.util.Map;
 
-import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.goafanti.core.mybatis.BaseMybatisDao;
 import com.goafanti.admin.service.CustomerService;
 import com.goafanti.common.dao.CustomerMapper;
 import com.goafanti.common.model.Customer;
-import com.goafanti.core.mybatis.page.Pagination;
-import com.goafanti.core.shiro.token.TokenManager;
 @Service
 public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implements CustomerService {
 	@Autowired
@@ -22,73 +17,4 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
 		return res;
 	}
 	
-	
-	@Override
-	public int deleteCustomer(String id) {
-		int res = customerMapper.deleteByPrimaryKey(id);
-		return res;
-	}
-	
-	
-	@SuppressWarnings("unchecked")
-	@Override
-	public Pagination<Customer> findCustomerByPage(String companyName ,Integer customerTyp ,String province ,String customerName ,String telNum ,
-			String customerStatue  ,String CompanyIntention  ,String fllowSituation ,Integer pageNo, Integer pageSize) {
-		return (Pagination<Customer>) findPage("findSearchCustomerListByPage", "findSearchCustomerCount",
-				buildListParams(companyName, customerTyp, province, customerName, telNum, customerStatue, CompanyIntention, 
-						fllowSituation, TokenManager.getUserId()),
-				pageNo, pageSize);
-	}
-	
-	
-	private Map<String, Object> buildListParams(String companyName, Integer customerTyp,String province,String customerName,String telNum,
-			String customerStatue,String CompanyIntention,String fllowSituation,String aid) {
-		Map<String, Object> params = new HashMap<>();
-
-		if (null != companyName) {
-			params.put("companyName", companyName);
-		}
-		if (null!=customerTyp) {
-			params.put("customerTyp", customerTyp);
-		}
-		if (StringUtils.isNotBlank(province)) {
-			params.put("province", province);
-		}
-		if (StringUtils.isNotBlank(customerName)) {
-			params.put("customerName", customerName);
-		}
-		if (null!=customerStatue ) {
-			params.put("customerStatue", customerStatue);
-		}
-		if (StringUtils.isNotBlank(CompanyIntention)) {
-			params.put("CompanyIntention", CompanyIntention);
-		}
-		if (StringUtils.isNotBlank(fllowSituation)) {
-			params.put("fllowSituation", fllowSituation);
-		}
-		if (StringUtils.isNotBlank(aid)) {
-			params.put("aid", aid);
-		}
-		
-		return params;
-	}
-
-
-	@Override
-	public int updCustomer(String id,String aid,String createTime, String companyName, String companyIndustry, String companyIntention,
-			String adress, String customerName, String mobile, String email, String qq, String wechat,
-			String customerPosition, String remark, String province, String fllowSituation, int sex,
-			String customerStatue, String department, Integer customerTyp, String telNum) {
-		
-		int res = customerMapper.updateByPrimaryKey(id,aid,createTime, companyName, companyIndustry, companyIntention, adress, customerName, mobile, 
-				email, qq, wechat, customerPosition,remark, province, fllowSituation, sex,customerStatue, department, customerTyp, telNum);
-		return res;
-	}
-
-
-	@Override
-	public Customer searchCustomer(String id) {
-		return customerMapper.selectByPrimaryKey(id);
-	}
-	
 }

+ 1 - 32
src/main/java/com/goafanti/common/dao/CustomerMapper.java

@@ -1,44 +1,13 @@
 package com.goafanti.common.dao;
 
-import java.util.List;
 
 import com.goafanti.common.model.Customer;
 
 public interface CustomerMapper {
 
 	/**
-	 * 删除客户信息
-	 * @mbg.generated  Tue Oct 10 10:30:05 CST 2017
-	 */
-	int deleteByPrimaryKey(String id);
-
-	/**
-	 * 添加客户
-	 * @mbg.generated  Tue Oct 10 10:30:05 CST 2017
+	 * 新增
 	 */
 	int insertCustomer(Customer cus);
-	
-	/**
-	 * 分页查询客户信息
-	 * @mbg.generated  Tue Oct 10 10:30:05 CST 2017
-	 */
-	List<Customer> findSearchCustomerListByPage(String companyName ,Integer customerTyp ,String province ,String customerName ,String telNum ,
-			String customerStatue  ,String CompanyIntention  ,String fllowSituation  ,String aid);
-
 
-	/**
-	 * 查询单个客户信息
-	 * @mbg.generated  Tue Oct 10 10:30:05 CST 2017
-	 */
-	Customer selectByPrimaryKey(String id);
-
-	/**
-	 * 修改客户信息
-	 * @mbg.generated  Tue Oct 10 10:30:05 CST 2017
-	 */
-	
-	int updateByPrimaryKey(String id,String aid,String createTime, String companyName, String companyIndustry, String companyIntention,
-			String adress, String customerName, String mobile, String email, String qq, String wechat,
-			String customerPosition, String remark, String province, String fllowSituation, int sex,
-			String customerStatue, String department, Integer customerTyp, String telNum);
 }

+ 1 - 69
src/main/java/com/goafanti/common/dao/CustomerOrganizationInfoMapper.java

@@ -1,77 +1,9 @@
 package com.goafanti.common.dao;
 
 import com.goafanti.common.model.CustomerOrganizationInfo;
-import com.goafanti.common.model.CustomerOrganizationInfoExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
 
 public interface CustomerOrganizationInfoMapper {
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	long countByExample(CustomerOrganizationInfoExample example);
+	int insertCustomerOrganization(CustomerOrganizationInfo cui);
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int deleteByExample(CustomerOrganizationInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int deleteByPrimaryKey(String id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int insert(CustomerOrganizationInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int insertSelective(CustomerOrganizationInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	List<CustomerOrganizationInfo> selectByExample(CustomerOrganizationInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	CustomerOrganizationInfo selectByPrimaryKey(String id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int updateByExampleSelective(@Param("record") CustomerOrganizationInfo record,
-			@Param("example") CustomerOrganizationInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int updateByExample(@Param("record") CustomerOrganizationInfo record,
-			@Param("example") CustomerOrganizationInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int updateByPrimaryKeySelective(CustomerOrganizationInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Mon Oct 09 17:41:04 CST 2017
-	 */
-	int updateByPrimaryKey(CustomerOrganizationInfo record);
 }

+ 1 - 68
src/main/java/com/goafanti/common/dao/CustomerUserInfoMapper.java

@@ -1,76 +1,9 @@
 package com.goafanti.common.dao;
 
 import com.goafanti.common.model.CustomerUserInfo;
-import com.goafanti.common.model.CustomerUserInfoExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
 
 public interface CustomerUserInfoMapper {
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	long countByExample(CustomerUserInfoExample example);
+	int insertCustomerUser(CustomerUserInfo record);
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int deleteByExample(CustomerUserInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int deleteByPrimaryKey(String id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int insert(CustomerUserInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int insertSelective(CustomerUserInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	List<CustomerUserInfo> selectByExample(CustomerUserInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	CustomerUserInfo selectByPrimaryKey(String id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int updateByExampleSelective(@Param("record") CustomerUserInfo record,
-			@Param("example") CustomerUserInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int updateByExample(@Param("record") CustomerUserInfo record, @Param("example") CustomerUserInfoExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int updateByPrimaryKeySelective(CustomerUserInfo record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Mon Oct 09 17:40:56 CST 2017
-	 */
-	int updateByPrimaryKey(CustomerUserInfo record);
 }

+ 209 - 248
src/main/java/com/goafanti/common/mapper/CustomerMapper.xml

@@ -2,29 +2,27 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.goafanti.common.dao.CustomerMapper">
   <resultMap id="BaseResultMap" type="com.goafanti.common.model.Customer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     <id column="id" jdbcType="VARCHAR" property="id" />
     <result column="aid" jdbcType="VARCHAR" property="aid" />
-    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
-    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="company_industry" jdbcType="VARCHAR" property="companyIndustry" />
+    <result column="customer_typ" jdbcType="VARCHAR" property="customerTyp" />
+    <result column="share_typ" jdbcType="TIMESTAMP" property="shareTyp" />
+    <result column="agent_id" jdbcType="VARCHAR" property="agentId" />
     <result column="company_intention" jdbcType="VARCHAR" property="companyIntention" />
-    <result column="adress" jdbcType="VARCHAR" property="adress" />
-    <result column="customer_name" jdbcType="VARCHAR" property="customerName" />
-    <result column="customer_position" jdbcType="VARCHAR" property="customerPosition" />
-    <result column="mobile" jdbcType="VARCHAR" property="mobile" />
-    <result column="email" jdbcType="VARCHAR" property="email" />
-    <result column="department" jdbcType="VARCHAR" property="department" />
-    <result column="qq" jdbcType="VARCHAR" property="qq" />
-    <result column="wechat" jdbcType="VARCHAR" property="wechat" />
-    <result column="remark" jdbcType="VARCHAR" property="remark" />
-    <result column="province" jdbcType="VARCHAR" property="province" />
-    <result column="fllow_situation" jdbcType="VARCHAR" property="fllowSituation" />
-    <result column="sex" jdbcType="INTEGER" property="sex" />
+    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
+    <result column="follow_situation" jdbcType="VARCHAR" property="followSituation" />
     <result column="customer_statue" jdbcType="VARCHAR" property="customerStatue" />
-    <result column="customer_typ" jdbcType="INTEGER" property="customerTyp" />
-    <result column="tel_num" jdbcType="VARCHAR" property="telNum" />
   </resultMap>
   <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
         <if test="criteria.valid">
@@ -54,6 +52,11 @@
     </where>
   </sql>
   <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
         <if test="criteria.valid">
@@ -83,44 +86,85 @@
     </where>
   </sql>
   <sql id="Base_Column_List">
-    id, aid, company_name, create_time, company_industry, company_intention, adress, 
-    customer_name, customer_position, mobile, email, department, qq, wechat, remark, 
-    province, fllow_situation, sex, customer_statue
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    id, aid, customer_typ, share_typ, agent_id, company_intention, create_time, follow_situation, 
+    customer_statue
   </sql>
-  
-  <!-- 查询单个客户信息 -->
+  <select id="selectByExample" parameterType="com.goafanti.common.model.CustomerExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from customer
+    <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 - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     select 
     <include refid="Base_Column_List" />
     from customer
     where id = #{id,jdbcType=VARCHAR}
   </select>
-  
-   <!-- 删除用户 -->
-  <update id="deleteByPrimaryKey" parameterType="java.lang.String">
-    update  customer set delete_flg= 1
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    delete from customer
     where id = #{id,jdbcType=VARCHAR}
-  </update>
-  
-   <!-- 新增客户 -->
-  <insert id="insertCustomer" parameterType="com.goafanti.common.model.Customer">
-    insert into customer (id, aid, company_name, 
-      create_time, company_industry, company_intention, 
-      adress, customer_name, customer_position, 
-      mobile, email, department, 
-      qq, wechat, remark, 
-      province, fllow_situation, sex, 
-      customer_statue,customer_typ,tel_num,typ,delete_flg)
-    values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
-      #{createTime,jdbcType=TIMESTAMP}, #{companyIndustry,jdbcType=VARCHAR}, #{companyIntention,jdbcType=VARCHAR}, 
-      #{adress,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, #{customerPosition,jdbcType=VARCHAR}, 
-      #{mobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}, 
-      #{qq,jdbcType=VARCHAR}, #{wechat,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, 
-      #{province,jdbcType=VARCHAR}, #{fllowSituation,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER}, 
-      #{customerStatue,jdbcType=VARCHAR}, #{customerTyp,jdbcType=INTEGER}, #{telNum,jdbcType=VARCHAR},0,0)
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.CustomerExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    delete from customer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.Customer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    insert into customer (id, aid, customer_typ, 
+      share_typ, agent_id, company_intention, 
+      create_time, follow_situation, customer_statue
+      )
+    values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{customerTyp,jdbcType=VARCHAR}, 
+      #{shareTyp,jdbcType=TIMESTAMP}, #{agentId,jdbcType=VARCHAR}, #{companyIntention,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=VARCHAR}, #{followSituation,jdbcType=VARCHAR}, #{customerStatue,jdbcType=VARCHAR}
+      )
   </insert>
-  
-  <insert id="insertSelective" parameterType="com.goafanti.common.model.Customer">
+  <insert id="insertCustomer" parameterType="com.goafanti.common.model.Customer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     insert into customer
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -129,53 +173,23 @@
       <if test="aid != null">
         aid,
       </if>
-      <if test="companyName != null">
-        company_name,
+      <if test="customerTyp != null">
+        customer_typ,
       </if>
-      <if test="createTime != null">
-        create_time,
+      <if test="shareTyp != null">
+        share_typ,
       </if>
-      <if test="companyIndustry != null">
-        company_industry,
+      <if test="agentId != null">
+        agent_id,
       </if>
       <if test="companyIntention != null">
         company_intention,
       </if>
-      <if test="adress != null">
-        adress,
-      </if>
-      <if test="customerName != null">
-        customer_name,
-      </if>
-      <if test="customerPosition != null">
-        customer_position,
-      </if>
-      <if test="mobile != null">
-        mobile,
-      </if>
-      <if test="email != null">
-        email,
-      </if>
-      <if test="department != null">
-        department,
-      </if>
-      <if test="qq != null">
-        qq,
-      </if>
-      <if test="wechat != null">
-        wechat,
-      </if>
-      <if test="remark != null">
-        remark,
-      </if>
-      <if test="province != null">
-        province,
-      </if>
-      <if test="fllowSituation != null">
-        fllow_situation,
+      <if test="createTime != null">
+        create_time,
       </if>
-      <if test="sex != null">
-        sex,
+      <if test="followSituation != null">
+        follow_situation,
       </if>
       <if test="customerStatue != null">
         customer_statue,
@@ -188,115 +202,128 @@
       <if test="aid != null">
         #{aid,jdbcType=VARCHAR},
       </if>
-      <if test="companyName != null">
-        #{companyName,jdbcType=VARCHAR},
+      <if test="customerTyp != null">
+        #{customerTyp,jdbcType=VARCHAR},
       </if>
-      <if test="createTime != null">
-        #{createTime,jdbcType=TIMESTAMP},
+      <if test="shareTyp != null">
+        #{shareTyp,jdbcType=TIMESTAMP},
       </if>
-      <if test="companyIndustry != null">
-        #{companyIndustry,jdbcType=VARCHAR},
+      <if test="agentId != null">
+        #{agentId,jdbcType=VARCHAR},
       </if>
       <if test="companyIntention != null">
         #{companyIntention,jdbcType=VARCHAR},
       </if>
-      <if test="adress != null">
-        #{adress,jdbcType=VARCHAR},
-      </if>
-      <if test="customerName != null">
-        #{customerName,jdbcType=VARCHAR},
-      </if>
-      <if test="customerPosition != null">
-        #{customerPosition,jdbcType=VARCHAR},
-      </if>
-      <if test="mobile != null">
-        #{mobile,jdbcType=VARCHAR},
-      </if>
-      <if test="email != null">
-        #{email,jdbcType=VARCHAR},
-      </if>
-      <if test="department != null">
-        #{department,jdbcType=VARCHAR},
-      </if>
-      <if test="qq != null">
-        #{qq,jdbcType=VARCHAR},
-      </if>
-      <if test="wechat != null">
-        #{wechat,jdbcType=VARCHAR},
-      </if>
-      <if test="remark != null">
-        #{remark,jdbcType=VARCHAR},
-      </if>
-      <if test="province != null">
-        #{province,jdbcType=VARCHAR},
-      </if>
-      <if test="fllowSituation != null">
-        #{fllowSituation,jdbcType=VARCHAR},
+      <if test="createTime != null">
+        #{createTime,jdbcType=VARCHAR},
       </if>
-      <if test="sex != null">
-        #{sex,jdbcType=INTEGER},
+      <if test="followSituation != null">
+        #{followSituation,jdbcType=VARCHAR},
       </if>
       <if test="customerStatue != null">
         #{customerStatue,jdbcType=VARCHAR},
       </if>
     </trim>
   </insert>
-  
-  
-  <!-- 修改客户信息 -->
-  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Customer">
+  <select id="countByExample" parameterType="com.goafanti.common.model.CustomerExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    select count(*) from customer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
     update customer
     <set>
-      <if test="aid != null">
-        aid = #{aid,jdbcType=VARCHAR},
-      </if>
-      <if test="companyName != null">
-        company_name = #{companyName,jdbcType=VARCHAR},
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
       </if>
-      <if test="createTime != null">
-        create_time = #{createTime,jdbcType=TIMESTAMP},
+      <if test="record.aid != null">
+        aid = #{record.aid,jdbcType=VARCHAR},
       </if>
-      <if test="companyIndustry != null">
-        company_industry = #{companyIndustry,jdbcType=VARCHAR},
+      <if test="record.customerTyp != null">
+        customer_typ = #{record.customerTyp,jdbcType=VARCHAR},
       </if>
-      <if test="companyIntention != null">
-        company_intention = #{companyIntention,jdbcType=VARCHAR},
+      <if test="record.shareTyp != null">
+        share_typ = #{record.shareTyp,jdbcType=TIMESTAMP},
       </if>
-      <if test="adress != null">
-        adress = #{adress,jdbcType=VARCHAR},
+      <if test="record.agentId != null">
+        agent_id = #{record.agentId,jdbcType=VARCHAR},
       </if>
-      <if test="customerName != null">
-        customer_name = #{customerName,jdbcType=VARCHAR},
+      <if test="record.companyIntention != null">
+        company_intention = #{record.companyIntention,jdbcType=VARCHAR},
       </if>
-      <if test="customerPosition != null">
-        customer_position = #{customerPosition,jdbcType=VARCHAR},
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=VARCHAR},
       </if>
-      <if test="mobile != null">
-        mobile = #{mobile,jdbcType=VARCHAR},
+      <if test="record.followSituation != null">
+        follow_situation = #{record.followSituation,jdbcType=VARCHAR},
       </if>
-      <if test="email != null">
-        email = #{email,jdbcType=VARCHAR},
+      <if test="record.customerStatue != null">
+        customer_statue = #{record.customerStatue,jdbcType=VARCHAR},
       </if>
-      <if test="department != null">
-        department = #{department,jdbcType=VARCHAR},
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    update customer
+    set id = #{record.id,jdbcType=VARCHAR},
+      aid = #{record.aid,jdbcType=VARCHAR},
+      customer_typ = #{record.customerTyp,jdbcType=VARCHAR},
+      share_typ = #{record.shareTyp,jdbcType=TIMESTAMP},
+      agent_id = #{record.agentId,jdbcType=VARCHAR},
+      company_intention = #{record.companyIntention,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=VARCHAR},
+      follow_situation = #{record.followSituation,jdbcType=VARCHAR},
+      customer_statue = #{record.customerStatue,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Customer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    update customer
+    <set>
+      <if test="aid != null">
+        aid = #{aid,jdbcType=VARCHAR},
       </if>
-      <if test="qq != null">
-        qq = #{qq,jdbcType=VARCHAR},
+      <if test="customerTyp != null">
+        customer_typ = #{customerTyp,jdbcType=VARCHAR},
       </if>
-      <if test="wechat != null">
-        wechat = #{wechat,jdbcType=VARCHAR},
+      <if test="shareTyp != null">
+        share_typ = #{shareTyp,jdbcType=TIMESTAMP},
       </if>
-      <if test="remark != null">
-        remark = #{remark,jdbcType=VARCHAR},
+      <if test="agentId != null">
+        agent_id = #{agentId,jdbcType=VARCHAR},
       </if>
-      <if test="province != null">
-        province = #{province,jdbcType=VARCHAR},
+      <if test="companyIntention != null">
+        company_intention = #{companyIntention,jdbcType=VARCHAR},
       </if>
-      <if test="fllowSituation != null">
-        fllow_situation = #{fllowSituation,jdbcType=VARCHAR},
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=VARCHAR},
       </if>
-      <if test="sex != null">
-        sex = #{sex,jdbcType=INTEGER},
+      <if test="followSituation != null">
+        follow_situation = #{followSituation,jdbcType=VARCHAR},
       </if>
       <if test="customerStatue != null">
         customer_statue = #{customerStatue,jdbcType=VARCHAR},
@@ -304,87 +331,21 @@
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
-  
-  
-  <!-- 分页查询客户 -->
-  <select id="findSearchCustomerListByPage"  resultType="com.goafanti.common.model.Customer">
-  	select 
-  		a.id,
-  	    a.company_name as companyName ,
-  		a.customer_typ as customerTyp ,
-  		a.province ,
-  		a.tel_num as telNum ,  
-  		a.customer_name as customerName ,
-  		a.customer_statue as customerStatue,
-  		a.Company_intention as CompanyIntention ,
-  		a.fllow_situation as fllowSituation 
-  	from aft.customer a 
-  	 where a.delete_flg = 0 
-  	 and a.aid=#{aid,jdbcType=VARCHAR}
-     <if test="companyName != null">
-      a.company_name = #{companyName,jdbcType=VARCHAR},
-    </if>
-    <if test="telNum != null">
-      a.tel_num = #{telNum,jdbcType=VARCHAR},
-    </if>
-    <if test="customerTyp != null">
-      a.typ = #{customerTyp,jdbcType=INTEGER},
-    </if>
-    <if test="companyIntention != null">
-      a.company_intention = #{companyIntention,jdbcType=VARCHAR},
-    </if>
-    <if test="customerName != null">
-      a.customer_name = #{customerName,jdbcType=VARCHAR},
-    </if>
-    <if test="province != null">
-      a.province = #{province,jdbcType=VARCHAR},
-    </if>
-    <if test="fllowSituation != null">
-      a.fllow_situation = #{fllowSituation,jdbcType=VARCHAR},
-    </if>
-    <if test="customerStatue != null">
-      a.customer_statue = #{customerStatue,jdbcType=VARCHAR},
-    </if>
-  	<if test="page_sql != null">
-		${page_sql}
-	</if>
-	
-  </select>
-  
-  <!-- 分页查询客户 -->
-  <select id="findSearchCustomerCount" parameterType="String" resultType="java.lang.Integer">
-  	select 
-  		count(1)
-  	from customer a
-  	where a.delete_flg = 0 
-  	and a.aid=#{aid,jdbcType=VARCHAR}
-     <if test="companyName != null">
-      a.company_name = #{companyName,jdbcType=VARCHAR},
-    </if>
-    <if test="telNum != null">
-      a.tel_num = #{telNum,jdbcType=VARCHAR},
-    </if>
-    <if test="customerTyp != null">
-      a.typ = #{customerTyp,jdbcType=INTEGER},
-    </if>
-    <if test="companyIntention != null">
-      a.company_intention = #{companyIntention,jdbcType=VARCHAR},
-    </if>
-    <if test="customerName != null">
-      a.customer_name = #{customerName,jdbcType=VARCHAR},
-    </if>
-    <if test="province != null">
-      a.province = #{province,jdbcType=VARCHAR},
-    </if>
-    <if test="fllowSituation != null">
-      a.fllow_situation = #{fllowSituation,jdbcType=VARCHAR},
-    </if>
-    <if test="customerStatue != null">
-      a.customer_statue = #{customerStatue,jdbcType=VARCHAR},
-    </if>
-  	<if test="page_sql != null">
-		${page_sql}
-	</if>
-	
-  </select>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Customer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Oct 11 11:00:02 CST 2017.
+    -->
+    update customer
+    set aid = #{aid,jdbcType=VARCHAR},
+      customer_typ = #{customerTyp,jdbcType=VARCHAR},
+      share_typ = #{shareTyp,jdbcType=TIMESTAMP},
+      agent_id = #{agentId,jdbcType=VARCHAR},
+      company_intention = #{companyIntention,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=VARCHAR},
+      follow_situation = #{followSituation,jdbcType=VARCHAR},
+      customer_statue = #{customerStatue,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
 </mapper>

+ 2 - 252
src/main/java/com/goafanti/common/mapper/CustomerOrganizationInfoMapper.xml

@@ -15,151 +15,8 @@
     <result column="location_area" jdbcType="VARCHAR" property="locationArea" />
     <result column="adress" jdbcType="VARCHAR" property="adress" />
   </resultMap>
-  <sql id="Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    id, cid, company_name, location_province, location_city, location_area, adress
-  </sql>
-  <select id="selectByExample" parameterType="com.goafanti.common.model.CustomerOrganizationInfoExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from customer_organization_info
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from customer_organization_info
-    where id = #{id,jdbcType=VARCHAR}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    delete from customer_organization_info
-    where id = #{id,jdbcType=VARCHAR}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.goafanti.common.model.CustomerOrganizationInfoExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    delete from customer_organization_info
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    insert into customer_organization_info (id, cid, company_name, 
-      location_province, location_city, location_area, 
-      adress)
-    values (#{id,jdbcType=VARCHAR}, #{cid,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
-      #{locationProvince,jdbcType=CHAR}, #{locationCity,jdbcType=VARCHAR}, #{locationArea,jdbcType=VARCHAR}, 
-      #{adress,jdbcType=VARCHAR})
-  </insert>
-  <insert id="insertSelective" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
+  
+  <insert id="insertCustomerOrganization" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
     insert into customer_organization_info
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -208,111 +65,4 @@
       </if>
     </trim>
   </insert>
-  <select id="countByExample" parameterType="com.goafanti.common.model.CustomerOrganizationInfoExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    select count(*) from customer_organization_info
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    update customer_organization_info
-    <set>
-      <if test="record.id != null">
-        id = #{record.id,jdbcType=VARCHAR},
-      </if>
-      <if test="record.cid != null">
-        cid = #{record.cid,jdbcType=VARCHAR},
-      </if>
-      <if test="record.companyName != null">
-        company_name = #{record.companyName,jdbcType=VARCHAR},
-      </if>
-      <if test="record.locationProvince != null">
-        location_province = #{record.locationProvince,jdbcType=CHAR},
-      </if>
-      <if test="record.locationCity != null">
-        location_city = #{record.locationCity,jdbcType=VARCHAR},
-      </if>
-      <if test="record.locationArea != null">
-        location_area = #{record.locationArea,jdbcType=VARCHAR},
-      </if>
-      <if test="record.adress != null">
-        adress = #{record.adress,jdbcType=VARCHAR},
-      </if>
-    </set>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    update customer_organization_info
-    set id = #{record.id,jdbcType=VARCHAR},
-      cid = #{record.cid,jdbcType=VARCHAR},
-      company_name = #{record.companyName,jdbcType=VARCHAR},
-      location_province = #{record.locationProvince,jdbcType=CHAR},
-      location_city = #{record.locationCity,jdbcType=VARCHAR},
-      location_area = #{record.locationArea,jdbcType=VARCHAR},
-      adress = #{record.adress,jdbcType=VARCHAR}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    update customer_organization_info
-    <set>
-      <if test="cid != null">
-        cid = #{cid,jdbcType=VARCHAR},
-      </if>
-      <if test="companyName != null">
-        company_name = #{companyName,jdbcType=VARCHAR},
-      </if>
-      <if test="locationProvince != null">
-        location_province = #{locationProvince,jdbcType=CHAR},
-      </if>
-      <if test="locationCity != null">
-        location_city = #{locationCity,jdbcType=VARCHAR},
-      </if>
-      <if test="locationArea != null">
-        location_area = #{locationArea,jdbcType=VARCHAR},
-      </if>
-      <if test="adress != null">
-        adress = #{adress,jdbcType=VARCHAR},
-      </if>
-    </set>
-    where id = #{id,jdbcType=VARCHAR}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:41:04 CST 2017.
-    -->
-    update customer_organization_info
-    set cid = #{cid,jdbcType=VARCHAR},
-      company_name = #{companyName,jdbcType=VARCHAR},
-      location_province = #{locationProvince,jdbcType=CHAR},
-      location_city = #{locationCity,jdbcType=VARCHAR},
-      location_area = #{locationArea,jdbcType=VARCHAR},
-      adress = #{adress,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=VARCHAR}
-  </update>
 </mapper>

+ 2 - 286
src/main/java/com/goafanti/common/mapper/CustomerUserInfoMapper.xml

@@ -19,153 +19,8 @@
     <result column="customer_position" jdbcType="VARCHAR" property="customerPosition" />
     <result column="remarks" jdbcType="VARCHAR" property="remarks" />
   </resultMap>
-  <sql id="Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    id, cid, name, sex, mobile, email, qq, wechat, depatrment, customer_position, remarks
-  </sql>
-  <select id="selectByExample" parameterType="com.goafanti.common.model.CustomerUserInfoExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from customer_user_info
-    <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 - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from customer_user_info
-    where id = #{id,jdbcType=VARCHAR}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    delete from customer_user_info
-    where id = #{id,jdbcType=VARCHAR}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.goafanti.common.model.CustomerUserInfoExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    delete from customer_user_info
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.goafanti.common.model.CustomerUserInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    insert into customer_user_info (id, cid, name, 
-      sex, mobile, email, qq, 
-      wechat, depatrment, customer_position, 
-      remarks)
-    values (#{id,jdbcType=VARCHAR}, #{cid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
-      #{sex,jdbcType=CHAR}, #{mobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR}, 
-      #{wechat,jdbcType=VARCHAR}, #{depatrment,jdbcType=VARCHAR}, #{customerPosition,jdbcType=VARCHAR}, 
-      #{remarks,jdbcType=VARCHAR})
-  </insert>
-  <insert id="insertSelective" parameterType="com.goafanti.common.model.CustomerUserInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
+  <!-- 新增 -->
+  <insert id="insertCustomerUser" parameterType="com.goafanti.common.model.CustomerUserInfo">
     insert into customer_user_info
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -238,143 +93,4 @@
       </if>
     </trim>
   </insert>
-  <select id="countByExample" parameterType="com.goafanti.common.model.CustomerUserInfoExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    select count(*) from customer_user_info
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    update customer_user_info
-    <set>
-      <if test="record.id != null">
-        id = #{record.id,jdbcType=VARCHAR},
-      </if>
-      <if test="record.cid != null">
-        cid = #{record.cid,jdbcType=VARCHAR},
-      </if>
-      <if test="record.name != null">
-        name = #{record.name,jdbcType=VARCHAR},
-      </if>
-      <if test="record.sex != null">
-        sex = #{record.sex,jdbcType=CHAR},
-      </if>
-      <if test="record.mobile != null">
-        mobile = #{record.mobile,jdbcType=VARCHAR},
-      </if>
-      <if test="record.email != null">
-        email = #{record.email,jdbcType=VARCHAR},
-      </if>
-      <if test="record.qq != null">
-        qq = #{record.qq,jdbcType=VARCHAR},
-      </if>
-      <if test="record.wechat != null">
-        wechat = #{record.wechat,jdbcType=VARCHAR},
-      </if>
-      <if test="record.depatrment != null">
-        depatrment = #{record.depatrment,jdbcType=VARCHAR},
-      </if>
-      <if test="record.customerPosition != null">
-        customer_position = #{record.customerPosition,jdbcType=VARCHAR},
-      </if>
-      <if test="record.remarks != null">
-        remarks = #{record.remarks,jdbcType=VARCHAR},
-      </if>
-    </set>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    update customer_user_info
-    set id = #{record.id,jdbcType=VARCHAR},
-      cid = #{record.cid,jdbcType=VARCHAR},
-      name = #{record.name,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      mobile = #{record.mobile,jdbcType=VARCHAR},
-      email = #{record.email,jdbcType=VARCHAR},
-      qq = #{record.qq,jdbcType=VARCHAR},
-      wechat = #{record.wechat,jdbcType=VARCHAR},
-      depatrment = #{record.depatrment,jdbcType=VARCHAR},
-      customer_position = #{record.customerPosition,jdbcType=VARCHAR},
-      remarks = #{record.remarks,jdbcType=VARCHAR}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.CustomerUserInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    update customer_user_info
-    <set>
-      <if test="cid != null">
-        cid = #{cid,jdbcType=VARCHAR},
-      </if>
-      <if test="name != null">
-        name = #{name,jdbcType=VARCHAR},
-      </if>
-      <if test="sex != null">
-        sex = #{sex,jdbcType=CHAR},
-      </if>
-      <if test="mobile != null">
-        mobile = #{mobile,jdbcType=VARCHAR},
-      </if>
-      <if test="email != null">
-        email = #{email,jdbcType=VARCHAR},
-      </if>
-      <if test="qq != null">
-        qq = #{qq,jdbcType=VARCHAR},
-      </if>
-      <if test="wechat != null">
-        wechat = #{wechat,jdbcType=VARCHAR},
-      </if>
-      <if test="depatrment != null">
-        depatrment = #{depatrment,jdbcType=VARCHAR},
-      </if>
-      <if test="customerPosition != null">
-        customer_position = #{customerPosition,jdbcType=VARCHAR},
-      </if>
-      <if test="remarks != null">
-        remarks = #{remarks,jdbcType=VARCHAR},
-      </if>
-    </set>
-    where id = #{id,jdbcType=VARCHAR}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.CustomerUserInfo">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Mon Oct 09 17:40:56 CST 2017.
-    -->
-    update customer_user_info
-    set cid = #{cid,jdbcType=VARCHAR},
-      name = #{name,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      mobile = #{mobile,jdbcType=VARCHAR},
-      email = #{email,jdbcType=VARCHAR},
-      qq = #{qq,jdbcType=VARCHAR},
-      wechat = #{wechat,jdbcType=VARCHAR},
-      depatrment = #{depatrment,jdbcType=VARCHAR},
-      customer_position = #{customerPosition,jdbcType=VARCHAR},
-      remarks = #{remarks,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=VARCHAR}
-  </update>
 </mapper>

+ 118 - 244
src/main/java/com/goafanti/common/model/Customer.java

@@ -2,250 +2,124 @@ package com.goafanti.common.model;
 
 import java.util.Date;
 
-import com.fasterxml.jackson.annotation.JsonFormat;
-import com.fasterxml.jackson.annotation.JsonFormat.Shape;
-
 public class Customer {
+   
 	/**
-	 * 获取id
-	 */
-	private String id;
-	/**
-	 * 跟单人
-	 */
-	private String adminName;
-	/**
-	 * 获取时间
-	 */
-	private Date createTime;
-	/**
-	 * 拥有者
-	 */
-	private String aid;
-	/**
-	 * 公司名称
-	 */
-	private String companyName;
-	/**
-	 * 客户类型
-	 */
-	private Integer customerTyp;
-	
-	/**
-	 * 行业
-	 */
-	private String companyIndustry;
-	/**
-	 * 公司意向
-	 */
-	private String companyIntention;
-	/**
-	 * 公司地址
-	 */
-	private String adress;
-	/**
-	 * 客户名称
-	 */
-	private String customerName;
-	/**
-	 * 座机
-	 */
-	private String mobile;
-	/**
-	 * 手机电话
-	 */
-	private String telNum;
-	/**
-	 * 邮箱
-	 */
-	private String email;
-	/**
-	 * 部门
-	 */
-	private String department;
-	/**
-	 * qq
-	 */
-	private String qq;
-	/**
-	 * 微信号
-	 */
-	private String wechat;
-	/**
-	 * 职位
-	 */
-	private String customerPosition;
-	/**
-	 * 备注
-	 */
-	private String remark;
-	/**
-	 * 省份
-	 */
-	private String province;
-	/**
-	 * 跟进情况
-	 */
-	private String fllowSituation;
-	/**
-	 * 性别
-	 */
-	private Integer sex;
-	/**
-	 * 客户状态
-	 */
-	private String customerStatue;
-	
-	
-	public String getId() {
-		return id;
-	}
-	public void setId(String id) {
-		this.id = id;
-	}
-	
-	public String getAdminName() {
-		return adminName;
-	}
-	public void setAdminName(String adminName) {
-		this.adminName = adminName;
-	}
-	public Date getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-	
-	public String getAid() {
-		return aid;
-	}
-	public void setAid(String aid) {
-		this.aid = aid;
-	}
-	public String getCompanyName() {
-		return companyName;
-	}
-	public void setCompanyName(String companyName) {
-		this.companyName = companyName;
-	}
-	public String getCompanyIndustry() {
-		return companyIndustry;
-	}
-	public void setCompanyIndustry(String companyIndustry) {
-		this.companyIndustry = companyIndustry;
-	}
-	public String getCompanyIntention() {
-		return companyIntention;
-	}
-	public void setCompanyIntention(String companyIntention) {
-		this.companyIntention = companyIntention;
-	}
-	public String getAdress() {
-		return adress;
-	}
-	public void setAdress(String adress) {
-		this.adress = adress;
-	}
-	public String getCustomerName() {
-		return customerName;
-	}
-	public void setCustomerName(String customerName) {
-		this.customerName = customerName;
-	}
-	public String getMobile() {
-		return mobile;
-	}
-	public void setMobile(String mobile) {
-		this.mobile = mobile;
-	}
-	public String getEmail() {
-		return email;
-	}
-	public void setEmail(String email) {
-		this.email = email;
-	}
-	public String getDepartment() {
-		return department;
-	}
-	public void setDepartment(String department) {
-		this.department = department;
-	}
-	public String getQq() {
-		return qq;
-	}
-	public void setQq(String qq) {
-		this.qq = qq;
-	}
-	public String getWechat() {
-		return wechat;
-	}
-	public void setWechat(String wechat) {
-		this.wechat = wechat;
-	}
-	public String getCustomerPosition() {
-		return customerPosition;
-	}
-	public void setCustomerPosition(String customerPosition) {
-		this.customerPosition = customerPosition;
-	}
-	public String getRemark() {
-		return remark;
-	}
-	public void setRemark(String remark) {
-		this.remark = remark;
-	}
-	public String getProvince() {
-		return province;
-	}
-	public void setProvince(String province) {
-		this.province = province;
-	}
-	public String getFllowSituation() {
-		return fllowSituation;
-	}
-	public void setFllowSituation(String fllowSituation) {
-		this.fllowSituation = fllowSituation;
-	}
-	@JsonFormat(shape = Shape.STRING)
-	public Integer getSex() {
-		return sex;
-	}
-	public void setSex(Integer sex) {
-		this.sex = sex;
-	}
-	public String getCustomerStatue() {
-		return customerStatue;
-	}
-	public void setCustomerStatue(String customerStatue) {
-		this.customerStatue = customerStatue;
-	}
-	public String getTelNum() {
-		return telNum;
-	}
-	public void setTelNum(String telNum) {
-		this.telNum = telNum;
-	}
-	@JsonFormat(shape = Shape.STRING)
-	public Integer getCustomerTyp() {
-		return customerTyp;
-	}
-	public void setCustomerTyp(Integer customerTyp) {
-		this.customerTyp = customerTyp;
-	}
-	@Override
-	public String toString() {
-		return "Customer [createTime=" + createTime + ", ownerId=" + aid + ", companyName=" + companyName
-				+ ", companyIndustry=" + companyIndustry + ", companyIntention=" + companyIntention + ", adress="
-				+ adress + ", customerName=" + customerName + ", mobile=" + mobile + ", email=" + email
-				+ ", department=" + department + ", qq=" + qq + ", wechat=" + wechat + ", customerPosition="
-				+ customerPosition + ", remark=" + remark + ", province=" + province + ", fllowSituation="
-				+ fllowSituation + ", sex=" + sex + ", customerStatue=" + customerStatue + "]";
-	}
-	
-	
-	
-	
-	
-	
+     *id
+     */
+    private String id;
+
+   
+    private String aid;
+
+    /**
+     *客户类型
+     */
+    private String customerTyp;
+
+    /**
+     *分享类型
+     */
+    private Date shareTyp;
+
+    /**
+     *代办人ID
+     */
+    private String agentId;
+
+    /**
+     *客户意向
+     */
+    private String companyIntention;
+
+    /**
+     *创建时间
+     */
+    private String createTime;
+
+    /**
+     *
+     * 跟进情况
+     */
+    private String followSituation;
+
+    /**
+     *
+     * 客户状态
+     */
+    private String customerStatue;
+
+    /**
+     */
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getAid() {
+        return aid;
+    }
+
+    public void setAid(String aid) {
+        this.aid = aid;
+    }
+
+    public String getCustomerTyp() {
+        return customerTyp;
+    }
+
+    public void setCustomerTyp(String customerTyp) {
+        this.customerTyp = customerTyp;
+    }
+
+    public Date getShareTyp() {
+        return shareTyp;
+    }
+
+    public void setShareTyp(Date shareTyp) {
+        this.shareTyp = shareTyp;
+    }
+
+    public String getAgentId() {
+        return agentId;
+    }
+
+    public void setAgentId(String agentId) {
+        this.agentId = agentId;
+    }
+
+    public String getCompanyIntention() {
+        return companyIntention;
+    }
+
+    public void setCompanyIntention(String companyIntention) {
+        this.companyIntention = companyIntention;
+    }
+
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getFollowSituation() {
+        return followSituation;
+    }
+
+    public void setFollowSituation(String followSituation) {
+        this.followSituation = followSituation;
+    }
+
+    public String getCustomerStatue() {
+        return customerStatue;
+    }
+
+    public void setCustomerStatue(String customerStatue) {
+        this.customerStatue = customerStatue;
+    }
 }

File diff suppressed because it is too large
+ 152 - 842
src/main/java/com/goafanti/common/model/CustomerExample.java