Commit 5ce98887 by 王祖波

空指针修改

parent cab0851e
......@@ -203,7 +203,7 @@ public class PotentialDataController {
StoreDTO storeDTO = storeMap.get(x.getStoreId());
if (!weekMonth) {
// 实时获取当前未建联数 todo
Integer noConnPotCusNum = getNoConnPotCusNum(potentialResponse, enterpriseId, wxEnterpriseId, storeDTO.getStoreId(), clerkDTO);
Integer noConnPotCusNum = getNoConnPotCusNum(potentialResponse, enterpriseId, wxEnterpriseId, storeDTO, clerkDTO);
x.setNoConnPotCusNum(noConnPotCusNum);
}
PotentialContactDetailOverviewVO overviewVO = new PotentialContactDetailOverviewVO();
......@@ -222,10 +222,11 @@ public class PotentialDataController {
return RestResponse.successResult(res);
}
private Integer getNoConnPotCusNum(ServiceResponse<PlatformPotentialCustomerOutDTO> potentialResponse, String enterpriseId,String wxEnterpriseId,String storeId,ClerkDTO clerkDTO) {
if (StringUtils.isBlank(storeId) && clerkDTO == null) {
private Integer getNoConnPotCusNum(ServiceResponse<PlatformPotentialCustomerOutDTO> potentialResponse, String enterpriseId,String wxEnterpriseId,StoreDTO storeDTO,ClerkDTO clerkDTO) {
if (storeDTO == null && clerkDTO == null) {
return 0;
}
String storeId = storeDTO.getStoreId();
CustomerDTO params = new CustomerDTO();
String clerkId = null;
if (clerkDTO != null) {
......
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