|
|
@@ -0,0 +1,124 @@
|
|
|
+package com.kym.entity.admin;
|
|
|
+
|
|
|
+
|
|
|
+import com.kym.entity.miniapp.Attachment;
|
|
|
+import com.kym.entity.miniapp.User;
|
|
|
+import com.kym.jdbc.BasicQuery;
|
|
|
+import com.kym.jdbc.annotations.DBF;
|
|
|
+import com.kym.jdbc.annotations.Entity;
|
|
|
+import com.kym.jdbc.annotations.FK;
|
|
|
+import com.kym.jdbc.annotations.OP;
|
|
|
+import com.kym.jdbc.annotations.One;
|
|
|
+import com.kym.jdbc.annotations.QE;
|
|
|
+import com.kym.jdbc.annotations.QF;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 纠错反馈
|
|
|
+ *
|
|
|
+ * @date 2024-09-22T20:40:35.300431885
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@Entity(clz = Feedback.class, comment = "纠错反馈")
|
|
|
+public class Feedback implements Serializable {
|
|
|
+
|
|
|
+ public static final int TYPE_ERROR = 1; //纠错
|
|
|
+ public static final int TYPE_SUGGEST = 2; //建议
|
|
|
+ public static final int TYPE_OTHER = 3; //其他
|
|
|
+
|
|
|
+ public static final int STATUS_UNREPLY = 1; //未回复
|
|
|
+ public static final int STATUS_REPLIED = 2; //已回复
|
|
|
+
|
|
|
+ @DBF(comment = "ID")
|
|
|
+ private long id;
|
|
|
+ @DBF(comment = "反馈标题", max = 128)
|
|
|
+ private String title;
|
|
|
+ @DBF(comment = "纠错类型", dict = "Feedback.type")
|
|
|
+ private int type;
|
|
|
+ @DBF(comment = "详情描述", max = 512)
|
|
|
+ private String content;
|
|
|
+ @DBF(comment = "附件清单")
|
|
|
+ private List<Attachment> attachList;
|
|
|
+ @DBF(comment = "状态", dict = "Feedback.status")
|
|
|
+ private int status;
|
|
|
+
|
|
|
+ @DBF(comment = "提交时间")
|
|
|
+ private Date submitTime;
|
|
|
+ @FK(clz = User.class)
|
|
|
+ @DBF(comment = "提交人")
|
|
|
+ private long submitUserId;
|
|
|
+
|
|
|
+ @DBF(comment = "回复内容", max = 512)
|
|
|
+ private String replyContent;
|
|
|
+ @DBF(comment = "回复时间")
|
|
|
+ private Date replyTime;
|
|
|
+ @FK(clz = AdminUser.class)
|
|
|
+ @DBF(comment = "提交人")
|
|
|
+ private long replyUserId;
|
|
|
+
|
|
|
+ @DBF(comment = "创建时间")
|
|
|
+ private Date createTime;
|
|
|
+ @DBF(comment = "更新时间")
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @EqualsAndHashCode(callSuper = true)
|
|
|
+ public static class FeedbackInfo extends Feedback {
|
|
|
+ @One(mkf = "submitUserId", tf = "name", comment = "创建人")
|
|
|
+ private String submitUserName;
|
|
|
+
|
|
|
+ // @One(mkf = "updateBy", tf = "name", comment = "更新人")
|
|
|
+ // private String updateName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @EqualsAndHashCode(callSuper = true)
|
|
|
+ @QE(clz = FeedbackInfo.class)
|
|
|
+ public static class FeedbackBasicQuery extends BasicQuery {
|
|
|
+ private String content;
|
|
|
+ private Long id;
|
|
|
+ private long submitUserId;
|
|
|
+ private String replyContent;
|
|
|
+ private Integer status;
|
|
|
+ private String title;
|
|
|
+ private Integer type;
|
|
|
+ private long replyUserId;
|
|
|
+
|
|
|
+ //region date query
|
|
|
+ @QF(op = OP.GTE, tf = "createTime")
|
|
|
+ private Date createTimeStart;
|
|
|
+ @QF(op = OP.LTE, tf = "createTime")
|
|
|
+ private Date createTimeEnd;
|
|
|
+ @QF(op = OP.GTE, tf = "replyTime")
|
|
|
+ private Date replyTimeStart;
|
|
|
+ @QF(op = OP.LTE, tf = "replyTime")
|
|
|
+ private Date replyTimeEnd;
|
|
|
+ @QF(op = OP.GTE, tf = "submitTime")
|
|
|
+ private Date submitTimeStart;
|
|
|
+ @QF(op = OP.LTE, tf = "submitTime")
|
|
|
+ private Date submitTimeEnd;
|
|
|
+ @QF(op = OP.GTE, tf = "updateTime")
|
|
|
+ private Date updateTimeStart;
|
|
|
+ @QF(op = OP.LTE, tf = "updateTime")
|
|
|
+ private Date updateTimeEnd;
|
|
|
+ //endregion
|
|
|
+
|
|
|
+
|
|
|
+ //region sort query
|
|
|
+ private Integer createTimeSort;
|
|
|
+ private Integer idSort;
|
|
|
+ private Integer replyTimeSort;
|
|
|
+ private Integer statusSort;
|
|
|
+ private Integer submitTimeSort;
|
|
|
+ private Integer typeSort;
|
|
|
+ private Integer updateTimeSort;
|
|
|
+ //endregion
|
|
|
+ }
|
|
|
+}
|