提交 ea6c7437 作者: 张小凤

DynamicMapper.xml(update)

上级 b00eafba
......@@ -38,6 +38,9 @@ public class ForumGambitQO {
@ApiModelProperty(value = "话题属性 1普通 2热门 3推荐",example = "1")
private Integer gambitProperty;
@ApiModelProperty(value = "话题gambitId",example = "1")
private Integer gambitId;
/**
* 初始化起始查询行并返回当前页
......
......@@ -193,6 +193,9 @@
<if test="gambitProperty!=null">
and gambit_property=#{gambitProperty}
</if>
<if test="gambitId!=null">
and id=#{gambitId}
</if>
ORDER BY gambit_property desc,create_time DESC
limit #{pageNo}, #{pageSize}
</select>
......@@ -205,7 +208,9 @@
<if test="gambitProperty!=null">
and gambit_property=#{gambitProperty}
</if>
<if test="gambitId!=null">
and id=#{gambitId}
</if>
ORDER BY gambit_property,create_time DESC
</select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论