Browse Source

修改客户系统接口

wanghui 8 years ago
parent
commit
8959bf66b3

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

@@ -59,8 +59,8 @@ public class AdminCustomerApiController extends BaseApiController {
 	 * @throws InvocationTargetException 
 	 * @throws IllegalAccessException 
 	 */
-	@RequestMapping(value = "/addCustomer", method = RequestMethod.POST)
-	public Result addCustomer(CustomerIn cusIn,CustomerOrganizationInfo coi,CustomerUserInfo cui,FollowUpRecord fur) throws ParseException, IllegalAccessException, InvocationTargetException {
+	@RequestMapping(value = "/addFollowRecord", method = RequestMethod.POST)
+	public Result addFollowRecord(CustomerIn cusIn,CustomerOrganizationInfo coi,CustomerUserInfo cui,FollowUpRecord fur) throws ParseException, IllegalAccessException, InvocationTargetException {
 		Result res=new Result();
 		//添加 customer
 		String customerId = UUID.randomUUID().toString();//客户记录ID
@@ -275,7 +275,7 @@ public class AdminCustomerApiController extends BaseApiController {
 	 * @return
 	 * @throws ParseException 
 	 */
-	@RequestMapping(value = "/addFollow", method = RequestMethod.POST)
+	@RequestMapping(value = "/addFollowUpRecord", method = RequestMethod.POST)
 	public Result addFollowUpRecord(FollowUpRecord fur, CustomerIn cusIn) throws ParseException{
 		Result res = new Result();
 		SimpleDateFormat format = new SimpleDateFormat(AFTConstants.YYYYMMDDHHMMSS);
@@ -408,7 +408,7 @@ public class AdminCustomerApiController extends BaseApiController {
 	@RequestMapping(value = "/listTeamCustomer", method = RequestMethod.POST)
 	public Result listTeamCustomer(HttpServletRequest request,CustomerIn cin,Integer pageSize, Integer pageNo){
 		Result  res = new Result();
-		Pagination<CustomerOut> boList = customerService.getPublicCustomer(cin, pageSize, pageNo);
+		Pagination<CustomerOut> boList = customerService.getTeamCustomer(cin, pageSize, pageNo);
 		res.setData(boList);
 		return res;
 	}