|
@@ -95,17 +95,20 @@ public class ProEconAlarmPlanController {
|
|
|
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页号", required = true, dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageNum", value = "页号", required = true, dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页显示多少行", required = true, dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页显示多少行", required = true, dataType = "Integer", paramType = "query"),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页显示多少行", required = true, dataType = "Integer", paramType = "query"),
|
|
|
|
+ @ApiImplicitParam(name = "types", value = "名称", required = false, dataType = "string", paramType = "query"),
|
|
@ApiImplicitParam(name = "name", value = "名称", required = false, dataType = "string", paramType = "query")
|
|
@ApiImplicitParam(name = "name", value = "名称", required = false, dataType = "string", paramType = "query")
|
|
})
|
|
})
|
|
|
|
|
|
public AjaxResult queryByPage(HttpServletRequest request,
|
|
public AjaxResult queryByPage(HttpServletRequest request,
|
|
@RequestParam(value = "pageNum") Integer pageNum,
|
|
@RequestParam(value = "pageNum") Integer pageNum,
|
|
@RequestParam(value = "pageSize") Integer pageSize,
|
|
@RequestParam(value = "pageSize") Integer pageSize,
|
|
|
|
+ @RequestParam(value = "types", required = false) String types,
|
|
@RequestParam(value = "name", required = false) String name
|
|
@RequestParam(value = "name", required = false) String name
|
|
) {
|
|
) {
|
|
Page<ProEconAlarmPlan> page = new Page(pageNum, pageSize);
|
|
Page<ProEconAlarmPlan> page = new Page(pageNum, pageSize);
|
|
|
|
|
|
- IPage<ProEconAlarmPlan> pageResult = proEconAlarmPlanService.pageQueryAll(page, name);
|
|
|
|
|
|
+ IPage<ProEconAlarmPlan> pageResult = proEconAlarmPlanService.pageQueryAll(page, name,types);
|
|
|
|
|
|
|
|
|
|
if (StringUtils.notEmp(pageResult)) {
|
|
if (StringUtils.notEmp(pageResult)) {
|