|
|
|
|
5
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
5
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
6
|
import com.shigongli.common.BaseController;
|
6
|
import com.shigongli.common.BaseController;
|
7
|
import com.shigongli.common.ResponseBean;
|
7
|
import com.shigongli.common.ResponseBean;
|
|
|
8
|
+import com.shigongli.common.StringUtils;
|
8
|
import com.shigongli.constants.StatusConstant;
|
9
|
import com.shigongli.constants.StatusConstant;
|
9
|
import io.swagger.annotations.Api;
|
10
|
import io.swagger.annotations.Api;
|
10
|
import io.swagger.annotations.ApiOperation;
|
11
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
50
|
@RequestMapping(value="/mp/taMateTag",method= RequestMethod.GET)
|
51
|
@RequestMapping(value="/mp/taMateTag",method= RequestMethod.GET)
|
51
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
52
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
52
|
public ResponseBean taMateTagList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
53
|
public ResponseBean taMateTagList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
53
|
- @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
|
|
|
|
|
54
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
|
55
|
+ @ApiParam("分组") @RequestParam(value ="groupId", required = false) String groupId
|
|
|
56
|
+ ) throws Exception{
|
54
|
|
57
|
|
55
|
IPage<TaMateTag> pg = new Page<>(pageNum, pageSize);
|
58
|
IPage<TaMateTag> pg = new Page<>(pageNum, pageSize);
|
56
|
QueryWrapper<TaMateTag> queryWrapper = new QueryWrapper<>();
|
59
|
QueryWrapper<TaMateTag> queryWrapper = new QueryWrapper<>();
|
|
|
60
|
+ queryWrapper.eq(!StringUtils.isEmpty(groupId), "groupId", groupId);
|
57
|
queryWrapper.eq("status", StatusConstant.NORMAL);
|
61
|
queryWrapper.eq("status", StatusConstant.NORMAL);
|
58
|
queryWrapper.orderByDesc("create_date");
|
62
|
queryWrapper.orderByDesc("create_date");
|
59
|
|
63
|
|