|
@@ -55,15 +55,16 @@ public class TdPostTypeController extends BaseController {
|
55
|
55
|
@ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
56
|
56
|
@ApiParam("状态") @RequestParam(value = "status", required = false) Integer status) throws Exception{
|
57
|
57
|
|
58
|
|
- IPage<TdPostType> pg = new Page<>(pageNum, pageSize);
|
59
|
|
- QueryWrapper<TdPostType> queryWrapper = new QueryWrapper<>();
|
60
|
|
- queryWrapper.eq(null != status, "status", status);
|
61
|
|
- queryWrapper.gt("status", Constants.STATUS_DELETED);
|
62
|
|
- queryWrapper.orderByDesc("sort_no");
|
63
|
|
- queryWrapper.orderByDesc("create_date");
|
64
|
|
-
|
65
|
|
- IPage<TdPostType> result = iTdPostTypeService.page(pg, queryWrapper);
|
66
|
|
- return ResponseBean.success(result);
|
|
58
|
+ IPage<TdPostType> pg = new Page<>(pageNum, pageSize);
|
|
59
|
+ QueryWrapper<TdPostType> queryWrapper = new QueryWrapper<>();
|
|
60
|
+ queryWrapper.eq(null != status, "status", status);
|
|
61
|
+ queryWrapper.eq("ma".equals(client), "status", Constants.STATUS_NORMAL);
|
|
62
|
+ queryWrapper.gt("status", Constants.STATUS_DELETED);
|
|
63
|
+ queryWrapper.orderByDesc("sort_no");
|
|
64
|
+ queryWrapper.orderByDesc("create_date");
|
|
65
|
+
|
|
66
|
+ IPage<TdPostType> result = iTdPostTypeService.page(pg, queryWrapper);
|
|
67
|
+ return ResponseBean.success(result);
|
67
|
68
|
}
|
68
|
69
|
|
69
|
70
|
/**
|