|
@@ -57,8 +57,8 @@ public class ContactsController {
|
|
return contactsService.addContacts(contacts, request);
|
|
return contactsService.addContacts(contacts, request);
|
|
}
|
|
}
|
|
@RequestMapping("/getAllContacts")
|
|
@RequestMapping("/getAllContacts")
|
|
- public HttpRespMsg getAllContacts(HttpServletRequest request){
|
|
|
|
- return contactsService.getAllContacts(request);
|
|
|
|
|
|
+ public HttpRespMsg getAllContacts(Integer customerId,HttpServletRequest request){
|
|
|
|
+ return contactsService.getAllContacts(customerId,request);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -128,8 +128,15 @@ public class ContactsController {
|
|
* 批量删除回收站中的联系人
|
|
* 批量删除回收站中的联系人
|
|
*/
|
|
*/
|
|
@RequestMapping("confirmDeleteContacts")
|
|
@RequestMapping("confirmDeleteContacts")
|
|
- public HttpRespMsg confirmDeleteContacts(List<Integer> ids){
|
|
|
|
- return contactsService.confirmDeleteContacts(ids);
|
|
|
|
|
|
+ public HttpRespMsg confirmDeleteContacts(String ids){
|
|
|
|
+ if (!StringUtils.isEmpty(ids)) {
|
|
|
|
+ ids="["+ids+"]";
|
|
|
|
+ List<Integer> array = JSONArray.parseArray(ids, Integer.class);
|
|
|
|
+ return contactsService.confirmDeleteContacts(array);
|
|
|
|
+ }
|
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
|
+ msg.setError("参数不能为空");
|
|
|
|
+ return msg;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -138,8 +145,15 @@ public class ContactsController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("returnContacts")
|
|
@RequestMapping("returnContacts")
|
|
- public HttpRespMsg returnContacts(List<Integer> ids){
|
|
|
|
- return contactsService.returnContacts(ids);
|
|
|
|
|
|
+ public HttpRespMsg returnContacts(String ids){
|
|
|
|
+ if (!StringUtils.isEmpty(ids)) {
|
|
|
|
+ ids="["+ids+"]";
|
|
|
|
+ List<Integer> array = JSONArray.parseArray(ids, Integer.class);
|
|
|
|
+ return contactsService.returnContacts(array);
|
|
|
|
+ }
|
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
|
+ msg.setError("参数不能为空");
|
|
|
|
+ return msg;
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("getContactsDetail")
|
|
@RequestMapping("getContactsDetail")
|