Commit b6b4f765 authored by luzhuang's avatar luzhuang

排序

parent 2d8cd3c4
...@@ -41,8 +41,7 @@ public class BDiscussController extends PaginationController<BDiscuss> { ...@@ -41,8 +41,7 @@ public class BDiscussController extends PaginationController<BDiscuss> {
@ApiOperation(value="801 添加", notes="添加") @ApiOperation(value="801 添加", notes="添加")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "课程id 修改章节时传入", required = true, dataType = "varchar"), @ApiImplicitParams({@ApiImplicitParam(name = "lessonId", value = "课程ID", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "lessonId", value = "课程ID", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "content", value = "评论内容", required = true, dataType = "varchar"), @ApiImplicitParam(name = "content", value = "评论内容", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "pid", value = "上一级(评论别人的评论需要)", required = true, dataType = "varchar"), @ApiImplicitParam(name = "pid", value = "上一级(评论别人的评论需要)", required = true, dataType = "varchar"),
@ApiImplicitParam(name = "studentId", value = "评论人id", required = true, dataType = "varchar")}) @ApiImplicitParam(name = "studentId", value = "评论人id", required = true, dataType = "varchar")})
......
...@@ -34,7 +34,7 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> { ...@@ -34,7 +34,7 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
" ORDER BY T.person_id " + " ORDER BY T.person_id " +
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '1'.toString() \"> ,T.type asc,CAST(`value` AS UNSIGNED) desc </if> "+ "<if test=\" valueSort !=null and valueSort != '' and valueSort == '1'.toString() \"> ,T.type asc,CAST(`value` AS UNSIGNED) desc </if> "+
"<if test=\" valueSort !=null and valueSort != '' and valueSort == '0'.toString() \"> ,T.type desc,CAST(`value` AS UNSIGNED) desc </if> "+ "<if test=\" valueSort !=null and valueSort != '' and valueSort == '0'.toString() \"> ,T.type desc,CAST(`value` AS UNSIGNED) asc </if> "+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '1'.toString() \"> ,T.create_date asc</if> "+ "<if test=\" dateSort !=null and dateSort != '' and dateSort == '1'.toString() \"> ,T.create_date asc</if> "+
"<if test=\" dateSort !=null and dateSort != '' and dateSort == '0'.toString() \"> ,T.create_date desc</if> " + "<if test=\" dateSort !=null and dateSort != '' and dateSort == '0'.toString() \"> ,T.create_date desc</if> " +
"</script>") "</script>")
......
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