|
|
@ -922,6 +922,7 @@ |
|
|
|
<resultMap id="departmentData1" type="com.ccsens.carbasics.bean.vo.ManagementVo$HospitalData"> |
|
|
|
<id property="did" column="did"/> |
|
|
|
<result property="departmentName" column="departmentName"/> |
|
|
|
<result property="departmentIsShow" column="departmentIsShow"/> |
|
|
|
<collection property="positionInfoList" javaType="List" ofType="com.ccsens.carbasics.bean.vo.ManagementVo$PositionInfo"> |
|
|
|
<id property="pid" column="pid"/> |
|
|
|
<result property="pName" column="pName"/> |
|
|
@ -941,6 +942,7 @@ |
|
|
|
o.id, |
|
|
|
o.`name` AS hName, |
|
|
|
od.id AS did, |
|
|
|
false AS departmentIsShow, |
|
|
|
od.`name` AS departmentName, |
|
|
|
op.id AS pid, |
|
|
|
op.role_name AS pName, |
|
|
@ -951,8 +953,9 @@ |
|
|
|
m.contact AS phone |
|
|
|
FROM |
|
|
|
t_organization AS o |
|
|
|
LEFT JOIN t_organization_department AS od ON o.id = od.organization_id |
|
|
|
LEFT JOIN t_organization_position AS op ON od.id = op.department_id |
|
|
|
LEFT JOIN t_organization_department AS od ON o.id = od.organization_id AND od.rec_status = 0 |
|
|
|
LEFT JOIN t_organization_department_parent AS dp ON od.id = dp.department_id |
|
|
|
LEFT JOIN t_organization_position AS op ON od.id = op.department_id AND op.rec_status = 0 |
|
|
|
LEFT JOIN t_organization_position_type_relation AS ptr ON ptr.position_id = op.id |
|
|
|
AND ptr.rec_status = 0 |
|
|
|
LEFT JOIN t_organization_position_type AS pt ON ptr.position_type_id = pt.id |
|
|
@ -964,8 +967,8 @@ |
|
|
|
WHERE |
|
|
|
o.rec_status = 0 |
|
|
|
AND o.id = #{param.id} |
|
|
|
AND od.rec_status = 0 |
|
|
|
AND op.rec_status = 0 |
|
|
|
AND dp.rec_status IS NULL |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="querySonDepartmentData" resultMap="departmentData1"> |
|
|
|