|
@@ -32,6 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
@@ -192,7 +193,8 @@ public class FieldServiceImpl extends ServiceImpl<FieldMapper, FieldEntity> impl
|
|
|
|
|
|
Long userId = baseService.getUserId();
|
|
|
|
|
|
- String tableName = tableService.getTableName(param.getTableId());
|
|
|
+ String tableId = param.getTableId();
|
|
|
+ String tableName = tableService.getTableName(tableId);
|
|
|
|
|
|
Map<String, Object> record = param.getRecord();
|
|
|
// 固定添加这两个字段值
|
|
@@ -208,9 +210,13 @@ public class FieldServiceImpl extends ServiceImpl<FieldMapper, FieldEntity> impl
|
|
|
|
|
|
}
|
|
|
|
|
|
- ddlMapper.insertRecord(tableName, fieldList, fieldData);
|
|
|
+ Integer id = ddlMapper.insertRecord(tableName, fieldList, fieldData);
|
|
|
+ log.info("返回值id: {}", id);
|
|
|
|
|
|
- return Result.success();
|
|
|
+ //查询新增数据 todo
|
|
|
+// this.detail(tableId, )
|
|
|
+
|
|
|
+ return Result.success(id);
|
|
|
}
|
|
|
|
|
|
@Override
|