Commit 8da58d6ba1b2e0f34309e994794d2ac861a4d4bd
1 parent
93e7fcc6f8
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 13 additions and 2 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/model/DoctorTeam.java
View file @
8da58d6
| ... | ... | @@ -12,8 +12,18 @@ |
| 12 | 12 | private String teamName; |
| 13 | 13 | //机构id |
| 14 | 14 | private Integer orgId; |
| 15 | + //机构名称 | |
| 16 | + private String orgName; | |
| 15 | 17 | //创建时间 |
| 16 | 18 | private Date created; |
| 19 | + | |
| 20 | + public String getOrgName() { | |
| 21 | + return orgName; | |
| 22 | + } | |
| 23 | + | |
| 24 | + public void setOrgName(String orgName) { | |
| 25 | + this.orgName = orgName; | |
| 26 | + } | |
| 17 | 27 | |
| 18 | 28 | public Date getCreated() { |
| 19 | 29 | return created; |
platform-biz-service/src/main/resources/mainOrm/master/DoctorTeamMapper.xml
View file @
8da58d6
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | <id column="id" property="id" jdbcType="INTEGER"/> |
| 7 | 7 | <result column="team_name" property="teamName" jdbcType="VARCHAR"/> |
| 8 | 8 | <result column="org_id" property="orgId" jdbcType="INTEGER"/> |
| 9 | + <result column="orgname" property="orgName" jdbcType="VARCHAR"/> | |
| 9 | 10 | <result column="created" property="created" jdbcType="TIMESTAMP"/> |
| 10 | 11 | </resultMap> |
| 11 | 12 | |
| ... | ... | @@ -64,8 +65,8 @@ |
| 64 | 65 | |
| 65 | 66 | <select id="queryListDoctorTeam" resultMap="DoctorTeamResultMap" parameterType="com.lyms.platform.permission.model.DoctorTeam"> |
| 66 | 67 | select |
| 67 | - id,team_name,org_id,created | |
| 68 | - from doctor_team | |
| 68 | + d.id,d.team_name,d.org_id,o.name as orgname ,d.created | |
| 69 | + from doctor_team d left join organization o on d.org_id=o.id | |
| 69 | 70 | <include refid="DoctorTeamCondition"/> |
| 70 | 71 | <include refid="DoctorTeamLimit"/> |
| 71 | 72 | </select> |