| | |
| | | wrapper3.le(GoodsSku::getYears, parseTime7) |
| | | .ge(GoodsSku::getYears, parseTime15); |
| | | } |
| | | if (homeGoodsSkuDTO.getSort()==1){ |
| | | wrapper3.last(" ORDER BY IF(isnull(sort_num),1,0), sort_num DESC"); |
| | | }else{ |
| | | wrapper3.last(",IF(isnull(sort_num),1,0), sort_num DESC"); |
| | | } |
| | | wrapper3.orderByDesc(GoodsSku::getCreateTime); |
| | | wrapper3.last(",IF(isnull(sort_num),1,0), sort_num DESC"); |
| | | |
| | | |
| | | Page<GoodsSku> page1 = this.page(page, wrapper3); |
| | | PageDTO<HomeGoodsSkuListVO> articleCommentsVOPageDTO = PageDTO.of(page1, HomeGoodsSkuListVO.class); |
| | | return articleCommentsVOPageDTO; |