Commit 06f9119c by 邓实川 Committed by chenzg

解决列表null

parent 5f1285b6
...@@ -426,6 +426,7 @@ public class CrmController { ...@@ -426,6 +426,7 @@ public class CrmController {
.eq(status != null && status >= 0, CrmClientData::getClientStatus, status) .eq(status != null && status >= 0, CrmClientData::getClientStatus, status)
.like(!StrUtil.isBlank(like), CrmClientData::getClientName, like).or() .like(!StrUtil.isBlank(like), CrmClientData::getClientName, like).or()
.like(!StrUtil.isBlank(like), CrmClientData::getClientCellphone, like)); .like(!StrUtil.isBlank(like), CrmClientData::getClientCellphone, like));
if (crmClientData != null)
myCrmClientAssociates.add(crmClientData); myCrmClientAssociates.add(crmClientData);
} }
return myCrmClientAssociates; return myCrmClientAssociates;
...@@ -462,10 +463,11 @@ public class CrmController { ...@@ -462,10 +463,11 @@ public class CrmController {
Integer empNum = getEmpNum(userBean); Integer empNum = getEmpNum(userBean);
Integer orgCode = getOrgCode(userBean); Integer orgCode = getOrgCode(userBean);
List<CrmClientData> crmClientDatas = null; List<CrmClientData> crmClientDatas = null;
if (type == null || type == 0) // 全部客户(去重) if (type == null || type == 0) { // 全部客户(去重)
crmClientDatas = CheckUtil.distinct(getMyCilent(empNum, orgCode, groupId, status, like), List<CrmClientData> myClient = getMyCilent(empNum, orgCode, groupId, status, like);
getMyAssociateCilent(empNum, orgCode, groupId, status, like), true); List<CrmClientData> myAsso = getMyAssociateCilent(empNum, orgCode, groupId, status, like);
else if (type == 1) // 我负责的客户 crmClientDatas = CheckUtil.distinct(myClient, myAsso, true);
} else if (type == 1) // 我负责的客户
crmClientDatas = getMyCilent(empNum, orgCode, groupId, status, like); crmClientDatas = getMyCilent(empNum, orgCode, groupId, status, like);
else if (type == 2) // 我协作的客户 else if (type == 2) // 我协作的客户
crmClientDatas = getMyAssociateCilent(empNum, orgCode, groupId, status, like); crmClientDatas = getMyAssociateCilent(empNum, orgCode, groupId, status, like);
...@@ -479,7 +481,7 @@ public class CrmController { ...@@ -479,7 +481,7 @@ public class CrmController {
// Collections.sort(crmClientDatas, Comparator.comparing(CrmClientData::getCreateTime).reversed()); // 按时间降序排序 // Collections.sort(crmClientDatas, Comparator.comparing(CrmClientData::getCreateTime).reversed()); // 按时间降序排序
return ResultUtil.data(crmClientDatas, "查询成功"); return ResultUtil.data(crmClientDatas, "查询成功");
} }
private List<Integer> MyJoinGroup(Integer empNum, Integer orgCode) { private List<Integer> MyJoinGroup(Integer empNum, Integer orgCode) {
List<CrmBusinessGroupMember> members = CrmBusinessGroupMember.builder().build() List<CrmBusinessGroupMember> members = CrmBusinessGroupMember.builder().build()
.selectList(new QueryWrapper<CrmBusinessGroupMember>().lambda() .selectList(new QueryWrapper<CrmBusinessGroupMember>().lambda()
...@@ -986,4 +988,6 @@ public class CrmController { ...@@ -986,4 +988,6 @@ public class CrmController {
return map; return map;
} }
// TODO 导入客户
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment