Commit d792934b844e4b46b8d89f0754b013a1a70e7006
1 parent
04a3893aef
Exists in
master
and in
1 other branch
科室视图列表
Showing 5 changed files with 209 additions and 1 deletions
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/HdepartInfo.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHdepart.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/HdepartInfoMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/HdepartInfoService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/HdepartInfoServiceImpl.java
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/HdepartInfo.java
View file @
d792934
| 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 hdepart_info | |
| 14 | + */ | |
| 15 | +@TableName(value ="hdepart_info") | |
| 16 | +@Data | |
| 17 | +public class HdepartInfo implements Serializable { | |
| 18 | + /** | |
| 19 | + * 科室标识 | |
| 20 | + */ | |
| 21 | + @TableField(value = "did") | |
| 22 | + private Integer did; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 科室名称 | |
| 26 | + */ | |
| 27 | + @TableField(value = "dname") | |
| 28 | + private String dname; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 所属医院id | |
| 32 | + */ | |
| 33 | + @TableField(value = "hid") | |
| 34 | + private Integer hid; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 所属医院名称 | |
| 38 | + */ | |
| 39 | + @TableField(value = "hname") | |
| 40 | + private String hname; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * 科室项目 | |
| 44 | + */ | |
| 45 | + @TableField(value = "subcatalog") | |
| 46 | + private String subcatalog; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 科室介绍 | |
| 50 | + */ | |
| 51 | + @TableField(value = "intro") | |
| 52 | + private String intro; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * 创建人 | |
| 56 | + */ | |
| 57 | + @TableField(value = "createdby") | |
| 58 | + private Integer createdby; | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * 创建人姓名或账号 | |
| 62 | + */ | |
| 63 | + @TableField(value = "creator") | |
| 64 | + private String creator; | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 创建时间 | |
| 68 | + */ | |
| 69 | + @TableField(value = "createdtime") | |
| 70 | + private Date createdtime; | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * 更新人 | |
| 74 | + */ | |
| 75 | + @TableField(value = "updatedby") | |
| 76 | + private Integer updatedby; | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * 更新时间 | |
| 80 | + */ | |
| 81 | + @TableField(value = "updated_time") | |
| 82 | + private Date updatedTime; | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * 医院类型名称 | |
| 86 | + */ | |
| 87 | + @TableField(value = "htypename") | |
| 88 | + private String htypename; | |
| 89 | + | |
| 90 | + @TableField(exist = false) | |
| 91 | + private static final long serialVersionUID = 1L; | |
| 92 | + | |
| 93 | + @Override | |
| 94 | + public boolean equals(Object that) { | |
| 95 | + if (this == that) { | |
| 96 | + return true; | |
| 97 | + } | |
| 98 | + if (that == null) { | |
| 99 | + return false; | |
| 100 | + } | |
| 101 | + if (getClass() != that.getClass()) { | |
| 102 | + return false; | |
| 103 | + } | |
| 104 | + HdepartInfo other = (HdepartInfo) that; | |
| 105 | + return (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid())) | |
| 106 | + && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname())) | |
| 107 | + && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid())) | |
| 108 | + && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname())) | |
| 109 | + && (this.getSubcatalog() == null ? other.getSubcatalog() == null : this.getSubcatalog().equals(other.getSubcatalog())) | |
| 110 | + && (this.getIntro() == null ? other.getIntro() == null : this.getIntro().equals(other.getIntro())) | |
| 111 | + && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) | |
| 112 | + && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator())) | |
| 113 | + && (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime())) | |
| 114 | + && (this.getUpdatedby() == null ? other.getUpdatedby() == null : this.getUpdatedby().equals(other.getUpdatedby())) | |
| 115 | + && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) | |
| 116 | + && (this.getHtypename() == null ? other.getHtypename() == null : this.getHtypename().equals(other.getHtypename())); | |
| 117 | + } | |
| 118 | + | |
| 119 | + @Override | |
| 120 | + public int hashCode() { | |
| 121 | + final int prime = 31; | |
| 122 | + int result = 1; | |
| 123 | + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode()); | |
| 124 | + result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode()); | |
| 125 | + result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode()); | |
| 126 | + result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode()); | |
| 127 | + result = prime * result + ((getSubcatalog() == null) ? 0 : getSubcatalog().hashCode()); | |
| 128 | + result = prime * result + ((getIntro() == null) ? 0 : getIntro().hashCode()); | |
| 129 | + result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); | |
| 130 | + result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode()); | |
| 131 | + result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode()); | |
| 132 | + result = prime * result + ((getUpdatedby() == null) ? 0 : getUpdatedby().hashCode()); | |
| 133 | + result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); | |
| 134 | + result = prime * result + ((getHtypename() == null) ? 0 : getHtypename().hashCode()); | |
| 135 | + return result; | |
| 136 | + } | |
| 137 | + | |
| 138 | + @Override | |
| 139 | + public String toString() { | |
| 140 | + StringBuilder sb = new StringBuilder(); | |
| 141 | + sb.append(getClass().getSimpleName()); | |
| 142 | + sb.append(" ["); | |
| 143 | + sb.append("Hash = ").append(hashCode()); | |
| 144 | + sb.append(", did=").append(did); | |
| 145 | + sb.append(", dname=").append(dname); | |
| 146 | + sb.append(", hid=").append(hid); | |
| 147 | + sb.append(", hname=").append(hname); | |
| 148 | + sb.append(", subcatalog=").append(subcatalog); | |
| 149 | + sb.append(", intro=").append(intro); | |
| 150 | + sb.append(", createdby=").append(createdby); | |
| 151 | + sb.append(", creator=").append(creator); | |
| 152 | + sb.append(", createdtime=").append(createdtime); | |
| 153 | + sb.append(", updatedby=").append(updatedby); | |
| 154 | + sb.append(", updatedTime=").append(updatedTime); | |
| 155 | + sb.append(", htypename=").append(htypename); | |
| 156 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 157 | + sb.append("]"); | |
| 158 | + return sb.toString(); | |
| 159 | + } | |
| 160 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHdepart.java
View file @
d792934
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/HdepartInfoMapper.java
View file @
d792934
| 1 | +package com.lyms.talkonlineweb.mapper; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.HdepartInfo; | |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * @Entity com.lyms.talkonlineweb.domain.HdepartInfo | |
| 8 | + */ | |
| 9 | +public interface HdepartInfoMapper extends BaseMapper<HdepartInfo> { | |
| 10 | + | |
| 11 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/HdepartInfoService.java
View file @
d792934
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/HdepartInfoServiceImpl.java
View file @
d792934
| 1 | +package com.lyms.talkonlineweb.service.impl; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
| 4 | +import com.lyms.talkonlineweb.domain.HdepartInfo; | |
| 5 | +import com.lyms.talkonlineweb.service.HdepartInfoService; | |
| 6 | +import com.lyms.talkonlineweb.mapper.HdepartInfoMapper; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * | |
| 11 | + */ | |
| 12 | +@Service | |
| 13 | +public class HdepartInfoServiceImpl extends ServiceImpl<HdepartInfoMapper, HdepartInfo> | |
| 14 | + implements HdepartInfoService{ | |
| 15 | + | |
| 16 | +} |