Commit 4f85fead authored by hongguangwu's avatar hongguangwu

MVP1.7.12-导出人

parent e90c3d10
...@@ -85,5 +85,15 @@ public class TDispatchExportLog { ...@@ -85,5 +85,15 @@ public class TDispatchExportLog {
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
@ColumnWidth(18) @ColumnWidth(18)
private LocalDateTime createTime; private LocalDateTime createTime;
/**
* @Description: 编号_给前端用的
* @Author: hgw
* @Date: 2025/6/16 15:27
* @return:
**/
@TableField(exist = false)
@Schema(description = "编号")
private long number;
} }
...@@ -29,6 +29,8 @@ import org.springframework.web.bind.annotation.GetMapping; ...@@ -29,6 +29,8 @@ import org.springframework.web.bind.annotation.GetMapping;
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;
import java.util.List;
/** /**
* 社保导出花名册记录表 * 社保导出花名册记录表
...@@ -55,6 +57,11 @@ public class TDispatchExportLogController { ...@@ -55,6 +57,11 @@ public class TDispatchExportLogController {
@Operation(description = "简单分页查询") @Operation(description = "简单分页查询")
@GetMapping("/page") @GetMapping("/page")
public R<IPage<TDispatchExportLog>> getTDispatchExportLogPage(Page<TDispatchExportLog> page, TDispatchExportLog tDispatchExportLog) { public R<IPage<TDispatchExportLog>> getTDispatchExportLogPage(Page<TDispatchExportLog> page, TDispatchExportLog tDispatchExportLog) {
return new R<>(tDispatchExportLogService.getTDispatchExportLogPage(page, tDispatchExportLog)); IPage<TDispatchExportLog> pageList = tDispatchExportLogService.getTDispatchExportLogPage(page, tDispatchExportLog);
List<TDispatchExportLog> logList = pageList.getRecords();
for (int i = 0; i < logList.size(); i++) {
logList.get(i).setNumber((page.getCurrent() - 1) * page.getSize() + i + 1);
}
return new R<>(pageList);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment