Browse Source

修改客户信息,操作员信息查询接口

zou_ht 8 years ago
parent
commit
2ad5dd4eb8

+ 5 - 55
src/main/java/com/goafanti/common/dao/CustomerMapper.java

@@ -2,77 +2,27 @@ package com.goafanti.common.dao;
 
 
 import com.goafanti.common.model.Customer;
-import com.goafanti.common.model.CustomerExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
 
 public interface CustomerMapper {
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	long countByExample(CustomerExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	int deleteByExample(CustomerExample example);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
+	 * 删除客户信息
 	 */
 	int deleteCustomerByPrimaryKey(String id);
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	int insert(Customer record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	int insertSelective(Customer record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	List<Customer> selectByExample(CustomerExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	Customer selectByPrimaryKey(String id);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
+	 * 查询客户详情
 	 */
-	int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);
+	Customer selectCustomerByPrimaryKey(String id);
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);
 
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
-	 */
-	int updateByPrimaryKeySelective(Customer record);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer
-	 * @mbg.generated  Wed Oct 11 15:40:31 CST 2017
+	 * 修改客户信息
 	 */
-	int updateByPrimaryKey(Customer record);
+	int updateCustomerByPrimaryKey(Customer record);
 
 	/**
 	 * 新增

+ 4 - 63
src/main/java/com/goafanti/common/dao/CustomerOrganizationInfoMapper.java

@@ -1,80 +1,21 @@
 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  Wed Oct 11 15:42:57 CST 2017
-	 */
-	long countByExample(CustomerOrganizationInfoExample example);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 CST 2017
+	 * 删除
 	 */
 	int deleteCustomerOrganizationByCid(String cid);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 CST 2017
+	 * 修改
 	 */
-	CustomerOrganizationInfo selectByPrimaryKey(String id);
-
+	int updateCustomerOrganizationByPrimaryKey(String cid);
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_organization_info
-	 * @mbg.generated  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 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  Wed Oct 11 15:42:57 CST 2017
-	 */
-	int updateByPrimaryKey(CustomerOrganizationInfo record);
-
 	int insertCustomerOrganization(CustomerOrganizationInfo cui);
 
 }

+ 4 - 61
src/main/java/com/goafanti/common/dao/CustomerUserInfoMapper.java

@@ -1,79 +1,22 @@
 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  Wed Oct 11 15:42:45 CST 2017
-	 */
-	long countByExample(CustomerUserInfoExample example);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 CST 2017
+	 * 删除
 	 */
 	int deleteCustomerUserByCid(String cid);
 
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Wed Oct 11 15:42:45 CST 2017
+	 * 修改
 	 */
-	int insert(CustomerUserInfo record);
-
+	int updateCustomerUserByPrimaryKey(String cid);
 	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table customer_user_info
-	 * @mbg.generated  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 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  Wed Oct 11 15:42:45 CST 2017
-	 */
-	int updateByPrimaryKey(CustomerUserInfo record);
-
 	int insertCustomerUser(CustomerUserInfo record);
 
 }

+ 16 - 154
src/main/java/com/goafanti/common/mapper/CustomerMapper.xml

@@ -2,11 +2,6 @@
 <!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 15:40:31 CST 2017.
-    -->
     <id column="id" jdbcType="VARCHAR" property="id" />
     <result column="aid" jdbcType="VARCHAR" property="aid" />
     <result column="customer_typ" jdbcType="VARCHAR" property="customerTyp" />
@@ -52,40 +47,6 @@
       </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 Wed Oct 11 15:40:31 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
@@ -95,34 +56,22 @@
     id, aid, customer_typ, share_typ, agent_id, company_intention, create_time, follow_situation, 
     customer_statue, paid
   </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 15:40:31 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 15:40:31 CST 2017.
-    -->
+  <select id="selectCustomerByPrimaryKey" parameterType="java.lang.String" resultMap="com.goafanti.customer.bo.CustomerBo">
     select 
-    <include refid="Base_Column_List" />
-    from customer
+    a.customer_typ as customerTyp,
+    a.share_typ as shareTyp,
+    a.company_intention as companyIntention,
+    a.create_time as createTime,
+    a.follow_situation as followSituation,
+    a.customer_statue as ,customerStatue,
+    b.name,b.sex,b.mobile,b.telNum,b.email,b.qq,b.wechat,b.depatrment,b.remarks,
+    b.customer_position as customerPosition,
+    c.company_name as companyName,
+    c.location_province as locationProvince,
+    c.company_industry as companyIndustry,
+    c.adress
+    from customer a left join customer_user_info b on  a.id=b.cid
+    				left join customer_organization_info c on a.id=c.cid
     where id = #{id,jdbcType=VARCHAR}
   </select>
   <delete id="deleteCustomerByPrimaryKey" parameterType="java.lang.String">
@@ -243,76 +192,7 @@
       <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 15:40:31 CST 2017.
-    -->
-    update customer
-    <set>
-      <if test="record.id != null">
-        id = #{record.id,jdbcType=VARCHAR},
-      </if>
-      <if test="record.aid != null">
-        aid = #{record.aid,jdbcType=VARCHAR},
-      </if>
-      <if test="record.customerTyp != null">
-        customer_typ = #{record.customerTyp,jdbcType=VARCHAR},
-      </if>
-      <if test="record.shareTyp != null">
-        share_typ = #{record.shareTyp,jdbcType=INTEGER},
-      </if>
-      <if test="record.agentId != null">
-        agent_id = #{record.agentId,jdbcType=VARCHAR},
-      </if>
-      <if test="record.companyIntention != null">
-        company_intention = #{record.companyIntention,jdbcType=VARCHAR},
-      </if>
-      <if test="record.createTime != null">
-        create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="record.followSituation != null">
-        follow_situation = #{record.followSituation,jdbcType=VARCHAR},
-      </if>
-      <if test="record.customerStatue != null">
-        customer_statue = #{record.customerStatue,jdbcType=VARCHAR},
-      </if>
-      <if test="record.paid != null">
-        paid = #{record.paid,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 Wed Oct 11 15:40:31 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=INTEGER},
-      agent_id = #{record.agentId,jdbcType=VARCHAR},
-      company_intention = #{record.companyIntention,jdbcType=VARCHAR},
-      create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      follow_situation = #{record.followSituation,jdbcType=VARCHAR},
-      customer_statue = #{record.customerStatue,jdbcType=VARCHAR},
-      paid = #{record.paid,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 15:40:31 CST 2017.
-    -->
+  <update id="updateCustomerByPrimaryKey" parameterType="com.goafanti.common.model.Customer">
     update customer
     <set>
       <if test="aid != null">
@@ -345,22 +225,4 @@
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
-  <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 15:40:31 CST 2017.
-    -->
-    update customer
-    set aid = #{aid,jdbcType=VARCHAR},
-      customer_typ = #{customerTyp,jdbcType=VARCHAR},
-      share_typ = #{shareTyp,jdbcType=INTEGER},
-      agent_id = #{agentId,jdbcType=VARCHAR},
-      company_intention = #{companyIntention,jdbcType=VARCHAR},
-      create_time = #{createTime,jdbcType=TIMESTAMP},
-      follow_situation = #{followSituation,jdbcType=VARCHAR},
-      customer_statue = #{customerStatue,jdbcType=VARCHAR},
-      paid = #{paid,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=VARCHAR}
-  </update>
 </mapper>

+ 23 - 0
src/main/java/com/goafanti/common/mapper/CustomerOrganizationInfoMapper.xml

@@ -72,4 +72,27 @@
     delete from customer_organization_info 
     where cid = #{cid,jdbcType=VARCHAR}
   </delete>
+  
+  
+  <update id="updateCustomerOrganizationByPrimaryKey" parameterType="com.goafanti.common.model.CustomerOrganizationInfo">
+    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=INTEGER},
+      </if>
+      <if test="adress != null">
+        adress = #{adress,jdbcType=VARCHAR},
+      </if>
+      <if test="companyIndustry != null">
+        company_industry = #{companyIndustry,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where cid = #{cid,jdbcType=VARCHAR}
+  </update>
 </mapper>

