|
|
@ -74,16 +74,26 @@ public class IndexApiServiceImpl implements IndexApiService { |
|
|
|
public Result<?> queryBannerList(String bannerCategoryId) { |
|
|
|
|
|
|
|
//1-轮播图_首页 |
|
|
|
switch (bannerCategoryId){ |
|
|
|
case "1": bannerCategoryId = "1836222983394902017"; |
|
|
|
break; |
|
|
|
if(null != bannerCategoryId){ |
|
|
|
switch (bannerCategoryId){ |
|
|
|
case "0": bannerCategoryId = "1836222983394902017"; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
List<TravelImage> list = travelImageService |
|
|
|
.lambdaQuery() |
|
|
|
.eq(TravelImage::getCategoryId, bannerCategoryId) |
|
|
|
.orderByAsc(TravelImage::getOrderId) |
|
|
|
.list(); |
|
|
|
List<TravelImage> list = null; |
|
|
|
if(null != bannerCategoryId){ |
|
|
|
list = travelImageService |
|
|
|
.lambdaQuery() |
|
|
|
.eq(TravelImage::getCategoryId, bannerCategoryId) |
|
|
|
.orderByAsc(TravelImage::getOrderId) |
|
|
|
.list(); |
|
|
|
}else { |
|
|
|
list = travelImageService |
|
|
|
.lambdaQuery() |
|
|
|
.orderByAsc(TravelImage::getOrderId) |
|
|
|
.list(); |
|
|
|
} |
|
|
|
|
|
|
|
return Result.OK("轮播图列表", list); |
|
|
|
} |
|
|
@ -116,14 +126,14 @@ public class IndexApiServiceImpl implements IndexApiService { |
|
|
|
@Override |
|
|
|
public Result<?> queryArticleListByType(String articleType, PageBean pageBean) { |
|
|
|
|
|
|
|
//1-申遗历程 2-申遗缘由 3-遗产价值 |
|
|
|
//0-申遗历程 1-申遗缘由 2-遗产价值 |
|
|
|
if(null != articleType){ |
|
|
|
switch (articleType){ |
|
|
|
case "1": articleType = "1836253741344075777"; |
|
|
|
case "0": articleType = "1836253741344075777"; |
|
|
|
break; |
|
|
|
case "2": articleType = "1836253813855203330"; |
|
|
|
case "1": articleType = "1836253813855203330"; |
|
|
|
break; |
|
|
|
case "3": articleType = "1836253884822827009"; |
|
|
|
case "2": articleType = "1836253884822827009"; |
|
|
|
break; |
|
|
|
default: articleType = null; |
|
|
|
} |
|
|
@ -187,33 +197,33 @@ public class IndexApiServiceImpl implements IndexApiService { |
|
|
|
@Override |
|
|
|
public Result<?> querySpotList(String areaId, String categoryId, PageBean pageBean) { |
|
|
|
|
|
|
|
//1-瓷都镇区 2-湖田片区 3-高岭片区 4-瑶里片区 5-蛟潭片区 |
|
|
|
//0-瓷都镇区 1-湖田片区 2-高岭片区 3-瑶里片区 4-蛟潭片区 |
|
|
|
if(null != areaId){ |
|
|
|
switch (areaId){ |
|
|
|
case "1": areaId = "1835255148875296770"; |
|
|
|
case "0": areaId = "1835255148875296770"; |
|
|
|
break; |
|
|
|
case "2": areaId = "1835296270515376130"; |
|
|
|
case "1": areaId = "1835296270515376130"; |
|
|
|
break; |
|
|
|
case "3": areaId = "1835296379189792769"; |
|
|
|
case "2": areaId = "1835296379189792769"; |
|
|
|
break; |
|
|
|
case "4": areaId = "1835296552271941634"; |
|
|
|
case "3": areaId = "1835296552271941634"; |
|
|
|
break; |
|
|
|
case "5": areaId = "1835296680814776322"; |
|
|
|
case "4": areaId = "1835296680814776322"; |
|
|
|
break; |
|
|
|
default: areaId = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//1-景点 2-美食店铺 3-民宿 4-厕所 |
|
|
|
//0-景点 1-美食店铺 2-民宿 3-厕所 |
|
|
|
if(null != categoryId){ |
|
|
|
switch (categoryId){ |
|
|
|
case "1": categoryId = "1835297869300174849"; |
|
|
|
case "0": categoryId = "1835297869300174849"; |
|
|
|
break; |
|
|
|
case "2": categoryId = "1835298116864774146"; |
|
|
|
case "1": categoryId = "1835298116864774146"; |
|
|
|
break; |
|
|
|
case "3": categoryId = "1835298190902628353"; |
|
|
|
case "2": categoryId = "1835298190902628353"; |
|
|
|
break; |
|
|
|
case "4": categoryId = "1835297932831297538"; |
|
|
|
case "3": categoryId = "1835297932831297538"; |
|
|
|
break; |
|
|
|
default: categoryId = null; |
|
|
|
} |
|
|
@ -250,16 +260,16 @@ public class IndexApiServiceImpl implements IndexApiService { |
|
|
|
@Override |
|
|
|
public Result<?> queryRoleInfoList(String roleId, String level, String spot, PageBean pageBean) { |
|
|
|
|
|
|
|
//roleId: 1-讲解员,2-达人,3-摄影师 |
|
|
|
//roleId: 0-讲解员,1-达人,2-摄影师 |
|
|
|
if(null != roleId){ |
|
|
|
switch (roleId){ |
|
|
|
case "1": |
|
|
|
case "0": |
|
|
|
roleId = "1835298310465458178"; |
|
|
|
break; |
|
|
|
case "2": |
|
|
|
case "1": |
|
|
|
roleId = "1835298364374847490"; |
|
|
|
break; |
|
|
|
case "3": |
|
|
|
case "2": |
|
|
|
roleId = "1835298430967812098"; |
|
|
|
break; |
|
|
|
default: roleId = null; |
|
|
|