| | |
| | | if(Constants.equalsInteger(model.getSortInfo(),Constants.ZERO)){ |
| | | wrapper.orderByDesc("t.CREATE_DATE"); |
| | | }else if(Constants.equalsInteger(model.getSortInfo(),Constants.ONE)){ |
| | | wrapper.orderByAsc("realSaleNum"); |
| | | wrapper.orderByAsc("(realSaleNum + t.SALENUM)"); |
| | | }else if(Constants.equalsInteger(model.getSortInfo(),Constants.TWO)){ |
| | | wrapper.orderByAsc("t.price"); |
| | | wrapper.orderByAsc("minPrice"); |
| | | }else if(Constants.equalsInteger(model.getSortInfo(),Constants.THREE)){ |
| | | wrapper.orderByDesc("realSaleNum"); |
| | | wrapper.orderByDesc("(realSaleNum + t.SALENUM)"); |
| | | }else if(Constants.equalsInteger(model.getSortInfo(),Constants.FOUR)){ |
| | | wrapper.orderByDesc("t.price"); |
| | | wrapper.orderByDesc("minPrice"); |
| | | } |
| | | } |
| | | IPage<Goods> page = |