| | |
| | | |
| | | @RequestMapping("searchGoods") |
| | | @ResponseBody |
| | | public String searchGoods(int page, String searchInfo) { |
| | | public String searchGoods(int page,int classType, String searchInfo) { |
| | | SearchFilter sf = new Gson().fromJson(searchInfo, SearchFilter.class); |
| | | int pageSize=30; |
| | | |
| | | List<FirstOrderSubInfo> list= firstOrderSubInfoService.listAll(page,20); |
| | | List<FirstOrderSubInfo> list= firstOrderSubInfoService.listAll(page,pageSize); |
| | | List<SDLJGoodsInfoVO> goodsList = new ArrayList<>(); |
| | | int index=(page-1)*pageSize; |
| | | for (FirstOrderSubInfo info:list) { |
| | | index++; |
| | | SDLJGoodsInfoVO vo=new SDLJGoodsInfoVO(); |
| | | vo.setIndex(index); |
| | | vo.setActualPrice("12.00"); |
| | | vo.setCommission("2.00"); |
| | | vo.setCommissionRate("20%"); |