Browse Source

1、查询地点参数类型修改

master
Augcl 7 months ago
parent
commit
f0dea0302b
3 changed files with 6 additions and 5 deletions
  1. +3
    -3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/travelController/IndexApiController.java
  2. +1
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/IndexApiService.java
  3. +2
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java

+ 3
- 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/travelController/IndexApiController.java View File

@ -68,10 +68,10 @@ public class IndexApiController {
}
//根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿
@ApiOperation(value="小程序-根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿", notes="1-景区,2-厕所,3-美食店铺,4-民宿")
@ApiOperation(value="小程序-根据景区id获取该景区下的地点列表:景点/厕所/美食店铺/民宿", notes="小程序-根据景区id获取该景区下的地点列表:景点/厕所/美食店铺/民宿")
@RequestMapping(value = "/querySpotList", method = {RequestMethod.GET})
public Result<?> querySpotList(String areaId, int spotType){
return indexApiService.querySpotList(areaId, spotType);
public Result<?> querySpotList(String areaId, String categoryId){
return indexApiService.querySpotList(areaId, categoryId);
}
//根据角色类型获取角色信息列表-讲解员/达人/摄影师


+ 1
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/IndexApiService.java View File

@ -24,7 +24,7 @@ public interface IndexApiService {
public Result<?> queryAreaList();
//根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿
public Result<?> querySpotList(String areaId, int spotType);
public Result<?> querySpotList(String areaId, String categoryId);
//根据角色类型获取角色信息列表-讲解员/达人/摄影师
public Result<?> queryRoleInfoList(String roleType, String level, String spot);


+ 2
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java View File

@ -127,10 +127,11 @@ public class IndexApiServiceImpl implements IndexApiService {
//根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿
@Override
public Result<?> querySpotList(String areaId, int spotType) {
public Result<?> querySpotList(String areaId, String categoryId) {
List<TravelSpot> list = travelSpotService
.lambdaQuery()
.eq(TravelSpot::getAreaId, areaId)
.eq(TravelSpot::getCategoryId, categoryId)
.list();
return Result.OK("景点列表", list);


Loading…
Cancel
Save