|
|
@@ -1,7 +1,6 @@
|
|
|
package com.ydtech.modules.admin.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.admin.dao.SysDeptInternalAgentMapper;
|
|
|
import com.ydtech.modules.admin.dao.SysUserLinkAreaMapper;
|
|
|
import com.ydtech.modules.admin.model.SysUser;
|
|
|
@@ -11,7 +10,6 @@ import com.ydtech.modules.admin.service.SysUserLinkDeptInternalAgentService;
|
|
|
import com.ydtech.modules.admin.service.SysUserService;
|
|
|
import com.ydtech.modules.order.dao.InsAreaCompanyMapper;
|
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -53,9 +51,9 @@ public class OperationDataReportServiceImpl implements OperationDataReportServic
|
|
|
*/
|
|
|
@Override
|
|
|
public BasePageResult<BusinessDataDto> queryBusinessDataPage(BusinessDataQueryDto businessDataQueryDto) {
|
|
|
- if(StringUtils.isBlank(businessDataQueryDto.getDeptId())){
|
|
|
- throw new SystemException("机构id不能为空");
|
|
|
- }
|
|
|
+ // if(StringUtils.isBlank(businessDataQueryDto.getDeptId())){
|
|
|
+ // throw new SystemException("机构id不能为空");
|
|
|
+ // }
|
|
|
Result resultData = new Result().getRestData(businessDataQueryDto.getDeptId(), businessDataQueryDto.getDeptType());
|
|
|
if(resultData.userIds ==null || resultData.userIds.size()==0){
|
|
|
return new BasePageResult<BusinessDataDto>();
|
|
|
@@ -120,9 +118,9 @@ public class OperationDataReportServiceImpl implements OperationDataReportServic
|
|
|
*/
|
|
|
@Override
|
|
|
public BasePageResult<QuotationCountDataDto> queryQuotationCountDataPage(QuotationCountQueryDto quotationCountQueryDto) {
|
|
|
- if(StringUtils.isBlank(quotationCountQueryDto.getDeptId())){
|
|
|
- throw new SystemException("机构id不能为空");
|
|
|
- }
|
|
|
+ //if(StringUtils.isBlank(quotationCountQueryDto.getDeptId())){
|
|
|
+ // throw new SystemException("机构id不能为空");
|
|
|
+ //}
|
|
|
Result resultData = new Result().getRestData(quotationCountQueryDto.getDeptId(),quotationCountQueryDto.getDeptType());
|
|
|
if(resultData.userIds ==null || resultData.userIds.size()==0){
|
|
|
return new BasePageResult<QuotationCountDataDto>();
|
|
|
@@ -144,9 +142,9 @@ public class OperationDataReportServiceImpl implements OperationDataReportServic
|
|
|
*/
|
|
|
@Override
|
|
|
public BasePageResult<OperationsPersonnelDataDto> queryOperationsPersonnelDataPage(QuotationCountQueryDto quotationCountQueryDto) {
|
|
|
- if(StringUtils.isBlank(quotationCountQueryDto.getDeptId())){
|
|
|
- throw new SystemException("机构id不能为空");
|
|
|
- }
|
|
|
+ //if(StringUtils.isBlank(quotationCountQueryDto.getDeptId())){
|
|
|
+ // throw new SystemException("机构id不能为空");
|
|
|
+ //}
|
|
|
List<String> userIds= sysUserLinkDeptInternalAgentService.getUserIdListByDeptId(quotationCountQueryDto.getDeptId());
|
|
|
//渠道用户数据
|
|
|
List<SysUser> qdUserList=new ArrayList<SysUser>();
|