|
|
@@ -14,7 +14,6 @@ import com.goafanti.admin.service.CustomerService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.controller.CertifyApiController;
|
|
|
import com.goafanti.common.model.Customer;
|
|
|
-import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
|
|
|
@RestController
|
|
|
@@ -34,7 +33,7 @@ public class AdminCustomerApiController extends CertifyApiController {
|
|
|
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, int customerTyp, String telNum) throws ParseException {
|
|
|
+ String customerStatue, String department, Integer customerTyp, String telNum) throws ParseException {
|
|
|
Customer cus = new Customer();
|
|
|
Result res = new Result();
|
|
|
cus.setAdress(adress);
|
|
|
@@ -76,17 +75,44 @@ public class AdminCustomerApiController extends CertifyApiController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询客户信息
|
|
|
+ * 查询客户列表
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/SearchCustomerList", method = RequestMethod.GET)
|
|
|
- public Result SearchCustomerList(String companyName, Integer customerTyp, String province,
|
|
|
+ @RequestMapping(value = "/searchCustomerList", method = RequestMethod.GET)
|
|
|
+ public Result SearchCustomerList(String companyName, String 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, String 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;
|
|
|
+ }
|
|
|
|
|
|
}
|