|
@@ -294,27 +294,31 @@ public class TBCrmServiceImpl extends ServiceImpl<TBCrmMapper, TBCrm> implements
|
|
|
@Override
|
|
|
public IPage<TBCrmResult> query(IPage<Map> iPage, Long serviceId, Boolean isBind, Long leadId, Long crmUserId,
|
|
|
ProductTypeEnum type, String custom, String crmNo, Long startTime, Long endTime) {
|
|
|
+ SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
if (custom != null && custom.length() > 0) {
|
|
|
custom = SystemConstant.translateSpecificSign(custom);
|
|
|
}
|
|
|
if (crmNo != null && crmNo.length() > 0) {
|
|
|
crmNo = SystemConstant.translateSpecificSign(crmNo);
|
|
|
}
|
|
|
+ DataPermissionDto dpr = sysUserService.buildUserDataPermission(requestUser.getId());
|
|
|
return this.baseMapper.query(iPage, serviceId, isBind, leadId, crmUserId,
|
|
|
- Objects.nonNull(type) ? type.name() : null, custom, crmNo, startTime, endTime);
|
|
|
+ Objects.nonNull(type) ? type.name() : null, custom, crmNo, startTime, endTime, dpr);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int count(Long serviceId, Boolean isBind, Long leadId, Long crmUserId, ProductTypeEnum type, String custom,
|
|
|
String crmNo, Long startTime, Long endTime) {
|
|
|
+ SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
if (custom != null && custom.length() > 0) {
|
|
|
custom = SystemConstant.translateSpecificSign(custom);
|
|
|
}
|
|
|
if (crmNo != null && crmNo.length() > 0) {
|
|
|
crmNo = SystemConstant.translateSpecificSign(crmNo);
|
|
|
}
|
|
|
+ DataPermissionDto dpr = sysUserService.buildUserDataPermission(requestUser.getId());
|
|
|
return this.baseMapper.count(serviceId, isBind, leadId, crmUserId, Objects.nonNull(type) ? type.name() : null,
|
|
|
- custom, crmNo, startTime, endTime);
|
|
|
+ custom, crmNo, startTime, endTime, dpr);
|
|
|
}
|
|
|
|
|
|
|