Browse Source

直播课添加声部搜索

liujunchi 3 years ago
parent
commit
5606640e5a

+ 1 - 1
cooleshow-mall/mall-portal/src/main/java/com/yonge/cooleshow/portal/dto/ProductSearch.java

@@ -29,7 +29,7 @@ public class ProductSearch {
     @ApiModelProperty("")
     private Integer pageSize= 5;
 
-    @ApiModelProperty("")
+    @ApiModelProperty("1->按新品;2->按销量;3->价格从低到高;4->价格从高到低")
     private Integer sort = 0;
 
     public String getKeyword() {

+ 3 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseGroupMapper.xml

@@ -138,6 +138,9 @@
             <if test="param.auditVersion != null ">
                 and #{param.auditVersion} = b.audit_version_
             </if>
+            <if test="param.subjectId != null ">
+                and #{param.subjectId} = b.subject_id_
+            </if>
         </where>
     </select>
 

+ 1 - 0
cooleshow-user/user-student/src/main/java/com/yonge/cooleshow/student/controller/StudentCourseGroupController.java

@@ -48,6 +48,7 @@ public class StudentCourseGroupController extends BaseController {
             @ApiImplicitParam(name = "search", dataType = "String", value = "关键字"),
             @ApiImplicitParam(name = "groupStatus", dataType = "String", value = "课程组状态  ING(进行中)  NOT_SALE(未开售,未上架) APPLY(报名中,销售中) COMPLETE(已完成)"),
             @ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
+            @ApiImplicitParam(name = "subjectId", dataType = "Integer", value = "声部id"),
             @ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
             @ApiImplicitParam(name = "version", dataType = "String", value = "版本"),
             @ApiImplicitParam(name = "platform", dataType = "Integer", value = "平台"),