Commit d694d9eef337a778bb5ad4db1055e63d5464c249
1 parent
6cfa437790
Exists in
master
文章关联科室值
Showing 15 changed files with 717 additions and 0 deletions
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/ArticleInfo.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatgroup.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUserrole.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/ArticleInfoMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatgroupMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsUserroleMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/ArticleInfoService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatgroupService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsUserroleService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/ArticleInfoServiceImpl.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatgroupServiceImpl.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsUserroleServiceImpl.java
- talkonlineweb/src/main/resources/mapper/ArticleInfoMapper.xml
- talkonlineweb/src/main/resources/mapper/LymsChatgroupMapper.xml
- talkonlineweb/src/main/resources/mapper/LymsUserroleMapper.xml
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/ArticleInfo.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.domain; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
| 4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
| 6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
| 7 | +import java.io.Serializable; | |
| 8 | +import java.util.Date; | |
| 9 | +import lombok.Data; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * | |
| 13 | + * @TableName article_info | |
| 14 | + */ | |
| 15 | +@TableName(value ="article_info") | |
| 16 | +@Data | |
| 17 | +public class ArticleInfo implements Serializable { | |
| 18 | + /** | |
| 19 | + * | |
| 20 | + */ | |
| 21 | + @TableField(value = "aid") | |
| 22 | + private Integer aid; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 科室id | |
| 26 | + */ | |
| 27 | + @TableField(value = "did") | |
| 28 | + private Integer did; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 疾病id | |
| 32 | + */ | |
| 33 | + @TableField(value = "iid") | |
| 34 | + private Integer iid; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 文章标题 | |
| 38 | + */ | |
| 39 | + @TableField(value = "title") | |
| 40 | + private String title; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * 文章内容 | |
| 44 | + */ | |
| 45 | + @TableField(value = "content") | |
| 46 | + private String content; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 是否发布. 0,否;1是 | |
| 50 | + */ | |
| 51 | + @TableField(value = "stat") | |
| 52 | + private Byte stat; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 创建人id | |
| 56 | + */ | |
| 57 | + @TableField(value = "createdby") | |
| 58 | + private Integer createdby; | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * 创建人姓名 | |
| 62 | + */ | |
| 63 | + @TableField(value = "cname") | |
| 64 | + private String cname; | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 创建时间 | |
| 68 | + */ | |
| 69 | + @TableField(value = "createdtime") | |
| 70 | + private Date createdtime; | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * 更新人id | |
| 74 | + */ | |
| 75 | + @TableField(value = "updatedby") | |
| 76 | + private Integer updatedby; | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * 更新人姓名 | |
| 80 | + */ | |
| 81 | + @TableField(value = "uname") | |
| 82 | + private String uname; | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * 更新时间 | |
| 86 | + */ | |
| 87 | + @TableField(value = "updated_time") | |
| 88 | + private Date updatedTime; | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * 科室标识 | |
| 92 | + */ | |
| 93 | + @TableField(value = "hddid") | |
| 94 | + private Integer hddid; | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * 科室名称 | |
| 98 | + */ | |
| 99 | + @TableField(value = "dname") | |
| 100 | + private String dname; | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * 所属医院id | |
| 104 | + */ | |
| 105 | + @TableField(value = "hid") | |
| 106 | + private Integer hid; | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * 所属医院名称 | |
| 110 | + */ | |
| 111 | + @TableField(value = "hname") | |
| 112 | + private String hname; | |
| 113 | + | |
| 114 | + /** | |
| 115 | + * 详细科目 | |
| 116 | + */ | |
| 117 | + @TableField(value = "subcatalog") | |
| 118 | + private String subcatalog; | |
| 119 | + | |
| 120 | + /** | |
| 121 | + * 科室介绍 | |
| 122 | + */ | |
| 123 | + @TableField(value = "intro") | |
| 124 | + private String intro; | |
| 125 | + | |
| 126 | + /** | |
| 127 | + * | |
| 128 | + */ | |
| 129 | + @TableField(value = "id") | |
| 130 | + private Integer id; | |
| 131 | + | |
| 132 | + /** | |
| 133 | + * 编码 | |
| 134 | + */ | |
| 135 | + @TableField(value = "code") | |
| 136 | + private Integer code; | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * 取值 | |
| 140 | + */ | |
| 141 | + @TableField(value = "value") | |
| 142 | + private String value; | |
| 143 | + | |
| 144 | + @TableField(exist = false) | |
| 145 | + private static final long serialVersionUID = 1L; | |
| 146 | + | |
| 147 | + @Override | |
| 148 | + public boolean equals(Object that) { | |
| 149 | + if (this == that) { | |
| 150 | + return true; | |
| 151 | + } | |
| 152 | + if (that == null) { | |
| 153 | + return false; | |
| 154 | + } | |
| 155 | + if (getClass() != that.getClass()) { | |
| 156 | + return false; | |
| 157 | + } | |
| 158 | + ArticleInfo other = (ArticleInfo) that; | |
| 159 | + return (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid())) | |
| 160 | + && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid())) | |
| 161 | + && (this.getIid() == null ? other.getIid() == null : this.getIid().equals(other.getIid())) | |
| 162 | + && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) | |
| 163 | + && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent())) | |
| 164 | + && (this.getStat() == null ? other.getStat() == null : this.getStat().equals(other.getStat())) | |
| 165 | + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) | |
| 166 | + && (this.getCname() == null ? other.getCname() == null : this.getCname().equals(other.getCname())) | |
| 167 | + && (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime())) | |
| 168 | + && (this.getUpdatedby() == null ? other.getUpdatedby() == null : this.getUpdatedby().equals(other.getUpdatedby())) | |
| 169 | + && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname())) | |
| 170 | + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) | |
| 171 | + && (this.getHddid() == null ? other.getHddid() == null : this.getHddid().equals(other.getHddid())) | |
| 172 | + && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname())) | |
| 173 | + && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid())) | |
| 174 | + && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname())) | |
| 175 | + && (this.getSubcatalog() == null ? other.getSubcatalog() == null : this.getSubcatalog().equals(other.getSubcatalog())) | |
| 176 | + && (this.getIntro() == null ? other.getIntro() == null : this.getIntro().equals(other.getIntro())) | |
| 177 | + && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | |
| 178 | + && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) | |
| 179 | + && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue())); | |
| 180 | + } | |
| 181 | + | |
| 182 | + @Override | |
| 183 | + public int hashCode() { | |
| 184 | + final int prime = 31; | |
| 185 | + int result = 1; | |
| 186 | + result = prime * result + ((getAid() == null) ? 0 : getAid().hashCode()); | |
| 187 | + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode()); | |
| 188 | + result = prime * result + ((getIid() == null) ? 0 : getIid().hashCode()); | |
| 189 | + result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); | |
| 190 | + result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode()); | |
| 191 | + result = prime * result + ((getStat() == null) ? 0 : getStat().hashCode()); | |
| 192 | + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); | |
| 193 | + result = prime * result + ((getCname() == null) ? 0 : getCname().hashCode()); | |
| 194 | + result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode()); | |
| 195 | + result = prime * result + ((getUpdatedby() == null) ? 0 : getUpdatedby().hashCode()); | |
| 196 | + result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode()); | |
| 197 | + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); | |
| 198 | + result = prime * result + ((getHddid() == null) ? 0 : getHddid().hashCode()); | |
| 199 | + result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode()); | |
| 200 | + result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode()); | |
| 201 | + result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode()); | |
| 202 | + result = prime * result + ((getSubcatalog() == null) ? 0 : getSubcatalog().hashCode()); | |
| 203 | + result = prime * result + ((getIntro() == null) ? 0 : getIntro().hashCode()); | |
| 204 | + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | |
| 205 | + result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); | |
| 206 | + result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode()); | |
| 207 | + return result; | |
| 208 | + } | |
| 209 | + | |
| 210 | + @Override | |
| 211 | + public String toString() { | |
| 212 | + StringBuilder sb = new StringBuilder(); | |
| 213 | + sb.append(getClass().getSimpleName()); | |
| 214 | + sb.append(" ["); | |
| 215 | + sb.append("Hash = ").append(hashCode()); | |
| 216 | + sb.append(", aid=").append(aid); | |
| 217 | + sb.append(", did=").append(did); | |
| 218 | + sb.append(", iid=").append(iid); | |
| 219 | + sb.append(", title=").append(title); | |
| 220 | + sb.append(", content=").append(content); | |
| 221 | + sb.append(", stat=").append(stat); | |
| 222 | + sb.append(", createdby=").append(createdby); | |
| 223 | + sb.append(", cname=").append(cname); | |
| 224 | + sb.append(", createdtime=").append(createdtime); | |
| 225 | + sb.append(", updatedby=").append(updatedby); | |
| 226 | + sb.append(", uname=").append(uname); | |
| 227 | + sb.append(", updatedTime=").append(updatedTime); | |
| 228 | + sb.append(", hddid=").append(hddid); | |
| 229 | + sb.append(", dname=").append(dname); | |
| 230 | + sb.append(", hid=").append(hid); | |
| 231 | + sb.append(", hname=").append(hname); | |
| 232 | + sb.append(", subcatalog=").append(subcatalog); | |
| 233 | + sb.append(", intro=").append(intro); | |
| 234 | + sb.append(", id=").append(id); | |
| 235 | + sb.append(", code=").append(code); | |
| 236 | + sb.append(", value=").append(value); | |
| 237 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 238 | + sb.append("]"); | |
| 239 | + return sb.toString(); | |
| 240 | + } | |
| 241 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatgroup.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.domain; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
| 4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
| 6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
| 7 | +import java.io.Serializable; | |
| 8 | +import java.util.Date; | |
| 9 | +import lombok.Data; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * | |
| 13 | + * @TableName lyms_chatgroup | |
| 14 | + */ | |
| 15 | +@TableName(value ="lyms_chatgroup") | |
| 16 | +@Data | |
| 17 | +public class LymsChatgroup implements Serializable { | |
| 18 | + /** | |
| 19 | + * | |
| 20 | + */ | |
| 21 | + @TableField(value = "id") | |
| 22 | + private Integer id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * | |
| 26 | + */ | |
| 27 | + @TableField(value = "groupname") | |
| 28 | + private String groupname; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * | |
| 32 | + */ | |
| 33 | + @TableField(value = "description") | |
| 34 | + private String description; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 客服人员ID | |
| 38 | + */ | |
| 39 | + @TableField(value = "owner") | |
| 40 | + private Integer owner; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * 患者ID | |
| 44 | + */ | |
| 45 | + @TableField(value = "from") | |
| 46 | + private Integer from; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 医生ID | |
| 50 | + */ | |
| 51 | + @TableField(value = "target") | |
| 52 | + private Integer target; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 创建时间 | |
| 56 | + */ | |
| 57 | + @TableField(value = "ctime") | |
| 58 | + private Date ctime; | |
| 59 | + | |
| 60 | + @TableField(exist = false) | |
| 61 | + private static final long serialVersionUID = 1L; | |
| 62 | + | |
| 63 | + @Override | |
| 64 | + public boolean equals(Object that) { | |
| 65 | + if (this == that) { | |
| 66 | + return true; | |
| 67 | + } | |
| 68 | + if (that == null) { | |
| 69 | + return false; | |
| 70 | + } | |
| 71 | + if (getClass() != that.getClass()) { | |
| 72 | + return false; | |
| 73 | + } | |
| 74 | + LymsChatgroup other = (LymsChatgroup) that; | |
| 75 | + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | |
| 76 | + && (this.getGroupname() == null ? other.getGroupname() == null : this.getGroupname().equals(other.getGroupname())) | |
| 77 | + && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) | |
| 78 | + && (this.getOwner() == null ? other.getOwner() == null : this.getOwner().equals(other.getOwner())) | |
| 79 | + && (this.getFrom() == null ? other.getFrom() == null : this.getFrom().equals(other.getFrom())) | |
| 80 | + && (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget())) | |
| 81 | + && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime())); | |
| 82 | + } | |
| 83 | + | |
| 84 | + @Override | |
| 85 | + public int hashCode() { | |
| 86 | + final int prime = 31; | |
| 87 | + int result = 1; | |
| 88 | + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | |
| 89 | + result = prime * result + ((getGroupname() == null) ? 0 : getGroupname().hashCode()); | |
| 90 | + result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); | |
| 91 | + result = prime * result + ((getOwner() == null) ? 0 : getOwner().hashCode()); | |
| 92 | + result = prime * result + ((getFrom() == null) ? 0 : getFrom().hashCode()); | |
| 93 | + result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode()); | |
| 94 | + result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode()); | |
| 95 | + return result; | |
| 96 | + } | |
| 97 | + | |
| 98 | + @Override | |
| 99 | + public String toString() { | |
| 100 | + StringBuilder sb = new StringBuilder(); | |
| 101 | + sb.append(getClass().getSimpleName()); | |
| 102 | + sb.append(" ["); | |
| 103 | + sb.append("Hash = ").append(hashCode()); | |
| 104 | + sb.append(", id=").append(id); | |
| 105 | + sb.append(", groupname=").append(groupname); | |
| 106 | + sb.append(", description=").append(description); | |
| 107 | + sb.append(", owner=").append(owner); | |
| 108 | + sb.append(", from=").append(from); | |
| 109 | + sb.append(", target=").append(target); | |
| 110 | + sb.append(", ctime=").append(ctime); | |
| 111 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 112 | + sb.append("]"); | |
| 113 | + return sb.toString(); | |
| 114 | + } | |
| 115 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUserrole.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.domain; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
| 4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
| 6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
| 7 | +import java.io.Serializable; | |
| 8 | +import java.util.Date; | |
| 9 | +import lombok.Data; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 用户角色关系表 | |
| 13 | + * @TableName lyms_userrole | |
| 14 | + */ | |
| 15 | +@TableName(value ="lyms_userrole") | |
| 16 | +@Data | |
| 17 | +public class LymsUserrole implements Serializable { | |
| 18 | + /** | |
| 19 | + * | |
| 20 | + */ | |
| 21 | + @TableId(value = "id", type = IdType.AUTO) | |
| 22 | + private Integer id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 用户id | |
| 26 | + */ | |
| 27 | + @TableField(value = "uid") | |
| 28 | + private Integer uid; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 角色id | |
| 32 | + */ | |
| 33 | + @TableField(value = "rid") | |
| 34 | + private Integer rid; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 创建人 | |
| 38 | + */ | |
| 39 | + @TableField(value = "createdby") | |
| 40 | + private Integer createdby; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * 创建时间 | |
| 44 | + */ | |
| 45 | + @TableField(value = "createdtime") | |
| 46 | + private Date createdtime; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 更新人 | |
| 50 | + */ | |
| 51 | + @TableField(value = "updatedby") | |
| 52 | + private Integer updatedby; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 更新时间 | |
| 56 | + */ | |
| 57 | + @TableField(value = "updated_time") | |
| 58 | + private Date updatedTime; | |
| 59 | + | |
| 60 | + @TableField(exist = false) | |
| 61 | + private static final long serialVersionUID = 1L; | |
| 62 | + | |
| 63 | + @Override | |
| 64 | + public boolean equals(Object that) { | |
| 65 | + if (this == that) { | |
| 66 | + return true; | |
| 67 | + } | |
| 68 | + if (that == null) { | |
| 69 | + return false; | |
| 70 | + } | |
| 71 | + if (getClass() != that.getClass()) { | |
| 72 | + return false; | |
| 73 | + } | |
| 74 | + LymsUserrole other = (LymsUserrole) that; | |
| 75 | + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | |
| 76 | + && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid())) | |
| 77 | + && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid())) | |
| 78 | + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) | |
| 79 | + && (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime())) | |
| 80 | + && (this.getUpdatedby() == null ? other.getUpdatedby() == null : this.getUpdatedby().equals(other.getUpdatedby())) | |
| 81 | + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())); | |
| 82 | + } | |
| 83 | + | |
| 84 | + @Override | |
| 85 | + public int hashCode() { | |
| 86 | + final int prime = 31; | |
| 87 | + int result = 1; | |
| 88 | + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | |
| 89 | + result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode()); | |
| 90 | + result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode()); | |
| 91 | + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); | |
| 92 | + result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode()); | |
| 93 | + result = prime * result + ((getUpdatedby() == null) ? 0 : getUpdatedby().hashCode()); | |
| 94 | + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); | |
| 95 | + return result; | |
| 96 | + } | |
| 97 | + | |
| 98 | + @Override | |
| 99 | + public String toString() { | |
| 100 | + StringBuilder sb = new StringBuilder(); | |
| 101 | + sb.append(getClass().getSimpleName()); | |
| 102 | + sb.append(" ["); | |
| 103 | + sb.append("Hash = ").append(hashCode()); | |
| 104 | + sb.append(", id=").append(id); | |
| 105 | + sb.append(", uid=").append(uid); | |
| 106 | + sb.append(", rid=").append(rid); | |
| 107 | + sb.append(", createdby=").append(createdby); | |
| 108 | + sb.append(", createdtime=").append(createdtime); | |
| 109 | + sb.append(", updatedby=").append(updatedby); | |
| 110 | + sb.append(", updatedTime=").append(updatedTime); | |
| 111 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 112 | + sb.append("]"); | |
| 113 | + return sb.toString(); | |
| 114 | + } | |
| 115 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/ArticleInfoMapper.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.mapper; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.ArticleInfo; | |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * @Entity com.lyms.talkonlineweb.domain.ArticleInfo | |
| 8 | + */ | |
| 9 | +public interface ArticleInfoMapper extends BaseMapper<ArticleInfo> { | |
| 10 | + | |
| 11 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatgroupMapper.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.mapper; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.LymsChatgroup; | |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * @Entity com.lyms.talkonlineweb.domain.LymsChatgroup | |
| 8 | + */ | |
| 9 | +public interface LymsChatgroupMapper extends BaseMapper<LymsChatgroup> { | |
| 10 | + | |
| 11 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsUserroleMapper.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.mapper; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.LymsUserrole; | |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
| 5 | +import org.apache.ibatis.annotations.Delete; | |
| 6 | +import org.apache.ibatis.annotations.Insert; | |
| 7 | +import org.apache.ibatis.annotations.Param; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * @Entity com.lyms.talkonlineweb.domain.LymsUserrole | |
| 11 | + */ | |
| 12 | +public interface LymsUserroleMapper extends BaseMapper<LymsUserrole> { | |
| 13 | + | |
| 14 | + @Delete("delete from lyms_userrole where uid=#{uid}") | |
| 15 | + int delRoleByUser(@Param("uid") int uid); | |
| 16 | + | |
| 17 | + @Insert(("insert into lyms_userrole(uid,rid) values(#{rid},#{rid})")) | |
| 18 | + int addRoleUser(@Param("uid") int uid,@Param("rid") int rid); | |
| 19 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/ArticleInfoService.java
View file @
d694d9e
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatgroupService.java
View file @
d694d9e
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsUserroleService.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.service; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.LymsUserrole; | |
| 4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * | |
| 8 | + */ | |
| 9 | +public interface LymsUserroleService extends IService<LymsUserrole> { | |
| 10 | + | |
| 11 | + int delRoleByUser(int uid); | |
| 12 | + | |
| 13 | + int addRoleUser(int uid, int rid); | |
| 14 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/ArticleInfoServiceImpl.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.service.impl; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
| 4 | +import com.lyms.talkonlineweb.domain.ArticleInfo; | |
| 5 | +import com.lyms.talkonlineweb.service.ArticleInfoService; | |
| 6 | +import com.lyms.talkonlineweb.mapper.ArticleInfoMapper; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * | |
| 11 | + */ | |
| 12 | +@Service | |
| 13 | +public class ArticleInfoServiceImpl extends ServiceImpl<ArticleInfoMapper, ArticleInfo> | |
| 14 | + implements ArticleInfoService{ | |
| 15 | + | |
| 16 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatgroupServiceImpl.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.service.impl; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
| 4 | +import com.lyms.talkonlineweb.domain.LymsChatgroup; | |
| 5 | +import com.lyms.talkonlineweb.service.LymsChatgroupService; | |
| 6 | +import com.lyms.talkonlineweb.mapper.LymsChatgroupMapper; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * | |
| 11 | + */ | |
| 12 | +@Service | |
| 13 | +public class LymsChatgroupServiceImpl extends ServiceImpl<LymsChatgroupMapper, LymsChatgroup> | |
| 14 | + implements LymsChatgroupService{ | |
| 15 | + | |
| 16 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsUserroleServiceImpl.java
View file @
d694d9e
| 1 | +package com.lyms.talkonlineweb.service.impl; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
| 4 | +import com.lyms.talkonlineweb.domain.LymsUserrole; | |
| 5 | +import com.lyms.talkonlineweb.service.LymsUserroleService; | |
| 6 | +import com.lyms.talkonlineweb.mapper.LymsUserroleMapper; | |
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | +import org.springframework.stereotype.Service; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * | |
| 12 | + */ | |
| 13 | +@Service | |
| 14 | +public class LymsUserroleServiceImpl extends ServiceImpl<LymsUserroleMapper, LymsUserrole> | |
| 15 | + implements LymsUserroleService{ | |
| 16 | + | |
| 17 | + @Autowired | |
| 18 | + private LymsUserroleMapper lymsUserroleMapper; | |
| 19 | + | |
| 20 | + @Override | |
| 21 | + public int delRoleByUser(int uid) { | |
| 22 | + return lymsUserroleMapper.delRoleByUser(uid); | |
| 23 | + } | |
| 24 | + | |
| 25 | + @Override | |
| 26 | + public int addRoleUser(int uid, int rid) { | |
| 27 | + return lymsUserroleMapper.addRoleUser(uid,rid); | |
| 28 | + } | |
| 29 | +} |
talkonlineweb/src/main/resources/mapper/ArticleInfoMapper.xml
View file @
d694d9e
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper | |
| 3 | + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
| 4 | + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 5 | +<mapper namespace="com.lyms.talkonlineweb.mapper.ArticleInfoMapper"> | |
| 6 | + | |
| 7 | + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.ArticleInfo"> | |
| 8 | + <result property="aid" column="aid" jdbcType="INTEGER"/> | |
| 9 | + <result property="did" column="did" jdbcType="INTEGER"/> | |
| 10 | + <result property="iid" column="iid" jdbcType="INTEGER"/> | |
| 11 | + <result property="title" column="title" jdbcType="VARCHAR"/> | |
| 12 | + <result property="content" column="content" jdbcType="VARCHAR"/> | |
| 13 | + <result property="stat" column="stat" jdbcType="TINYINT"/> | |
| 14 | + <result property="createdby" column="createdby" jdbcType="INTEGER"/> | |
| 15 | + <result property="cname" column="cname" jdbcType="VARCHAR"/> | |
| 16 | + <result property="createdtime" column="createdtime" jdbcType="TIMESTAMP"/> | |
| 17 | + <result property="updatedby" column="updatedby" jdbcType="INTEGER"/> | |
| 18 | + <result property="uname" column="uname" jdbcType="VARCHAR"/> | |
| 19 | + <result property="updatedTime" column="updated_time" jdbcType="TIMESTAMP"/> | |
| 20 | + <result property="hddid" column="hddid" jdbcType="INTEGER"/> | |
| 21 | + <result property="dname" column="dname" jdbcType="VARCHAR"/> | |
| 22 | + <result property="hid" column="hid" jdbcType="INTEGER"/> | |
| 23 | + <result property="hname" column="hname" jdbcType="VARCHAR"/> | |
| 24 | + <result property="subcatalog" column="subcatalog" jdbcType="VARCHAR"/> | |
| 25 | + <result property="intro" column="intro" jdbcType="VARCHAR"/> | |
| 26 | + <result property="id" column="id" jdbcType="INTEGER"/> | |
| 27 | + <result property="code" column="code" jdbcType="INTEGER"/> | |
| 28 | + <result property="value" column="value" jdbcType="VARCHAR"/> | |
| 29 | + </resultMap> | |
| 30 | + | |
| 31 | + <sql id="Base_Column_List"> | |
| 32 | + aid,did,iid, | |
| 33 | + title,content,stat, | |
| 34 | + createdby,cname,createdtime, | |
| 35 | + updatedby,uname,updated_time, | |
| 36 | + hddid,dname,hid, | |
| 37 | + hname,subcatalog,intro, | |
| 38 | + id,code,value | |
| 39 | + </sql> | |
| 40 | +</mapper> |
talkonlineweb/src/main/resources/mapper/LymsChatgroupMapper.xml
View file @
d694d9e
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper | |
| 3 | + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
| 4 | + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 5 | +<mapper namespace="com.lyms.talkonlineweb.mapper.LymsChatgroupMapper"> | |
| 6 | + | |
| 7 | + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsChatgroup"> | |
| 8 | + <result property="id" column="id" jdbcType="INTEGER"/> | |
| 9 | + <result property="groupname" column="groupname" jdbcType="VARCHAR"/> | |
| 10 | + <result property="description" column="description" jdbcType="VARCHAR"/> | |
| 11 | + <result property="owner" column="owner" jdbcType="INTEGER"/> | |
| 12 | + <result property="from" column="from" jdbcType="INTEGER"/> | |
| 13 | + <result property="target" column="target" jdbcType="INTEGER"/> | |
| 14 | + <result property="ctime" column="ctime" jdbcType="TIMESTAMP"/> | |
| 15 | + </resultMap> | |
| 16 | + | |
| 17 | + <sql id="Base_Column_List"> | |
| 18 | + id,groupname,description, | |
| 19 | + owner,from,target, | |
| 20 | + ctime | |
| 21 | + </sql> | |
| 22 | +</mapper> |
talkonlineweb/src/main/resources/mapper/LymsUserroleMapper.xml
View file @
d694d9e
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper | |
| 3 | + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
| 4 | + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 5 | +<mapper namespace="com.lyms.talkonlineweb.mapper.LymsUserroleMapper"> | |
| 6 | + | |
| 7 | + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsUserrole"> | |
| 8 | + <id property="id" column="id" jdbcType="INTEGER"/> | |
| 9 | + <result property="uid" column="uid" jdbcType="INTEGER"/> | |
| 10 | + <result property="rid" column="rid" jdbcType="INTEGER"/> | |
| 11 | + <result property="createdby" column="createdby" jdbcType="INTEGER"/> | |
| 12 | + <result property="createdtime" column="createdtime" jdbcType="TIMESTAMP"/> | |
| 13 | + <result property="updatedby" column="updatedby" jdbcType="INTEGER"/> | |
| 14 | + <result property="updatedTime" column="updated_time" jdbcType="TIMESTAMP"/> | |
| 15 | + </resultMap> | |
| 16 | + | |
| 17 | + <sql id="Base_Column_List"> | |
| 18 | + id,uid,rid, | |
| 19 | + createdby,createdtime,updatedby, | |
| 20 | + updated_time | |
| 21 | + </sql> | |
| 22 | +</mapper> |