diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/UserroleInfo.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/UserroleInfo.java new file mode 100644 index 0000000..3661c38 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/UserroleInfo.java @@ -0,0 +1,196 @@ +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 userrole_info + */ +@TableName(value ="userrole_info") +@Data +public class UserroleInfo implements Serializable { + /** + * 用户标识 + */ + @TableField(value = "uid") + private Integer uid; + + /** + * 姓名 + */ + @TableField(value = "uname") + private String uname; + + /** + * 登录账号 + */ + @TableField(value = "login") + private String login; + + /** + * 登录密码 + */ + @TableField(value = "passwd") + private String passwd; + + /** + * 头像图片URL + */ + @TableField(value = "headimg") + private String headimg; + + /** + * 环信id + */ + @TableField(value = "hxid") + private String hxid; + + /** + * 医院ID + */ + @TableField(value = "hid") + private Integer hid; + + /** + * 医院名称 + */ + @TableField(value = "hname") + private String hname; + + /** + * 科室ID + */ + @TableField(value = "did") + private Integer did; + + /** + * 科室名称 + */ + @TableField(value = "dname") + private String dname; + + /** + * 创建人 + */ + @TableField(value = "createdby") + private Integer createdby; + + /** + * 创建时间 + */ + @TableField(value = "createdtime") + private Date createdtime; + + /** + * 更新人 + */ + @TableField(value = "updatedby") + private Integer updatedby; + + /** + * 更新时间 + */ + @TableField(value = "updated_time") + private Date updatedTime; + + /** + * + */ + @TableField(value = "rid") + private Integer rid; + + /** + * 角色名称 + */ + @TableField(value = "rname") + private String rname; + + @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; + } + UserroleInfo other = (UserroleInfo) that; + return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid())) + && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname())) + && (this.getLogin() == null ? other.getLogin() == null : this.getLogin().equals(other.getLogin())) + && (this.getPasswd() == null ? other.getPasswd() == null : this.getPasswd().equals(other.getPasswd())) + && (this.getHeadimg() == null ? other.getHeadimg() == null : this.getHeadimg().equals(other.getHeadimg())) + && (this.getHxid() == null ? other.getHxid() == null : this.getHxid().equals(other.getHxid())) + && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid())) + && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname())) + && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid())) + && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname())) + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) + && (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime())) + && (this.getUpdatedby() == null ? other.getUpdatedby() == null : this.getUpdatedby().equals(other.getUpdatedby())) + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) + && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid())) + && (this.getRname() == null ? other.getRname() == null : this.getRname().equals(other.getRname())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode()); + result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode()); + result = prime * result + ((getLogin() == null) ? 0 : getLogin().hashCode()); + result = prime * result + ((getPasswd() == null) ? 0 : getPasswd().hashCode()); + result = prime * result + ((getHeadimg() == null) ? 0 : getHeadimg().hashCode()); + result = prime * result + ((getHxid() == null) ? 0 : getHxid().hashCode()); + result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode()); + result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode()); + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode()); + result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode()); + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); + result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode()); + result = prime * result + ((getUpdatedby() == null) ? 0 : getUpdatedby().hashCode()); + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); + result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode()); + result = prime * result + ((getRname() == null) ? 0 : getRname().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", uid=").append(uid); + sb.append(", uname=").append(uname); + sb.append(", login=").append(login); + sb.append(", passwd=").append(passwd); + sb.append(", headimg=").append(headimg); + sb.append(", hxid=").append(hxid); + sb.append(", hid=").append(hid); + sb.append(", hname=").append(hname); + sb.append(", did=").append(did); + sb.append(", dname=").append(dname); + sb.append(", createdby=").append(createdby); + sb.append(", createdtime=").append(createdtime); + sb.append(", updatedby=").append(updatedby); + sb.append(", updatedTime=").append(updatedTime); + sb.append(", rid=").append(rid); + sb.append(", rname=").append(rname); + 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/UserroleInfoMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/UserroleInfoMapper.java new file mode 100644 index 0000000..467b739 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/UserroleInfoMapper.java @@ -0,0 +1,15 @@ +package com.lyms.talkonlineweb.mapper; + +import com.lyms.talkonlineweb.domain.UserroleInfo; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Entity com.lyms.talkonlineweb.domain.UserroleInfo + */ +public interface UserroleInfoMapper extends BaseMapper { + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/UserroleInfoService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/UserroleInfoService.java new file mode 100644 index 0000000..e3aed34 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/UserroleInfoService.java @@ -0,0 +1,11 @@ +package com.lyms.talkonlineweb.service; + +import com.lyms.talkonlineweb.domain.UserroleInfo; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * + */ +public interface UserroleInfoService extends IService { + +} diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/UserroleInfoServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/UserroleInfoServiceImpl.java new file mode 100644 index 0000000..1effd18 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/UserroleInfoServiceImpl.java @@ -0,0 +1,20 @@ +package com.lyms.talkonlineweb.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyms.talkonlineweb.domain.UserroleInfo; +import com.lyms.talkonlineweb.service.UserroleInfoService; +import com.lyms.talkonlineweb.mapper.UserroleInfoMapper; +import org.springframework.stereotype.Service; + +/** + * + */ +@Service +public class UserroleInfoServiceImpl extends ServiceImpl + implements UserroleInfoService{ + +} + + + + diff --git a/talkonlineweb/src/main/resources/mapper/UserroleInfoMapper.xml b/talkonlineweb/src/main/resources/mapper/UserroleInfoMapper.xml new file mode 100644 index 0000000..bc384cf --- /dev/null +++ b/talkonlineweb/src/main/resources/mapper/UserroleInfoMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + uid,uname,login, + passwd,headimg,hxid, + hid,hname,did, + dname,createdby,createdtime, + updatedby,updated_time,rid, + rname + +