Browse Source

添加排序字段

fengyanjie 3 years ago
parent
commit
f9b9daf7e0

+ 6 - 0
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/entity/RwdeditRefType.java

@@ -30,6 +30,8 @@ public class RwdeditRefType {
     private Integer updateUser;
     @UpdateTimestamp
     private Date updateTime;
+    private Integer seq;
+    private Integer showPosition;
 
     @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "refKey")
     private List<RwdeditRefTypeInfos> infos;
@@ -42,6 +44,8 @@ public class RwdeditRefType {
         entity.setUpdateTime(model.getUpdateTime());
         entity.setCreateUser(model.getCreateUser());
         entity.setUpdateUser(model.getUpdateUser());
+        entity.setSeq(model.getSeq());
+        entity.setShowPosition(model.getShowPosition());
         entity.setInfos(model.getInfos());
         return entity;
     }
@@ -54,6 +58,8 @@ public class RwdeditRefType {
         model.setUpdateTime(this.getUpdateTime());
         model.setCreateUser(this.getCreateUser());
         model.setUpdateUser(this.getUpdateUser());
+        model.setSeq(this.getSeq());
+        model.setShowPosition(this.getShowPosition());
         return model;
     }
 }

+ 2 - 0
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/model/RwdeditRefTypeModel.java

@@ -17,5 +17,7 @@ public class RwdeditRefTypeModel {
     private Date createTime;
     private Integer updateUser;
     private Date updateTime;
+    private Integer seq;
+    private Integer showPosition;
     private List<RwdeditRefTypeInfos> infos;
 }