Commit 33929f74 by songyinghui

feat: 销售线索列表NPE

parent 3024e346
...@@ -17,6 +17,7 @@ import com.gic.haoban.manage.web.qo.content.potential.PotentialCustomerQO; ...@@ -17,6 +17,7 @@ import com.gic.haoban.manage.web.qo.content.potential.PotentialCustomerQO;
import com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO; import com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO;
import com.gic.haoban.manage.web.vo.content.potential.PotentialCustomerVO; import com.gic.haoban.manage.web.vo.content.potential.PotentialCustomerVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
...@@ -44,7 +45,6 @@ public class PotentialCustomerController { ...@@ -44,7 +45,6 @@ public class PotentialCustomerController {
MaterialDataAdaptor materialDataAdaptor; MaterialDataAdaptor materialDataAdaptor;
/** /**
* 销售线索列表 * 销售线索列表
* *
...@@ -62,6 +62,10 @@ public class PotentialCustomerController { ...@@ -62,6 +62,10 @@ public class PotentialCustomerController {
log.info("查询销售线索异常 {}", JSON.toJSONString(serviceResponse)); log.info("查询销售线索异常 {}", JSON.toJSONString(serviceResponse));
return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage()); return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
} }
if (CollectionUtils.isEmpty(serviceResponse.getResult().getResult())) {
log.info("查询销售线索为空 params: {}", JSON.toJSONString(potentialCustomerQO));
return RestResponse.successResult();
}
List<PotentialCustomerDTO> customerDTOS = serviceResponse.getResult().getResult(); List<PotentialCustomerDTO> customerDTOS = serviceResponse.getResult().getResult();
List<Long> materialIds = customerDTOS List<Long> materialIds = customerDTOS
.stream() .stream()
......
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