+ 37 - 0
src/main/java/com/goafanti/common/mapper/CustomerUserInfoMapper.xml

@@ -103,4 +103,41 @@
     where cid = #{cid,jdbcType=VARCHAR}
   </delete>
   
+  <update id="updateCustomerUserByPrimaryKey" parameterType="com.goafanti.common.model.CustomerUserInfo">
+    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=INTEGER},
+      </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 cid = #{cid,jdbcType=VARCHAR}
+  </update>
+  
 </mapper>

+ 48 - 1
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -1,6 +1,7 @@
 package com.goafanti.customer.controller;
 
 import java.text.ParseException;
+import java.util.List;
 import java.util.UUID;
 
 import javax.annotation.Resource;
@@ -11,8 +12,10 @@ import org.springframework.web.bind.annotation.RestController;
 import com.goafanti.customer.service.CustomerOrganizationService;
 import com.goafanti.customer.service.CustomerService;
 import com.goafanti.customer.service.CustomerUserService;
+import com.goafanti.admin.service.AdminService;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.controller.CertifyApiController;
+import com.goafanti.common.model.Admin;
 import com.goafanti.common.model.Customer;
 import com.goafanti.common.model.CustomerOrganizationInfo;
 import com.goafanti.common.model.CustomerUserInfo;
