|
|
@@ -3,7 +3,9 @@ package com.izouma.zhirongip.domain.resource;
|
|
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
|
|
import com.izouma.zhirongip.annotations.Searchable;
|
|
|
import com.izouma.zhirongip.annotations.SearchableOne;
|
|
|
+import com.izouma.zhirongip.converter.FileObjectListConverter;
|
|
|
import com.izouma.zhirongip.domain.BaseEntity;
|
|
|
+import com.izouma.zhirongip.domain.FileObject;
|
|
|
import com.izouma.zhirongip.domain.Setting;
|
|
|
import com.izouma.zhirongip.enums.ResourceCategory;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
@@ -18,6 +20,7 @@ import org.hibernate.annotations.Where;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import java.time.LocalDate;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@@ -31,7 +34,7 @@ public class PolicyLaw extends BaseEntity {
|
|
|
@SearchableOne
|
|
|
@ApiModelProperty(value = "名称")
|
|
|
private String name;
|
|
|
-
|
|
|
+
|
|
|
/*
|
|
|
setting 政策-7 新闻-8 法律-9
|
|
|
*/
|
|
|
@@ -81,6 +84,10 @@ public class PolicyLaw extends BaseEntity {
|
|
|
@Enumerated(EnumType.STRING)
|
|
|
private ResourceCategory category;
|
|
|
|
|
|
+ @Column(columnDefinition = "TEXT ")
|
|
|
+ @Convert(converter = FileObjectListConverter.class)
|
|
|
+ private List<FileObject> annex;
|
|
|
+
|
|
|
// @ApiModelProperty(value = "浏览量")
|
|
|
// private long view;
|
|
|
}
|