|
|
@ -193,4 +193,16 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa |
|
|
|
public List<CrmCustomerTempVo> getCustomerByOrgSid(String orgSid) { |
|
|
|
return baseMapper.getCustomerByOrgSid(orgSid); |
|
|
|
} |
|
|
|
public PagerVo<CrmCustomerTempVo> listPageVo1(PagerQuery<CrmCustomerTempQuery> pq) { |
|
|
|
CrmCustomerTempQuery query = pq.getParams(); |
|
|
|
QueryWrapper<CrmCustomerTemp> qw = new QueryWrapper<>(); |
|
|
|
qw.like("s.orgSidPath", query.getOrgPath()); |
|
|
|
if(StringUtils.isNotBlank(query.getCustomerName())){ |
|
|
|
qw.like("a.name",query.getCustomerName()); |
|
|
|
} |
|
|
|
IPage<CrmCustomerTemp> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<CrmCustomerTempVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
PagerVo<CrmCustomerTempVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return p; |
|
|
|
} |
|
|
|
} |
|
|
|