Browse Source

预警列表查询接口分页

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
8f39339aee
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/WarningServiceImpl.java

+ 5
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/WarningServiceImpl.java View File

@@ -5,6 +5,7 @@ import com.tuoheng.admin.entity.query.WarningQuery;
import com.tuoheng.admin.entity.request.warning.QueryWarningListRequest;
import com.tuoheng.admin.mapper.WarningMapper;
import com.tuoheng.admin.service.warning.query.QueryWarningListService;
import com.tuoheng.admin.service.warning.query.QueryWarningPageListService;
import com.tuoheng.common.common.BaseServiceImpl;
import com.tuoheng.common.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
@@ -25,6 +26,9 @@ public class WarningServiceImpl extends BaseServiceImpl<WarningMapper, Warning>
@Autowired
private QueryWarningListService queryWarningListService;

@Autowired
private QueryWarningPageListService queryWarningPageListService;

/**
* 查询预警列表
*
@@ -54,7 +58,7 @@ public class WarningServiceImpl extends BaseServiceImpl<WarningMapper, Warning>
*/
@Override
public JsonResult index(WarningQuery query) {
return queryWarningListService.index(query);
return queryWarningPageListService.index(query);
}

}

Loading…
Cancel
Save