@@ -28,6 +31,8 @@ public class AdminCustomerApiController extends CertifyApiController {
 	private CustomerUserService customerUserService;
 	@Resource
 	private CustomerOrganizationService customerOrganizationService;
+	@Resource
+	private AdminService adminService;
 
 	/**
 	 * 新增客户
@@ -68,7 +73,49 @@ public class AdminCustomerApiController extends CertifyApiController {
 	@RequestMapping(value = "/deleteCustomer", method = RequestMethod.POST)
 	public Result deleteCustomer(String id) throws ParseException {
 		Result res=new Result();
-		
+		customerService.deleteCustomer(id);
+		customerUserService.deleteCustomerUserByCid(id);
+		customerOrganizationService.deleteCustomerOrganizationByCid(id);
+		return res;
+	}
+	
+	/**
+	 * 详情查询接口
+	 * 
+	 * @return
+	 * @throws ParseException
+	 */
+	@RequestMapping(value = "/detail", method = RequestMethod.POST)
+	public Result selectCustomerDetail(String id) throws ParseException {
+		Result res=new Result();
+		res.setData(customerService.selectCustomerByPrimaryKey(id));
+		return res;
+	}
+	
+	/**
+	 * 修改客户信息
+	 * 
+	 * @return
+	 * @throws ParseException
+	 */
+	@RequestMapping(value = "/updCustomer", method = RequestMethod.POST)
+	public void updCustomerDetail(String id) throws ParseException {
+		customerService.updCustomerByByPrimaryKey(id);
+		customerUserService.updCustomerUserByByPrimaryKey(id);
+		customerOrganizationService.updCustomerOrganizationByByPrimaryKey(id);
+	}
+	
+	/**
+	 * 查询操作员信息
+	 * 
+	 * @return
+	 * @throws ParseException
+	 */
+	@RequestMapping(value = "/findAdmin", method = RequestMethod.POST)
+	public Result selectAllAdmin() throws ParseException {
+		Result res = new Result();
+		List<Admin> selectAllAdmin = adminService.selectAllAdmin();
+		res.setData(selectAllAdmin);
 		return res;
 	}
 

+ 2 - 0
src/main/java/com/goafanti/customer/service/CustomerOrganizationService.java

@@ -6,4 +6,6 @@ public interface CustomerOrganizationService {
 	int addCustomerOrganization(CustomerOrganizationInfo coi);
 	
 	void deleteCustomerOrganizationByCid(String cid);
+	
+	void updCustomerOrganizationByByPrimaryKey(String cid);
 }

+ 4 - 0
src/main/java/com/goafanti/customer/service/CustomerService.java

@@ -2,6 +2,7 @@ package com.goafanti.customer.service;
 
 
 import com.goafanti.common.model.Customer;
+import com.goafanti.customer.bo.CustomerBo;
 
 public interface CustomerService {
 
@@ -9,4 +10,7 @@ public interface CustomerService {
 	
 	void deleteCustomer(String id);
 	
+	CustomerBo selectCustomerByPrimaryKey (String id);
+	
+	void updCustomerByByPrimaryKey(String id);
 }

+ 2 - 0
src/main/java/com/goafanti/customer/service/CustomerUserService.java

@@ -6,4 +6,6 @@ public interface CustomerUserService {
 	int addCustomerUser(CustomerUserInfo cui);
 	
 	void deleteCustomerUserByCid(String id);
+	
+	void updCustomerUserByByPrimaryKey(String cid);
 }

+ 5 - 0
src/main/java/com/goafanti/customer/service/impl/CustomerOrganizationServiceImp.java

@@ -22,5 +22,10 @@ public class CustomerOrganizationServiceImp extends BaseMybatisDao<CustomerOrgan
 		customerOrganizationInfoMapper.deleteCustomerOrganizationByCid(cid);
 	}
 
+	@Override
+	public void updCustomerOrganizationByByPrimaryKey(String cid) {
+		customerOrganizationInfoMapper.updateCustomerOrganizationByPrimaryKey(cid);
+	}
+
 
 }

+ 6 - 0
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -4,6 +4,7 @@ package com.goafanti.customer.service.impl;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.customer.bo.CustomerBo;
 import com.goafanti.customer.service.CustomerService;
 import com.goafanti.common.dao.CustomerMapper;
 import com.goafanti.common.model.Customer;
@@ -20,5 +21,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
 	public void deleteCustomer(String id) {
 		customerMapper.deleteCustomerByPrimaryKey(id);
 	}
+	@Override
+	public CustomerBo selectCustomerByPrimaryKey(String id) {
+		customerMapper.selectCustomerByPrimaryKey(id);
+		return null;
+	}
 	
 }

+ 5 - 0
src/main/java/com/goafanti/customer/service/impl/CustomerUserServiceImp.java

@@ -22,4 +22,9 @@ public class CustomerUserServiceImp extends BaseMybatisDao<CustomerUserInfoMappe
 		customerUserInfoMapper.deleteCustomerUserByCid(cid);
 	}
 
+	@Override
+	public void updCustomerUserByByPrimaryKey(String cid) {
+		customerUserInfoMapper.updateCustomerUserByPrimaryKey(cid);
+	}
+
 }