Commit ace9f0a4 authored by liuzeheng's avatar liuzeheng

获客方式

parent be186ce8
...@@ -356,6 +356,7 @@ public class IndirectCustomerServiceImpl extends AbstractService<IndirectCustome ...@@ -356,6 +356,7 @@ public class IndirectCustomerServiceImpl extends AbstractService<IndirectCustome
.likeIfPresent(IndirectCustomerDO::getNumber, pageReqVO.getNumber()) .likeIfPresent(IndirectCustomerDO::getNumber, pageReqVO.getNumber())
.likeIfPresent(IndirectCustomerDO::getName, pageReqVO.getName()) .likeIfPresent(IndirectCustomerDO::getName, pageReqVO.getName())
.eqIfPresent(IndirectCustomerDO::getCustomerService, pageReqVO.getCustomerService()) .eqIfPresent(IndirectCustomerDO::getCustomerService, pageReqVO.getCustomerService())
.eqIfPresent(IndirectCustomerDO::getSource, pageReqVO.getSource())
.betweenIfPresent(IndirectCustomerDO::getCreateTime, pageReqVO.getBeginCreateTime(), pageReqVO.getEndCreateTime()) .betweenIfPresent(IndirectCustomerDO::getCreateTime, pageReqVO.getBeginCreateTime(), pageReqVO.getEndCreateTime())
.eq(BaseDO::getDeleted, false) .eq(BaseDO::getDeleted, false)
...@@ -364,8 +365,20 @@ public class IndirectCustomerServiceImpl extends AbstractService<IndirectCustome ...@@ -364,8 +365,20 @@ public class IndirectCustomerServiceImpl extends AbstractService<IndirectCustome
//主联系电话 //主联系电话
.apply(StringUtils.isNotEmpty(pageReqVO.getDefaultContactPhone()), "default_contact_phone like {0}", String.format("%%%s%%", pageReqVO.getDefaultContactPhone())) .apply(StringUtils.isNotEmpty(pageReqVO.getDefaultContactPhone()), "default_contact_phone like {0}", String.format("%%%s%%", pageReqVO.getDefaultContactPhone()))
.orderByDesc(IndirectCustomerDO::getId); .orderByDesc(IndirectCustomerDO::getId);
//添加获客方式
if (null != pageReqVO.getMarketType()) {
if (pageReqVO.getMarketType() == 1) {
customerDOLambdaQueryWrapperX.apply(" customer_service is not null ");
}
if (pageReqVO.getMarketType() == 2) {
customerDOLambdaQueryWrapperX.apply(" customer_service is null ");
}
}
indirectCustomerMapper.getPage(mpPage, customerDOLambdaQueryWrapperX); indirectCustomerMapper.getPage(mpPage, customerDOLambdaQueryWrapperX);
return new PageResult<>(mpPage.getRecords(), mpPage.getTotal()); return new PageResult<>(mpPage.getRecords(), mpPage.getTotal());
......
...@@ -41,6 +41,13 @@ public class IndirectCustomerPageReqVO extends PageParam { ...@@ -41,6 +41,13 @@ public class IndirectCustomerPageReqVO extends PageParam {
@ApiModelProperty(value = "主联系电话") @ApiModelProperty(value = "主联系电话")
private String defaultContactPhone; private String defaultContactPhone;
@ApiModelProperty(value = "市场获客")
private Integer marketType;
/**
* 客户来源
*/
private Integer source;
} }
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