feat(X-Pack): [数据填报]提交记录日志支持清理

This commit is contained in:
ulleo
2025-04-01 17:49:51 +08:00
committed by Junjun
parent c95162617a
commit 5236fa7ebc
5 changed files with 31 additions and 0 deletions

View File

@@ -4389,6 +4389,8 @@ export default {
data_not_found: '] does not exist'
},
task: {
commit_operate_type: 'Commit type',
committer: 'Committer',
time_check_5_minute_later_than_current:
'Cannot be less than 5 minutes after the current time',
time_check_later_than_current: 'Cannot be less than the current time',

View File

@@ -4073,6 +4073,8 @@ export default {
save_apply: '儲存並套用'
},
data_fill: {
commit_operate_type: '提交類型',
committer: '提交人',
data_fill: '資料填報',
fill_in_the_task: '填報任務',
data_fill_name: '資料填報名稱',

View File

@@ -4271,6 +4271,8 @@ export default {
data_not_found: ']的数据不存在'
},
task: {
commit_operate_type: '提交类型',
committer: '提交人',
send_status: '任务下发状态',
df_task_status: '任务填报状态',
time_check_5_minute_later_than_current: '不能小于当前时间5分钟后',

View File

@@ -169,6 +169,11 @@ public interface DataFillingApi {
@PostMapping("/log/page/{goPage}/{pageSize}")
IPage<DfCommitLog> logPager(@RequestBody DfCommitLogRequest request, @PathVariable("goPage") int goPage, @PathVariable("pageSize") int pageSize);
@Operation(summary = "清理数据填报操作日志")
@DePermit({"#p0.formId+':manage'"})
@PostMapping("/log/clear")
void clearLog(@RequestBody DfClearCommitLogRequest request) throws Exception;
@Operation(summary = "上传Excel")
@DePermit({"#p0+':manage'"})
@PostMapping("/form/{formId}/uploadFile")

View File

@@ -0,0 +1,20 @@
package io.dataease.api.xpack.dataFilling.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class DfClearCommitLogRequest implements Serializable {
@Serial
private static final long serialVersionUID = 807091582312182724L;
@JsonSerialize(using = ToStringSerializer.class)
private Long formId;
private String clearType;
}