fix:licenseList
This commit is contained in:
@@ -13,7 +13,7 @@ public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
|
||||
|
||||
List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request,
|
||||
@Param("userId") String userId,
|
||||
@Param("fightRegions") List<RegionDO> fightRegions);
|
||||
@Param("fightRegions") List<String> fightRegions);
|
||||
|
||||
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);
|
||||
|
||||
|
||||
@@ -174,11 +174,13 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
return new PageInfo<>();
|
||||
}
|
||||
List<RegionDO> fightRegion = regionDao.getFightRegionByRegionIds(regionIds);
|
||||
List<String> fightRegionIds = fightRegion.stream().map(RegionDO::getRegionId).collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(fightRegion)) {
|
||||
return new PageInfo<>();
|
||||
}
|
||||
|
||||
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||
licenseListResponses = applyLicenseMapper.licenseList(request, null, fightRegion);
|
||||
licenseListResponses = applyLicenseMapper.licenseList(request, null, fightRegionIds);
|
||||
} else {
|
||||
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||
licenseListResponses = applyLicenseMapper.licenseList(request, user.getUserId(), null);
|
||||
|
||||
Reference in New Issue
Block a user