From d384884275e30416ea5352e3aae128940999a0b5 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Wed, 8 Sep 2021 09:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/talkonlineweb/domain/LymsChatroom.java | 105 +++++++++++++++++++ .../com/lyms/talkonlineweb/domain/LymsLogs.java | 115 +++++++++++++++++++++ .../talkonlineweb/mapper/LymsChatroomMapper.java | 15 +++ .../lyms/talkonlineweb/mapper/LymsLogsMapper.java | 15 +++ .../talkonlineweb/service/LymsChatroomService.java | 11 ++ .../talkonlineweb/service/LymsLogsService.java | 11 ++ .../service/impl/LymsChatroomServiceImpl.java | 20 ++++ .../service/impl/LymsLogsServiceImpl.java | 20 ++++ .../main/resources/mapper/LymsChatroomMapper.xml | 20 ++++ .../src/main/resources/mapper/LymsLogsMapper.xml | 22 ++++ 10 files changed, 354 insertions(+) create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatroom.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsLogs.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatroomMapper.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsLogsMapper.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatroomService.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsLogsService.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatroomServiceImpl.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsLogsServiceImpl.java create mode 100644 talkonlineweb/src/main/resources/mapper/LymsChatroomMapper.xml create mode 100644 talkonlineweb/src/main/resources/mapper/LymsLogsMapper.xml diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatroom.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatroom.java new file mode 100644 index 0000000..975a12e --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatroom.java @@ -0,0 +1,105 @@ +package com.lyms.talkonlineweb.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.Data; + +/** + * + * @TableName lyms_chatroom + */ +@TableName(value ="lyms_chatroom") +@Data +public class LymsChatroom implements Serializable { + /** + * + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * + */ + @TableField(value = "name") + private String name; + + /** + * + */ + @TableField(value = "description") + private String description; + + /** + * 客服人员ID + */ + @TableField(value = "owner") + private Integer owner; + + /** + * 患者ID + */ + @TableField(value = "from") + private Integer from; + + /** + * 医生ID + */ + @TableField(value = "target") + private Integer target; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + LymsChatroom other = (LymsChatroom) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) + && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) + && (this.getOwner() == null ? other.getOwner() == null : this.getOwner().equals(other.getOwner())) + && (this.getFrom() == null ? other.getFrom() == null : this.getFrom().equals(other.getFrom())) + && (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); + result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); + result = prime * result + ((getOwner() == null) ? 0 : getOwner().hashCode()); + result = prime * result + ((getFrom() == null) ? 0 : getFrom().hashCode()); + result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", name=").append(name); + sb.append(", description=").append(description); + sb.append(", owner=").append(owner); + sb.append(", from=").append(from); + sb.append(", target=").append(target); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsLogs.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsLogs.java new file mode 100644 index 0000000..edf0ee1 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsLogs.java @@ -0,0 +1,115 @@ +package com.lyms.talkonlineweb.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * + * @TableName lyms_logs + */ +@TableName(value ="lyms_logs") +@Data +public class LymsLogs implements Serializable { + /** + * + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * + */ + @TableField(value = "class") + private String class; + + /** + * + */ + @TableField(value = "func") + private String func; + + /** + * + */ + @TableField(value = "lvl") + private String lvl; + + /** + * + */ + @TableField(value = "logger") + private String logger; + + /** + * + */ + @TableField(value = "message") + private String message; + + /** + * + */ + @TableField(value = "log_date") + private Date logDate; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + LymsLogs other = (LymsLogs) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getClass() == null ? other.getClass() == null : this.getClass().equals(other.getClass())) + && (this.getFunc() == null ? other.getFunc() == null : this.getFunc().equals(other.getFunc())) + && (this.getLvl() == null ? other.getLvl() == null : this.getLvl().equals(other.getLvl())) + && (this.getLogger() == null ? other.getLogger() == null : this.getLogger().equals(other.getLogger())) + && (this.getMessage() == null ? other.getMessage() == null : this.getMessage().equals(other.getMessage())) + && (this.getLogDate() == null ? other.getLogDate() == null : this.getLogDate().equals(other.getLogDate())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getClass() == null) ? 0 : getClass().hashCode()); + result = prime * result + ((getFunc() == null) ? 0 : getFunc().hashCode()); + result = prime * result + ((getLvl() == null) ? 0 : getLvl().hashCode()); + result = prime * result + ((getLogger() == null) ? 0 : getLogger().hashCode()); + result = prime * result + ((getMessage() == null) ? 0 : getMessage().hashCode()); + result = prime * result + ((getLogDate() == null) ? 0 : getLogDate().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", class=").append(class); + sb.append(", func=").append(func); + sb.append(", lvl=").append(lvl); + sb.append(", logger=").append(logger); + sb.append(", message=").append(message); + sb.append(", logDate=").append(logDate); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatroomMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatroomMapper.java new file mode 100644 index 0000000..1ab9bcc --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatroomMapper.java @@ -0,0 +1,15 @@ +package com.lyms.talkonlineweb.mapper; + +import com.lyms.talkonlineweb.domain.LymsChatroom; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Entity com.lyms.talkonlineweb.domain.LymsChatroom + */ +public interface LymsChatroomMapper extends BaseMapper { + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsLogsMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsLogsMapper.java new file mode 100644 index 0000000..8c1474f --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsLogsMapper.java @@ -0,0 +1,15 @@ +package com.lyms.talkonlineweb.mapper; + +import com.lyms.talkonlineweb.domain.LymsLogs; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Entity com.lyms.talkonlineweb.domain.LymsLogs + */ +public interface LymsLogsMapper extends BaseMapper { + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatroomService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatroomService.java new file mode 100644 index 0000000..4f12127 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatroomService.java @@ -0,0 +1,11 @@ +package com.lyms.talkonlineweb.service; + +import com.lyms.talkonlineweb.domain.LymsChatroom; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * + */ +public interface LymsChatroomService extends IService { + +} diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsLogsService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsLogsService.java new file mode 100644 index 0000000..c642f50 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsLogsService.java @@ -0,0 +1,11 @@ +package com.lyms.talkonlineweb.service; + +import com.lyms.talkonlineweb.domain.LymsLogs; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * + */ +public interface LymsLogsService extends IService { + +} diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatroomServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatroomServiceImpl.java new file mode 100644 index 0000000..bf6bb99 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatroomServiceImpl.java @@ -0,0 +1,20 @@ +package com.lyms.talkonlineweb.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyms.talkonlineweb.domain.LymsChatroom; +import com.lyms.talkonlineweb.service.LymsChatroomService; +import com.lyms.talkonlineweb.mapper.LymsChatroomMapper; +import org.springframework.stereotype.Service; + +/** + * + */ +@Service +public class LymsChatroomServiceImpl extends ServiceImpl + implements LymsChatroomService{ + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsLogsServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsLogsServiceImpl.java new file mode 100644 index 0000000..00b3bf0 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsLogsServiceImpl.java @@ -0,0 +1,20 @@ +package com.lyms.talkonlineweb.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyms.talkonlineweb.domain.LymsLogs; +import com.lyms.talkonlineweb.service.LymsLogsService; +import com.lyms.talkonlineweb.mapper.LymsLogsMapper; +import org.springframework.stereotype.Service; + +/** + * + */ +@Service +public class LymsLogsServiceImpl extends ServiceImpl + implements LymsLogsService{ + +} + + + + diff --git a/talkonlineweb/src/main/resources/mapper/LymsChatroomMapper.xml b/talkonlineweb/src/main/resources/mapper/LymsChatroomMapper.xml new file mode 100644 index 0000000..d156cf4 --- /dev/null +++ b/talkonlineweb/src/main/resources/mapper/LymsChatroomMapper.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + id,name,description, + owner,from,target + + diff --git a/talkonlineweb/src/main/resources/mapper/LymsLogsMapper.xml b/talkonlineweb/src/main/resources/mapper/LymsLogsMapper.xml new file mode 100644 index 0000000..663a079 --- /dev/null +++ b/talkonlineweb/src/main/resources/mapper/LymsLogsMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + id,class,func, + lvl,logger,message, + log_date + + -- 1.8.3.1