提交 9907c334 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 d38cd96f
...@@ -3,6 +3,7 @@ package com.zrqx.fg.sysuser.controller.activity; ...@@ -3,6 +3,7 @@ package com.zrqx.fg.sysuser.controller.activity;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
...@@ -19,6 +20,7 @@ import com.zrqx.core.form.sysuser.fg.activity.QueryActivityApplyForm; ...@@ -19,6 +20,7 @@ import com.zrqx.core.form.sysuser.fg.activity.QueryActivityApplyForm;
import com.zrqx.core.form.sysuser.fg.activity.UpdateActivityApplyForm; import com.zrqx.core.form.sysuser.fg.activity.UpdateActivityApplyForm;
import com.zrqx.core.model.sysuser.activity.ActivityApply; import com.zrqx.core.model.sysuser.activity.ActivityApply;
import com.zrqx.core.util.bean.BeanUtils; import com.zrqx.core.util.bean.BeanUtils;
import com.zrqx.core.util.datatype.StringUtil;
import com.zrqx.core.util.page.PageInfo; import com.zrqx.core.util.page.PageInfo;
import com.zrqx.core.util.page.PageParam; import com.zrqx.core.util.page.PageParam;
import com.zrqx.core.util.response.CallBack; import com.zrqx.core.util.response.CallBack;
...@@ -50,7 +52,7 @@ public class FgActivityApplyController { ...@@ -50,7 +52,7 @@ public class FgActivityApplyController {
@ApiOperation("报名记录分页列表") @ApiOperation("报名记录分页列表")
@GetMapping(SysUserRequestPath.PAGE) @GetMapping(SysUserRequestPath.PAGE)
public CallBack<PageInfo<ActivityApplyVo>> page(PageParam pageParam){ public CallBack<PageInfo<ActivityApplyVo>> page(PageParam pageParam){
if (pageParam.getOrderBy() != null) { if (StringUtils.isEmpty(pageParam.getOrderBy())) {
pageParam.setOrderBy(" createTime desc"); pageParam.setOrderBy(" createTime desc");
} }
return CallBack.success(activityApplyService.page(pageParam)); return CallBack.success(activityApplyService.page(pageParam));
......
...@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiOperation;
import java.util.List; import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -48,7 +49,7 @@ public class FgfgNewsFeedBackController { ...@@ -48,7 +49,7 @@ public class FgfgNewsFeedBackController {
@ApiOperation("意见反馈分页列表") @ApiOperation("意见反馈分页列表")
@GetMapping(SysUserRequestPath.PAGE) @GetMapping(SysUserRequestPath.PAGE)
public CallBack<PageInfo<NewsFeedBackVo>> page(Integer oid,PageParam pageParam){ public CallBack<PageInfo<NewsFeedBackVo>> page(Integer oid,PageParam pageParam){
if (pageParam.getOrderBy() != null) { if (StringUtils.isEmpty(pageParam.getOrderBy())) {
pageParam.setOrderBy(" createTime desc"); pageParam.setOrderBy(" createTime desc");
} }
return CallBack.success(fgNewsFeedBackService.page(oid,pageParam)); return CallBack.success(fgNewsFeedBackService.page(oid,pageParam));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论