Commit a6f07ea7 authored by unset's avatar unset

添加通知信息

parent 09298915
...@@ -12,6 +12,6 @@ import lombok.Data; ...@@ -12,6 +12,6 @@ import lombok.Data;
@Data @Data
public class NewsInfoDto extends PageParam { public class NewsInfoDto extends PageParam {
Integer typeId; Integer typeId;
Integer sortType; Integer sortType = 3;
Integer status; Integer status;
} }
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
<if test="sortType == 1"> <if test="sortType == 1">
order by ni.rank order by ni.rank
</if> </if>
<if test="sortType != 1"> <if test="sortType == 2">
order by ni.rank DESC
</if>
<if test="sortType != 3">
order by ni.upd_time DESC order by ni.upd_time DESC
</if> </if>
</select> </select>
......
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