Просмотр исходного кода

20230913-添加ITSM model和mapper

iaun 3 лет назад
Родитель
Сommit
41a22eea1e

+ 7 - 0
src/main/java/cn/iaun/it/mapper/ItItsmLogMapper.java

@@ -0,0 +1,7 @@
+package cn.iaun.it.mapper;
+
+import cn.iaun.it.model.ItItsmTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+public interface ItItsmLogMapper extends BaseMapper<ItItsmTemplate> {
+}

+ 7 - 0
src/main/java/cn/iaun/it/mapper/ItItsmOrderMapper.java

@@ -0,0 +1,7 @@
+package cn.iaun.it.mapper;
+
+import cn.iaun.it.model.ItItsmTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+public interface ItItsmOrderMapper extends BaseMapper<ItItsmTemplate> {
+}

+ 7 - 0
src/main/java/cn/iaun/it/mapper/ItItsmTemplateFieldMapper.java

@@ -0,0 +1,7 @@
+package cn.iaun.it.mapper;
+
+import cn.iaun.it.model.ItItsmTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+public interface ItItsmTemplateFieldMapper extends BaseMapper<ItItsmTemplate> {
+}

+ 7 - 0
src/main/java/cn/iaun/it/mapper/ItItsmTemplateMapper.java

@@ -0,0 +1,7 @@
+package cn.iaun.it.mapper;
+
+import cn.iaun.it.model.ItItsmTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+public interface ItItsmTemplateMapper extends BaseMapper<ItItsmTemplate> {
+}

+ 66 - 0
src/main/java/cn/iaun/it/model/ItItsmLog.java

@@ -0,0 +1,66 @@
+package cn.iaun.it.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+
+import java.util.Date;
+
+public class ItItsmLog {
+    @TableId(type = IdType.AUTO)
+    private Long logId;
+    private Long orderId;
+    private Long userId;
+    private Date time;
+    private String log;
+
+    @Override
+    public String toString() {
+        return "ItItsmLog{" +
+                "logId=" + logId +
+                ", orderId=" + orderId +
+                ", userId=" + userId +
+                ", time=" + time +
+                ", log='" + log + '\'' +
+                '}';
+    }
+
+    public Long getLogId() {
+        return logId;
+    }
+
+    public void setLogId(Long logId) {
+        this.logId = logId;
+    }
+
+    public Long getOrderId() {
+        return orderId;
+    }
+
+    public void setOrderId(Long orderId) {
+        this.orderId = orderId;
+    }
+
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    public Date getTime() {
+        return time;
+    }
+
+    public void setTime(Date time) {
+        this.time = time;
+    }
+
+    public String getLog() {
+        return log;
+    }
+
+    public void setLog(String log) {
+        this.log = log;
+    }
+}

+ 94 - 0
src/main/java/cn/iaun/it/model/ItItsmOrder.java

@@ -0,0 +1,94 @@
+package cn.iaun.it.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+
+public class ItItsmOrder {
+    @TableId(type = IdType.AUTO)
+    private Long orderId;
+    private Long templateId;
+    private Long currentUserId;
+    private String data;
+    private Integer orderStatus;
+    private String reply;
+    private Integer evaluate;
+    private String comment;
+
+    @Override
+    public String toString() {
+        return "ItItsmOrder{" +
+                "orderId=" + orderId +
+                ", templateId=" + templateId +
+                ", currentUserId=" + currentUserId +
+                ", data='" + data + '\'' +
+                ", orderStatus=" + orderStatus +
+                ", reply='" + reply + '\'' +
+                ", evaluate=" + evaluate +
+                ", comment='" + comment + '\'' +
+                '}';
+    }
+
+    public Long getOrderId() {
+        return orderId;
+    }
+
+    public void setOrderId(Long orderId) {
+        this.orderId = orderId;
+    }
+
+    public Long getTemplateId() {
+        return templateId;
+    }
+
+    public void setTemplateId(Long templateId) {
+        this.templateId = templateId;
+    }
+
+    public Long getCurrentUserId() {
+        return currentUserId;
+    }
+
+    public void setCurrentUserId(Long currentUserId) {
+        this.currentUserId = currentUserId;
+    }
+
+    public String getData() {
+        return data;
+    }
+
+    public void setData(String data) {
+        this.data = data;
+    }
+
+    public Integer getOrderStatus() {
+        return orderStatus;
+    }
+
+    public void setOrderStatus(Integer orderStatus) {
+        this.orderStatus = orderStatus;
+    }
+
+    public String getReply() {
+        return reply;
+    }
+
+    public void setReply(String reply) {
+        this.reply = reply;
+    }
+
+    public Integer getEvaluate() {
+        return evaluate;
+    }
+
+    public void setEvaluate(Integer evaluate) {
+        this.evaluate = evaluate;
+    }
+
+    public String getComment() {
+        return comment;
+    }
+
+    public void setComment(String comment) {
+        this.comment = comment;
+    }
+}

+ 44 - 0
src/main/java/cn/iaun/it/model/ItItsmTemplate.java

@@ -0,0 +1,44 @@
+package cn.iaun.it.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+
+public class ItItsmTemplate {
+    @TableId(type = IdType.AUTO)
+    private Long templateId;
+    private String name;
+    private Long templateUser;
+
+    @Override
+    public String toString() {
+        return "ItItsmTemplate{" +
+                "templateId=" + templateId +
+                ", name='" + name + '\'' +
+                ", templateUser=" + templateUser +
+                '}';
+    }
+
+    public Long getTemplateId() {
+        return templateId;
+    }
+
+    public void setTemplateId(Long templateId) {
+        this.templateId = templateId;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Long getTemplateUser() {
+        return templateUser;
+    }
+
+    public void setTemplateUser(Long templateUser) {
+        this.templateUser = templateUser;
+    }
+}

+ 74 - 0
src/main/java/cn/iaun/it/model/ItItsmTemplateField.java

@@ -0,0 +1,74 @@
+package cn.iaun.it.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+
+public class ItItsmTemplateField {
+    @TableId(type = IdType.AUTO)
+    private Long fieldId;
+    private String title;
+    private Long templateId;
+    private Integer required;
+    private Integer fieldType;
+    private String options;
+
+    @Override
+    public String toString() {
+        return "ItItsmTemplateField{" +
+                "fieldId=" + fieldId +
+                ", title='" + title + '\'' +
+                ", templateId=" + templateId +
+                ", required=" + required +
+                ", fieldType=" + fieldType +
+                ", options='" + options + '\'' +
+                '}';
+    }
+
+    public Long getFieldId() {
+        return fieldId;
+    }
+
+    public void setFieldId(Long fieldId) {
+        this.fieldId = fieldId;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public Long getTemplateId() {
+        return templateId;
+    }
+
+    public void setTemplateId(Long templateId) {
+        this.templateId = templateId;
+    }
+
+    public Integer getRequired() {
+        return required;
+    }
+
+    public void setRequired(Integer required) {
+        this.required = required;
+    }
+
+    public Integer getFieldType() {
+        return fieldType;
+    }
+
+    public void setFieldType(Integer fieldType) {
+        this.fieldType = fieldType;
+    }
+
+    public String getOptions() {
+        return options;
+    }
+
+    public void setOptions(String options) {
+        this.options = options;
+    }
+}