Commit 7de6c3bb authored by libin's avatar libin

Merge branches 'master-seo-fix-feature' and 'master-ucc-feature' into base-modify

...@@ -39,4 +39,13 @@ public class GoodDataVO{ ...@@ -39,4 +39,13 @@ public class GoodDataVO{
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -168,4 +168,12 @@ public class CampsiteShopAdminDTO { ...@@ -168,4 +168,12 @@ public class CampsiteShopAdminDTO {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -79,5 +79,13 @@ public class CampsiteShopDetailDTO { ...@@ -79,5 +79,13 @@ public class CampsiteShopDetailDTO {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -216,4 +216,16 @@ public class CampsiteShop implements Serializable { ...@@ -216,4 +216,16 @@ public class CampsiteShop implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@Column(name = "img_title")
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@Column(name = "img_keyword")
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@Column(name = "img_desc")
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -175,4 +175,13 @@ public class CampsiteShopAdminVO { ...@@ -175,4 +175,13 @@ public class CampsiteShopAdminVO {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -99,4 +99,16 @@ public class CampsiteShopPageVo implements Serializable { ...@@ -99,4 +99,16 @@ public class CampsiteShopPageVo implements Serializable {
@ApiModelProperty("地址") @ApiModelProperty("地址")
private String address; private String address;
@ApiModelProperty("seo*html标签优化")
private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
<result property="hot" column="hot"/> <result property="hot" column="hot"/>
<result property="saleState" column="sale_state"/> <result property="saleState" column="sale_state"/>
<result property="alt" column="alt"/> <result property="alt" column="alt"/>
<result property="imgTitle" column="img_title"/>
<result property="imgKeyword" column="img_keyword"/>
<result property="imgDesc" column="img_desc"/>
</resultMap> </resultMap>
<!--根据类型查询全部--> <!--根据类型查询全部-->
...@@ -77,7 +80,7 @@ ...@@ -77,7 +80,7 @@
<!--首页查询全部--> <!--首页查询全部-->
<select id="findAllByHome" resultType="com.github.wxiaoqi.security.common.vo.GoodDataVO"> <select id="findAllByHome" resultType="com.github.wxiaoqi.security.common.vo.GoodDataVO">
select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`,cs.longitude,cs.latitude,cs.alt select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`,cs.longitude,cs.latitude,cs.alt,cs.img_title as `imgTitle`,cs.img_keyword as `imgKeyword`,cs.img_desc as `imgDesc`
FROM `campsite_shop` cs FROM `campsite_shop` cs
where cs.sale_state=1 and cs.is_del=0 where cs.sale_state=1 and cs.is_del=0
order by cs.hot desc order by cs.hot desc
...@@ -85,7 +88,7 @@ ...@@ -85,7 +88,7 @@
</select> </select>
<select id="findAll" resultType="com.github.wxiaoqi.security.common.vo.GoodDataVO"> <select id="findAll" resultType="com.github.wxiaoqi.security.common.vo.GoodDataVO">
select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`,cs.longitude,cs.latitude,cs.alt select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`,cs.longitude,cs.latitude,cs.alt,cs.img_title as `imgTitle`,cs.img_keyword as `imgKeyword`,cs.img_desc as `imgDesc`
FROM `campsite_shop` cs FROM `campsite_shop` cs
where cs.sale_state=1 and cs.is_del=0 where cs.sale_state=1 and cs.is_del=0
order by cs.hot desc order by cs.hot desc
...@@ -94,7 +97,7 @@ ...@@ -94,7 +97,7 @@
<!--根据id查询详情--> <!--根据id查询详情-->
<select id="findCampsiteShopDetailById" resultType="com.xxfc.platform.campsite.dto.CampsiteShopDetailDTO"> <select id="findCampsiteShopDetailById" resultType="com.xxfc.platform.campsite.dto.CampsiteShopDetailDTO">
select `name` as `name`,`province_name` as `provinceName`,`city_name` as `cityName`,`address` as `address`,`service_phone` as `phone`,`logo` as `logo`,`poster_background` as `posterBackground` , select `name` as `name`,`province_name` as `provinceName`,`city_name` as `cityName`,`address` as `address`,`service_phone` as `phone`,`logo` as `logo`,`poster_background` as `posterBackground` ,
`content` as `content`,`configure` as `configure`,`longitude` as `longitude`,`latitude` as `latitude`,`alt` from `campsite_shop` where `id`=#{id} `content` as `content`,`configure` as `configure`,`longitude` as `longitude`,`latitude` as `latitude`,`alt`,cs.img_title as `imgTitle`,cs.img_keyword as `imgKeyword`,cs.img_desc as `imgDesc` from `campsite_shop` where `id`=#{id}
</select> </select>
<!--根据查询条件分页查询--> <!--根据查询条件分页查询-->
......
...@@ -115,4 +115,12 @@ public class TourGoodDTO { ...@@ -115,4 +115,12 @@ public class TourGoodDTO {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -137,4 +137,16 @@ public class TourGood implements Serializable { ...@@ -137,4 +137,16 @@ public class TourGood implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@Column(name = "img_title")
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@Column(name = "img_keyword")
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@Column(name = "img_desc")
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -133,4 +133,12 @@ public class TourGoodDetailVo { ...@@ -133,4 +133,12 @@ public class TourGoodDetailVo {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -106,4 +106,13 @@ public class SummitActivitySaveDTO implements Serializable { ...@@ -106,4 +106,13 @@ public class SummitActivitySaveDTO implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -244,4 +244,16 @@ public class SummitActivity implements Serializable { ...@@ -244,4 +244,16 @@ public class SummitActivity implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@Column(name = "img_title")
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@Column(name = "img_keyword")
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@Column(name = "img_desc")
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -125,4 +125,13 @@ public class SummitActivityAdminVo implements Serializable { ...@@ -125,4 +125,13 @@ public class SummitActivityAdminVo implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -85,4 +85,13 @@ public class SummitActivityDetailVo implements Serializable { ...@@ -85,4 +85,13 @@ public class SummitActivityDetailVo implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -61,4 +61,13 @@ public class SummitActivityVo implements Serializable { ...@@ -61,4 +61,13 @@ public class SummitActivityVo implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -27,6 +27,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -27,6 +27,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
...@@ -65,7 +66,7 @@ public class SearchBiz { ...@@ -65,7 +66,7 @@ public class SearchBiz {
/** /**
* 业务个数 * 业务个数
*/ */
private static final int SERVICE_COUNT = 5; private static final int SERVICE_COUNT = 6;
private final ThreadPoolTaskExecutor threadPoolTaskExecutor; private final ThreadPoolTaskExecutor threadPoolTaskExecutor;
...@@ -95,8 +96,11 @@ public class SearchBiz { ...@@ -95,8 +96,11 @@ public class SearchBiz {
pageDataVOs.getData().forEach(v -> { pageDataVOs.getData().forEach(v -> {
v.setUccnCataList(initUccnCataCollect(v.getConfig())); v.setUccnCataList(initUccnCataCollect(v.getConfig()));
}); });
vehicleModelVoServiceResultVo.setTotalCount(pageDataVOs.getTotalCount());
vehicleModelVoServiceResultVo.setData(pageDataVOs.getData()); long totalCount = pageDataVOs==null?0:pageDataVOs.getTotalCount()==null?0:pageDataVOs.getTotalCount();
List<VehicleModelVo> result = pageDataVOs == null ? Collections.EMPTY_LIST : pageDataVOs.getData() == null ? Collections.EMPTY_LIST : pageDataVOs.getData();
vehicleModelVoServiceResultVo.setTotalCount(totalCount);
vehicleModelVoServiceResultVo.setData(result);
searchResultVo.put(ServiceConstant.VEHICLE, vehicleModelVoServiceResultVo); searchResultVo.put(ServiceConstant.VEHICLE, vehicleModelVoServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
...@@ -116,8 +120,11 @@ public class SearchBiz { ...@@ -116,8 +120,11 @@ public class SearchBiz {
branchCompanyFindDTO.setLimit(ServiceConstant.BRANCH_COMPANY_LIMIT); branchCompanyFindDTO.setLimit(ServiceConstant.BRANCH_COMPANY_LIMIT);
branchCompanyFindDTO.setName(keyWord); branchCompanyFindDTO.setName(keyWord);
PageDataVO<BranchCompanyListVO> branchCompanyWithPage = vehicleFeign.findBranchCompanyWithPage(branchCompanyFindDTO); PageDataVO<BranchCompanyListVO> branchCompanyWithPage = vehicleFeign.findBranchCompanyWithPage(branchCompanyFindDTO);
branchCompanyListVOServiceResultVo.setTotalCount(branchCompanyWithPage.getTotalCount());
branchCompanyListVOServiceResultVo.setData(branchCompanyWithPage.getData()); long totalCount = branchCompanyWithPage==null?0:branchCompanyWithPage.getTotalCount()==null?0:branchCompanyWithPage.getTotalCount();
List<BranchCompanyListVO> result = branchCompanyWithPage == null ? Collections.EMPTY_LIST : branchCompanyWithPage.getData() == null ? Collections.EMPTY_LIST : branchCompanyWithPage.getData();
branchCompanyListVOServiceResultVo.setTotalCount(totalCount);
branchCompanyListVOServiceResultVo.setData(result);
searchResultVo.put(ServiceConstant.BRANCH_COMPANY, branchCompanyListVOServiceResultVo); searchResultVo.put(ServiceConstant.BRANCH_COMPANY, branchCompanyListVOServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
...@@ -134,8 +141,10 @@ public class SearchBiz { ...@@ -134,8 +141,10 @@ public class SearchBiz {
ServiceResultVo<TourGood> tourGoodServiceResultVo = new ServiceResultVo<>(); ServiceResultVo<TourGood> tourGoodServiceResultVo = new ServiceResultVo<>();
ObjectRestResponse<PageDataVO<TourGood>> goodList = tourFeign.getGoodList(1, ServiceConstant.TOUR_LIMIT, null, keyWord); ObjectRestResponse<PageDataVO<TourGood>> goodList = tourFeign.getGoodList(1, ServiceConstant.TOUR_LIMIT, null, keyWord);
PageDataVO<TourGood> data = goodList.getData(); PageDataVO<TourGood> data = goodList.getData();
tourGoodServiceResultVo.setData(data.getData()); long totalCount = data==null?0:data.getTotalCount()==null?0:data.getTotalCount();
tourGoodServiceResultVo.setTotalCount(data.getTotalCount()); List<TourGood> result = data == null ? Collections.EMPTY_LIST : data.getData() == null ? Collections.EMPTY_LIST : data.getData();
tourGoodServiceResultVo.setData(result);
tourGoodServiceResultVo.setTotalCount(totalCount);
searchResultVo.put(ServiceConstant.TROUR, tourGoodServiceResultVo); searchResultVo.put(ServiceConstant.TROUR, tourGoodServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
...@@ -158,8 +167,10 @@ public class SearchBiz { ...@@ -158,8 +167,10 @@ public class SearchBiz {
campsiteShopFindDTO.setName(keyWord); campsiteShopFindDTO.setName(keyWord);
ObjectRestResponse<PageDataVO<CampsiteShopPageVo>> campsiteShopPageForUncc = campsiteFeign.findCampsiteShopPageForUncc(campsiteShopFindDTO); ObjectRestResponse<PageDataVO<CampsiteShopPageVo>> campsiteShopPageForUncc = campsiteFeign.findCampsiteShopPageForUncc(campsiteShopFindDTO);
PageDataVO<CampsiteShopPageVo> data = campsiteShopPageForUncc.getData(); PageDataVO<CampsiteShopPageVo> data = campsiteShopPageForUncc.getData();
campsiteShopPageVoServiceResultVo.setData(data.getData()); long totalCount = data==null?0:data.getTotalCount()==null?0:data.getTotalCount();
campsiteShopPageVoServiceResultVo.setTotalCount(data.getTotalCount()); List<CampsiteShopPageVo> result = data == null ? Collections.EMPTY_LIST : data.getData() == null ? Collections.EMPTY_LIST : data.getData();
campsiteShopPageVoServiceResultVo.setData(result);
campsiteShopPageVoServiceResultVo.setTotalCount(totalCount);
searchResultVo.put(ServiceConstant.CAMPSITE, campsiteShopPageVoServiceResultVo); searchResultVo.put(ServiceConstant.CAMPSITE, campsiteShopPageVoServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
...@@ -175,8 +186,10 @@ public class SearchBiz { ...@@ -175,8 +186,10 @@ public class SearchBiz {
try { try {
ServiceResultVo<SummitActivityVo> activityVoServiceResultVo = new ServiceResultVo<>(); ServiceResultVo<SummitActivityVo> activityVoServiceResultVo = new ServiceResultVo<>();
PageDataVO<SummitActivityVo> summitActivityWithPage = summitActivityBiz.findSummitActivityWithPage(1, ServiceConstant.ACTIVITY_LIMIT, null, keyWord); PageDataVO<SummitActivityVo> summitActivityWithPage = summitActivityBiz.findSummitActivityWithPage(1, ServiceConstant.ACTIVITY_LIMIT, null, keyWord);
activityVoServiceResultVo.setTotalCount(summitActivityWithPage.getTotalCount()); long totalCount = summitActivityWithPage==null?0:summitActivityWithPage.getTotalCount()==null?0:summitActivityWithPage.getTotalCount();
activityVoServiceResultVo.setData(summitActivityWithPage.getData()); List<SummitActivityVo> result = summitActivityWithPage == null ? Collections.EMPTY_LIST : summitActivityWithPage.getData() == null ? Collections.EMPTY_LIST : summitActivityWithPage.getData();
activityVoServiceResultVo.setTotalCount(totalCount);
activityVoServiceResultVo.setData(result);
searchResultVo.put(ServiceConstant.ACTIVITY, activityVoServiceResultVo); searchResultVo.put(ServiceConstant.ACTIVITY, activityVoServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
...@@ -192,7 +205,8 @@ public class SearchBiz { ...@@ -192,7 +205,8 @@ public class SearchBiz {
try { try {
ServiceResultVo<Article> articleServiceResultVo = new ServiceResultVo<>(); ServiceResultVo<Article> articleServiceResultVo = new ServiceResultVo<>();
PageInfo articleList = articleBiz.getArticleList(1, ServiceConstant.NEWS_LIMIT, 1, keyWord); PageInfo articleList = articleBiz.getArticleList(1, ServiceConstant.NEWS_LIMIT, 1, keyWord);
articleServiceResultVo.setData(articleList.getList()); List<Article> result = articleList == null ? Collections.EMPTY_LIST : articleList.getList() == null ? Collections.EMPTY_LIST : articleList.getList();
articleServiceResultVo.setData(result);
articleServiceResultVo.setTotalCount(articleList.getTotal()); articleServiceResultVo.setTotalCount(articleList.getTotal());
searchResultVo.put(ServiceConstant.NEWS, articleServiceResultVo); searchResultVo.put(ServiceConstant.NEWS, articleServiceResultVo);
} catch (Exception ex) { } catch (Exception ex) {
......
...@@ -2,14 +2,14 @@ package com.xxfc.platform.uccn.rest; ...@@ -2,14 +2,14 @@ package com.xxfc.platform.uccn.rest;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.uccn.biz.SearchBiz; import com.xxfc.platform.uccn.biz.SearchBiz;
import com.xxfc.platform.uccn.comstnt.ServiceConstant;
import com.xxfc.platform.uccn.vo.SearchResultVo; import com.xxfc.platform.uccn.vo.SearchResultVo;
import com.xxfc.platform.vehicle.pojo.VehicleModelQueryCondition;
import com.xxfc.platform.vehicle.pojo.dto.BranchCompanyFindDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/** /**
* @author libin * @author libin
...@@ -23,11 +23,49 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -23,11 +23,49 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "官网*综合搜索") @Api(tags = "官网*综合搜索")
public class SearchController { public class SearchController {
private final SearchBiz searchBiz; private final SearchBiz searchBiz;
private final VehicleModelController vehicleModelController;
private final GwTourController gwTourController;
private final CampsiteUccnController campsiteUccnController;
private final ArticleController articleController;
private final SummitActivityController summitActivityController;
private final BranchCompanyController branchCompanyController;
@GetMapping @GetMapping
public ObjectRestResponse<SearchResultVo> search(@RequestParam(value = "keyword",required = false) String keyWord ){ public ObjectRestResponse search(@RequestParam(value = "type", required = false,defaultValue = "") String type,
SearchResultVo searchResultVo = searchBiz.searchWithKeyWords(keyWord); @RequestParam(value = "keyword", required = false) String keyWord,
return ObjectRestResponse.succ(searchResultVo); @RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
@RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit) {
switch (type) {
case ServiceConstant.VEHICLE:
VehicleModelQueryCondition vehicleModelQueryCondition = new VehicleModelQueryCondition();
vehicleModelQueryCondition.setPage(page);
vehicleModelQueryCondition.setLimit(limit);
vehicleModelQueryCondition.setVehicleName(keyWord);
return vehicleModelController.findVehicleModelPageUnauthfind(vehicleModelQueryCondition);
case ServiceConstant.BRANCH_COMPANY:
BranchCompanyFindDTO branchCompanyFindDTO = new BranchCompanyFindDTO();
branchCompanyFindDTO.setPage(page);
branchCompanyFindDTO.setLimit(limit);
branchCompanyFindDTO.setName(keyWord);
return branchCompanyController.listBranchCompanyWithPage(branchCompanyFindDTO);
case ServiceConstant.TROUR:
return gwTourController.getGoodList(page, limit, null, keyWord);
case ServiceConstant.CAMPSITE:
return campsiteUccnController.findCampsiteShopPageByType(null, page, limit, keyWord);
case ServiceConstant.NEWS:
return articleController.getArticleList(page, limit, null, keyWord);
case ServiceConstant.ACTIVITY:
return summitActivityController.findSummitActivityWithPage(page, limit, null, keyWord);
default:
SearchResultVo searchResultVo = searchBiz.searchWithKeyWords(keyWord);
return ObjectRestResponse.succ(searchResultVo);
}
} }
} }
...@@ -169,4 +169,16 @@ public class VehicleModel implements Serializable { ...@@ -169,4 +169,16 @@ public class VehicleModel implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@Column(name = "img_title")
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@Column(name = "img_keyword")
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@Column(name = "img_desc")
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
...@@ -56,4 +56,13 @@ public class VehicleModelVo extends VehicleModel implements Serializable { ...@@ -56,4 +56,13 @@ public class VehicleModelVo extends VehicleModel implements Serializable {
@ApiModelProperty("seo*html标签优化") @ApiModelProperty("seo*html标签优化")
private String alt; private String alt;
@ApiModelProperty("seo*html标签优化")
private String imgTitle;
@ApiModelProperty("seo*html标签优化")
private String imgKeyword;
@ApiModelProperty("seo*html标签优化")
private String imgDesc;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment