|
|
|
@@ -20,8 +20,10 @@ import com.accompany.common.utils.DateTimeUtil;
|
|
|
|
|
import com.accompany.core.exception.AdminServiceException;
|
|
|
|
|
import com.accompany.core.exception.ServiceException;
|
|
|
|
|
import com.accompany.core.model.PartitionInfo;
|
|
|
|
|
import com.accompany.core.model.RegionInfo;
|
|
|
|
|
import com.accompany.core.model.Users;
|
|
|
|
|
import com.accompany.core.service.partition.PartitionInfoService;
|
|
|
|
|
import com.accompany.core.service.region.RegionInfoService;
|
|
|
|
|
import com.accompany.core.vo.BaseResponseVO;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
@@ -60,6 +62,8 @@ public class GuildUsdBillRecordAdminService {
|
|
|
|
|
private GuildMemberDiamondStatisticsService guildMemberDiamondStatisticsService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private PartitionInfoService partitionInfoService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private RegionInfoService regionInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Page<AnchorSalaryBillAdminVo> chargeAgentList(BasePageParams basePageParams, Long chargeAgentErbanNo, Long erbanNo) {
|
|
|
|
@@ -188,12 +192,14 @@ public class GuildUsdBillRecordAdminService {
|
|
|
|
|
private void fillAgencyInfo(List<AnchorSalaryBillAdminVo> records) {
|
|
|
|
|
Set<Integer> hallIds = records.stream().map(AnchorSalaryBillAdminVo::getHallId).collect(Collectors.toSet());
|
|
|
|
|
Map<Integer, AgencyOwnerVo> agencyOwnerMapByHallIds = guildService.getAgencyOwnerMapByHallIds(hallIds);
|
|
|
|
|
Map<Integer, String> regionNameMap = regionInfoService.getRegionName();
|
|
|
|
|
|
|
|
|
|
for (AnchorSalaryBillAdminVo record : records) {
|
|
|
|
|
AgencyOwnerVo agencyOwnerVo = agencyOwnerMapByHallIds.get(record.getHallId());
|
|
|
|
|
if (agencyOwnerVo != null){
|
|
|
|
|
record.setAgencyOwnerErbanNo(agencyOwnerVo.getErbanNo());
|
|
|
|
|
record.setAgencyId(agencyOwnerVo.getAgencyId());;
|
|
|
|
|
record.setAgencyId(agencyOwnerVo.getAgencyId());
|
|
|
|
|
record.setAgencyOwnerRegionDesc(regionNameMap.get(agencyOwnerVo.getRegionId()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|