Commit f075a34a by songyinghui

feature: 销售线索数据组

parent 6e133313
......@@ -101,7 +101,7 @@ public class PotentialCustomerController {
.map(PotentialCustomerDTO::getMemberId)
.collect(Collectors.toList());
Map<String, Integer> memberVisitMap =
materialDataAdaptor.queryMemberVisitMap(potentialCustomerQO.getEnterpriseId(), null, potentialCustomerQO.getClerkId(), memberIds);
materialDataAdaptor.queryMemberVisitMap(potentialCustomerQO.getEnterpriseId(), null, potentialCustomerQO.getClerkId(), memberIds, potentialCustomerQO.getWithData());
List<PotentialCustomerVO> customerVOS = customerDTOS
.stream()
.map(item -> {
......
......@@ -417,8 +417,12 @@ public class MaterialDataAdaptor {
* @param memberIds
* @return
*/
public Map<String, Integer> queryMemberVisitMap(String enterpriseId, String storeId, String clerkId, List<String> memberIds) {
public Map<String, Integer> queryMemberVisitMap(String enterpriseId, String storeId, String clerkId, List<String> memberIds, Boolean withData) {
if (Boolean.FALSE.equals(withData)) {
log.info("不查询数据组 ");
return Collections.emptyMap();
}
try {
Map<String, Object> inlineParams = new HashMap<>();
if (StringUtils.isNotBlank(clerkId)) {
......
......@@ -71,4 +71,11 @@ public class PotentialCustomerQO extends BasePageInfo {
*/
private Integer searchType;
/**
* 是否查询数据
* true 查询
* false 不查询
*/
private Boolean withData;
}
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