Commit 61601aed authored by hanfeng's avatar hanfeng

修改订单统计

parent c24f8704
package com.xxfc.platform.tour.comstnt;
public enum WebsiteTourType {
POPULAR(1,"热门路线"),CHARACTERISTIC(2,"特色旅游"),
NEW(3,"新开辟路线"),RECOMMEND(4,"推荐路线");
private Integer code;
private String msg;
WebsiteTourType(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public Integer getCode() {
return code;
}
public String getMsg() {
return msg;
}
}
......@@ -322,7 +322,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
*/
public List<GoodDataVO> getAllByHome(Integer page, Integer limit){
return mapper.findAllByHome((page-1)*limit,limit);
};
}
/**
* 获取指定数量的随机旅游路线
......@@ -345,6 +345,10 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
}
return ObjectRestResponse.succ(resultList);
}
public List homePageTour(Integer type) {
mapper.getList();
}
}
......@@ -36,4 +36,6 @@ public interface TourGoodMapper extends Mapper<TourGood> {
* @return
*/
List<GoodDataVO> findAllByHome(@Param("start") Integer start, @Param("size") Integer size);
void getList();
}
package com.xxfc.platform.tour.rest.officialWebsite;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.tour.biz.TourGoodBiz;
import com.xxfc.platform.tour.comstnt.WebsiteTourType;
import com.xxfc.platform.tour.entity.TourGood;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("website")
@IgnoreClientToken
public class OfficialWebsiteTourController extends BaseController<TourGoodBiz, TourGood> {
@GetMapping("homePage/tour/{type}")
public ObjectRestResponse homePageTour(@PathVariable Integer type) throws Exception{
baseBiz.homePageTour(type);
return null;
}
}
\ No newline at end of file
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