feat(X-Pack): [数据填报]新建表单支持绑定已有表

#12788
This commit is contained in:
ulleo
2025-02-25 17:35:54 +08:00
committed by dataeaseShu
parent 7dc1ef10fd
commit e586e7619f
4 changed files with 11 additions and 3 deletions

View File

@@ -3,3 +3,9 @@ ALTER TABLE `core_dataset_table_field`
ALTER TABLE `core_dataset_table_field`
ADD COLUMN `other_group` longtext NULL;
alter table `per_data_filling_task_sub_instance`
modify `data_id` varchar(255) null comment '数据ID';
alter table per_data_filling_commit_log
modify `data_id` varchar(255) not null comment '操作的数据ID';

View File

@@ -10,3 +10,5 @@ DROP PRIMARY KEY;
alter table `per_data_filling_task_sub_instance`
modify `data_id` varchar(255) null comment '数据ID';
alter table per_data_filling_commit_log
modify `data_id` varchar(255) not null comment '操作的数据ID';

View File

@@ -68,7 +68,7 @@ public interface DataFillingApi {
@DePermit({"#p0+':manage'"})
@GetMapping("/form/{formId}/delete/{id}")
void deleteRowData(@PathVariable("formId") Long formId, @PathVariable("id") Long id) throws Exception;
void deleteRowData(@PathVariable("formId") Long formId, @PathVariable("id") String id) throws Exception;
@DePermit({"#p0+':manage'"})
@GetMapping("/form/{formId}/truncate")
@@ -76,7 +76,7 @@ public interface DataFillingApi {
@DePermit({"#p0+':manage'"})
@PostMapping("/form/{formId}/batch-delete")
void batchDeleteRowData(@PathVariable("formId") Long formId, @RequestBody List<Long> ids) throws Exception;
void batchDeleteRowData(@PathVariable("formId") Long formId, @RequestBody List<String> ids) throws Exception;
@DePermit({"#p0+':manage'"})
@PostMapping("/form/{formId}/rowData/save")

View File

@@ -15,7 +15,7 @@ public class RowDataDatum implements Serializable {
@Serial
private static final long serialVersionUID = -2838784450721979776L;
private Long id;
private String id;
private Map<String, Object> data;