|
|
@@ -183,7 +183,7 @@ public class VendorController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除供应商联系人信息
|
|
|
+ * 删除供应商联系人信息(或客户联系人)
|
|
|
*
|
|
|
* @param id
|
|
|
*/
|
|
|
@@ -192,4 +192,28 @@ public class VendorController {
|
|
|
private void deleteContact(@PathVariable Long id) {
|
|
|
vendorService.deleteContact(id);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存客户联系人
|
|
|
+ *
|
|
|
+ * @param contact
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/saveCustomerContact", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ private VendorContact saveCustomerContact(@RequestBody String contact) {
|
|
|
+ VendorContact vendor = JSON.parseObject(contact, VendorContact.class);
|
|
|
+ return vendorService.saveCustContact(vendor);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取客户联系人
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/custContacts/{enuu}", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ private List<VendorContact> getCustContacts(@PathVariable Long enuu) {
|
|
|
+ return vendorService.getCustContacts(enuu);
|
|
|
+ }
|
|
|
}
|