@@ -60,6 +60,11 @@ public class Information extends BaseEntity{
*/
private Boolean top;
+ /**
+ * 排序
+ */
+ private Integer sorted;
+
/**
* true 存在 || false 删除
@@ -84,6 +84,9 @@ public class InformationView {
@DbField("i.top")
+ @DbField("i.sorted")
* 推荐商品id
@@ -14,7 +14,7 @@
and recommend is true
</otherwise>
</choose>
- order by case when top is true then 1 else 2 end,created_time desc
+ order by sorted, case when top is true then 1 else 2 end,created_time desc
</select>
<select id="getInformationByTitle" resultType="com.cyksj.model.views.InformationListView">