|
|
@@ -94,13 +94,13 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
private Map<String,Object> disposeParams(CustomerIn cin){
|
|
|
Map<String,Object> params = new HashMap<String,Object>();
|
|
|
if(StringUtils.isNotBlank(cin.getAdminName())) params.put("adminName", cin.getAdminName());
|
|
|
- if(StringUtils.isNotBlank(cin.getAid())) params.put("adminId", cin.getAid());
|
|
|
+ if(StringUtils.isNotBlank(cin.getAid())) params.put("aid", cin.getAid());
|
|
|
if(StringUtils.isNotBlank(cin.getCompanyIntention())) params.put("companyIntention", Integer.parseInt(cin.getCompanyIntention()));
|
|
|
if(StringUtils.isNotBlank(cin.getContactName())) params.put("contactName", cin.getContactName());
|
|
|
if(StringUtils.isNotBlank(cin.getCustomerStatus())) params.put("customerStauts", Integer.parseInt(cin.getCustomerStatus()));
|
|
|
if(StringUtils.isNotBlank(cin.getFollowSituation())) params.put("followSituation", Integer.parseInt(cin.getFollowSituation()));
|
|
|
- if(StringUtils.isNotBlank(cin.getShareTyp())) params.put("shareTyp", Integer.parseInt(cin.getShareTyp()));
|
|
|
- if(StringUtils.isNotBlank(cin.getCustomerTyp())) params.put("customerTyp", Integer.parseInt(cin.getCustomerTyp()));
|
|
|
+ if(StringUtils.isNotBlank(cin.getShareTyp())) params.put("shareType", Integer.parseInt(cin.getShareTyp()));
|
|
|
+ if(StringUtils.isNotBlank(cin.getCustomerTyp())) params.put("customerType", Integer.parseInt(cin.getCustomerTyp()));
|
|
|
if(StringUtils.isNotBlank(cin.getContactTel())) params.put("contactTel", cin.getContactTel());
|
|
|
return params;
|
|
|
}
|
|
|
@@ -230,5 +230,21 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
return customerMapper.updateByPrimaryKeySelective(c);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询客户基本信息
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public CustomerOut findCustomerBaseInfo(String id) {
|
|
|
+ Customer cus = customerMapper.selectByPrimaryKey(id);
|
|
|
+ CustomerOut cusOut = new CustomerOut();
|
|
|
+ try {
|
|
|
+ BeanUtils.copyProperties(cusOut, cus);
|
|
|
+ } catch (IllegalAccessException | InvocationTargetException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if(cusOut != null) setFiled(cusOut);
|
|
|
+ return cusOut;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|