|
@@ -9,6 +9,7 @@ import com.qmth.sop.business.bean.result.CrmArchivesAllocationResult;
|
|
import com.qmth.sop.business.bean.result.TBCrmResult;
|
|
import com.qmth.sop.business.bean.result.TBCrmResult;
|
|
import com.qmth.sop.business.bean.result.UserArchivesAllocationResult;
|
|
import com.qmth.sop.business.bean.result.UserArchivesAllocationResult;
|
|
import com.qmth.sop.business.bean.result.UserArchivesAllocationSubTotalResult;
|
|
import com.qmth.sop.business.bean.result.UserArchivesAllocationSubTotalResult;
|
|
|
|
+import com.qmth.sop.business.bean.result.analyze.RegionPersonnel;
|
|
import com.qmth.sop.business.bean.result.analyze.ServiceUnitOverview;
|
|
import com.qmth.sop.business.bean.result.analyze.ServiceUnitOverview;
|
|
import com.qmth.sop.business.bean.result.analyze.ServiceUnitPersonnel;
|
|
import com.qmth.sop.business.bean.result.analyze.ServiceUnitPersonnel;
|
|
import com.qmth.sop.business.bean.result.analyze.SupplierPersonnel;
|
|
import com.qmth.sop.business.bean.result.analyze.SupplierPersonnel;
|
|
@@ -277,7 +278,7 @@ public class ServiceAnalyseServiceImpl extends ServiceImpl<ServiceAnalyseMapper,
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<ServiceUnitPersonnel> personnel(Long serviceUnitId) {
|
|
|
|
|
|
+ public ServiceUnitPersonnel personnel(Long serviceUnitId) {
|
|
List<TBCrm> publishCrmList = tbCrmService.list(new QueryWrapper<TBCrm>()
|
|
List<TBCrm> publishCrmList = tbCrmService.list(new QueryWrapper<TBCrm>()
|
|
.lambda()
|
|
.lambda()
|
|
.eq(TBCrm::getServiceId, serviceUnitId)
|
|
.eq(TBCrm::getServiceId, serviceUnitId)
|
|
@@ -286,7 +287,10 @@ public class ServiceAnalyseServiceImpl extends ServiceImpl<ServiceAnalyseMapper,
|
|
|
|
|
|
Set<Long> regionIdSet = publishCrmList.stream().map(TBCrm::getRegionId).collect(Collectors.toSet());
|
|
Set<Long> regionIdSet = publishCrmList.stream().map(TBCrm::getRegionId).collect(Collectors.toSet());
|
|
|
|
|
|
- List<ServiceUnitPersonnel> serviceUnitPersonnelList = new ArrayList<>();
|
|
|
|
|
|
+ List<RegionPersonnel> regionPersonnelList = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ // 全量供应商id集合
|
|
|
|
+ Set<Long> supplierIdSet = new HashSet<>();
|
|
for (Long regionId : regionIdSet) {
|
|
for (Long regionId : regionIdSet) {
|
|
TBServiceRegion tbServiceRegion = tbServiceRegionService.getById(regionId);
|
|
TBServiceRegion tbServiceRegion = tbServiceRegionService.getById(regionId);
|
|
if (Objects.isNull(tbServiceRegion)) {
|
|
if (Objects.isNull(tbServiceRegion)) {
|
|
@@ -311,6 +315,7 @@ public class ServiceAnalyseServiceImpl extends ServiceImpl<ServiceAnalyseMapper,
|
|
Set<Long> userIdSet = new HashSet<>();
|
|
Set<Long> userIdSet = new HashSet<>();
|
|
userIdSet.add(userId);
|
|
userIdSet.add(userId);
|
|
supplierMap.put(supplierId, userIdSet);
|
|
supplierMap.put(supplierId, userIdSet);
|
|
|
|
+ supplierIdSet.add(supplierId);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -329,14 +334,18 @@ public class ServiceAnalyseServiceImpl extends ServiceImpl<ServiceAnalyseMapper,
|
|
supplierPersonnelList.add(supplierPersonnel);
|
|
supplierPersonnelList.add(supplierPersonnel);
|
|
count = count + cellCount;
|
|
count = count + cellCount;
|
|
}
|
|
}
|
|
- ServiceUnitPersonnel serviceUnitPersonnel = new ServiceUnitPersonnel();
|
|
|
|
- serviceUnitPersonnel.setRegionId(regionId);
|
|
|
|
- serviceUnitPersonnel.setRegionName(regionName);
|
|
|
|
- serviceUnitPersonnel.setSupplierPersonnelInfo(supplierPersonnelList);
|
|
|
|
- serviceUnitPersonnel.setCount(count);
|
|
|
|
- serviceUnitPersonnelList.add(serviceUnitPersonnel);
|
|
|
|
|
|
+ RegionPersonnel regionPersonnel = new RegionPersonnel();
|
|
|
|
+
|
|
|
|
+ regionPersonnel.setRegionId(regionId);
|
|
|
|
+ regionPersonnel.setRegionName(regionName);
|
|
|
|
+ regionPersonnel.setSupplierPersonnelInfo(supplierPersonnelList);
|
|
|
|
+ regionPersonnel.setCount(count);
|
|
|
|
+ regionPersonnelList.add(regionPersonnel);
|
|
}
|
|
}
|
|
- return serviceUnitPersonnelList;
|
|
|
|
|
|
+ ServiceUnitPersonnel serviceUnitPersonnel = new ServiceUnitPersonnel();
|
|
|
|
+ serviceUnitPersonnel.setSupplierIdSet(supplierIdSet);
|
|
|
|
+ serviceUnitPersonnel.setRegionPersonnelInfo(regionPersonnelList);
|
|
|
|
+ return serviceUnitPersonnel;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|