|
@@ -13,6 +13,7 @@ import org.springblade.flow.datalog.model.DataExportTask;
|
|
import org.springblade.flow.datalog.service.DataExportTaskService;
|
|
import org.springblade.flow.datalog.service.DataExportTaskService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -42,12 +43,15 @@ public class DataExportTaskController {
|
|
@Autowired
|
|
@Autowired
|
|
private DataExportTaskService exportTaskService;
|
|
private DataExportTaskService exportTaskService;
|
|
|
|
|
|
- @PostMapping("/list")
|
|
|
|
|
|
+ @GetMapping("/list")
|
|
@ApiOperation(value = "分页查询")
|
|
@ApiOperation(value = "分页查询")
|
|
- public R<IPage<DataExportTask>> list(String modelId, Query query) {
|
|
|
|
|
|
+ public R<IPage<DataExportTask>> list(String modelId,Integer current,Integer size) {
|
|
LambdaQueryWrapper<DataExportTask> wrapper = Wrappers.<DataExportTask>lambdaQuery();
|
|
LambdaQueryWrapper<DataExportTask> wrapper = Wrappers.<DataExportTask>lambdaQuery();
|
|
wrapper.eq(DataExportTask::getModelId, modelId);
|
|
wrapper.eq(DataExportTask::getModelId, modelId);
|
|
wrapper.orderByDesc(DataExportTask::getId);
|
|
wrapper.orderByDesc(DataExportTask::getId);
|
|
|
|
+ Query query = new Query();
|
|
|
|
+ query.setCurrent(current);
|
|
|
|
+ query.setSize(size);
|
|
return R.data(exportTaskService.page(Condition.getPage(query), wrapper));
|
|
return R.data(exportTaskService.page(Condition.getPage(query), wrapper));
|
|
}
|
|
}
|
|
|
|
|