提交 c489b5ea 作者: han

查询课程列表——新增查询条件

上级 846c54b6
......@@ -29,6 +29,8 @@ public class CurriculumQo implements Serializable {
private Integer twoCourseId;
@ApiModelProperty(value = "课程属性: 0:免费 1:积分兑换 2:付费 ")
private Integer courseAttribute;
@ApiModelProperty(value = "是否热门: 0:否 1:是 ")
private Integer isHot;
@ApiModelProperty(value = "页码", required = true)
@NotNull(message = "页码不能为空", groups = { Page.class })
@Min(value = 1, groups = Page.class)
......
......@@ -176,6 +176,9 @@
<if test="courseAttribute != null">
and ci.course_attribute = #{courseAttribute}
</if>
<if test="isHot != null">
and ci.is_hot = #{isHot}
</if>
</where>
</select>
<select id="listPageCurriculumInfo" resultType="com.mmc.csf.release.entity.curriculum.CurriculumInfoDO">
......@@ -195,6 +198,9 @@
<if test="courseAttribute != null">
and ci.course_attribute = #{courseAttribute}
</if>
<if test="isHot != null">
and ci.is_hot = #{isHot}
</if>
</where>
order by ci.create_time desc
LIMIT #{pageNo},#{pageSize}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论