图纸绑定bug修改

This commit is contained in:
joylink_zhangsai 2021-05-17 18:59:44 +08:00
parent cf34968f4d
commit 570e038bc5
2 changed files with 20 additions and 1 deletions

20
sql/20210517-zhangsai.sql Normal file
View File

@ -0,0 +1,20 @@
CREATE TABLE `file` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL,
`file_path` varchar(255) NOT NULL,
`file_type` varchar(255) NOT NULL,
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
`creator` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
CREATE TABLE `file_binding` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`file_id` bigint(20) NOT NULL,
`map_id` bigint(20) NOT NULL,
`device_types` varchar(255) DEFAULT NULL,
`device_ids` varchar(10000) DEFAULT NULL,
`creator` bigint(20) NOT NULL,
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

View File

@ -21,7 +21,6 @@ import java.util.List;
@NoArgsConstructor @NoArgsConstructor
public class FileBindingVO { public class FileBindingVO {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
@NotNull(message = "id不能为空")
private Long id; private Long id;
@NotNull(message = "文件id不能为null") @NotNull(message = "文件id不能为null")