科室上级科室信息
This commit is contained in:
parent
de03286f27
commit
293e8b0257
@ -2,6 +2,7 @@ package com.xinelu.manage.mapper.department;
|
|||||||
|
|
||||||
import com.xinelu.manage.domain.department.Department;
|
import com.xinelu.manage.domain.department.Department;
|
||||||
import com.xinelu.manage.dto.department.DepartmentDTO;
|
import com.xinelu.manage.dto.department.DepartmentDTO;
|
||||||
|
import com.xinelu.manage.vo.department.DepartmentListVO;
|
||||||
import com.xinelu.manage.vo.department.DepartmentVO;
|
import com.xinelu.manage.vo.department.DepartmentVO;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
@ -23,6 +24,14 @@ public interface DepartmentMapper {
|
|||||||
*/
|
*/
|
||||||
Department selectDepartmentById(Long id);
|
Department selectDepartmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询科室信息
|
||||||
|
*
|
||||||
|
* @param id 科室信息主键
|
||||||
|
* @return 科室信息
|
||||||
|
*/
|
||||||
|
DepartmentListVO selectDepartment(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询科室信息列表
|
* 查询科室信息列表
|
||||||
*
|
*
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package com.xinelu.manage.service.department;
|
|||||||
import com.xinelu.common.core.domain.AjaxResult;
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
import com.xinelu.manage.domain.department.Department;
|
import com.xinelu.manage.domain.department.Department;
|
||||||
import com.xinelu.manage.dto.department.DepartmentDTO;
|
import com.xinelu.manage.dto.department.DepartmentDTO;
|
||||||
|
import com.xinelu.manage.vo.department.DepartmentListVO;
|
||||||
import com.xinelu.manage.vo.department.DepartmentVO;
|
import com.xinelu.manage.vo.department.DepartmentVO;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -21,7 +22,7 @@ public interface IDepartmentService {
|
|||||||
* @param id 科室信息主键
|
* @param id 科室信息主键
|
||||||
* @return 科室信息
|
* @return 科室信息
|
||||||
*/
|
*/
|
||||||
Department selectDepartmentById(Long id);
|
DepartmentListVO selectDepartmentById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询科室信息列表
|
* 查询科室信息列表
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import com.xinelu.manage.domain.department.Department;
|
|||||||
import com.xinelu.manage.dto.department.DepartmentDTO;
|
import com.xinelu.manage.dto.department.DepartmentDTO;
|
||||||
import com.xinelu.manage.mapper.department.DepartmentMapper;
|
import com.xinelu.manage.mapper.department.DepartmentMapper;
|
||||||
import com.xinelu.manage.service.department.IDepartmentService;
|
import com.xinelu.manage.service.department.IDepartmentService;
|
||||||
|
import com.xinelu.manage.vo.department.DepartmentListVO;
|
||||||
import com.xinelu.manage.vo.department.DepartmentVO;
|
import com.xinelu.manage.vo.department.DepartmentVO;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.BooleanUtils;
|
import org.apache.commons.lang3.BooleanUtils;
|
||||||
@ -45,8 +46,8 @@ public class DepartmentServiceImpl implements IDepartmentService {
|
|||||||
* @return 科室信息
|
* @return 科室信息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Department selectDepartmentById(Long id) {
|
public DepartmentListVO selectDepartmentById(Long id) {
|
||||||
return departmentMapper.selectDepartmentById(id);
|
return departmentMapper.selectDepartment(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -140,7 +141,6 @@ public class DepartmentServiceImpl implements IDepartmentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 查询科室信息列表及包含短信库数量
|
* 查询科室信息列表及包含短信库数量
|
||||||
*
|
*
|
||||||
* @param departmentDto
|
* @param departmentDto
|
||||||
|
|||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.xinelu.manage.vo.department;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.department.Department;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室信息对象vo
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-02-26
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
public class DepartmentListVO extends Department {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上级科室名称
|
||||||
|
*/
|
||||||
|
private String parentDepartmentName;
|
||||||
|
}
|
||||||
@ -7,8 +7,6 @@ import lombok.AllArgsConstructor;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author : youxilong
|
* @author : youxilong
|
||||||
@ -44,17 +42,4 @@ public class DepartmentVO extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "科室代码")
|
@ApiModelProperty(value = "科室代码")
|
||||||
private Integer countNum;
|
private Integer countNum;
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("departmentName", getDepartmentName())
|
|
||||||
.append("departmentCode", getDepartmentCode())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,6 +133,37 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDepartment" resultType="com.xinelu.manage.vo.department.DepartmentListVO">
|
||||||
|
select id,
|
||||||
|
dt.parent_department_id,
|
||||||
|
agency_id,
|
||||||
|
agency_name,
|
||||||
|
department_name,
|
||||||
|
department_code,
|
||||||
|
department_type,
|
||||||
|
department_abbreviation,
|
||||||
|
department_person_id,
|
||||||
|
department_person_name,
|
||||||
|
node_type,
|
||||||
|
provide_service_category,
|
||||||
|
subdivision_category_id,
|
||||||
|
subdivision_category_name,
|
||||||
|
norm_department_compare_id,
|
||||||
|
norm_department_compare_name,
|
||||||
|
prepare_beds_count,
|
||||||
|
department_phone,
|
||||||
|
department_mail,
|
||||||
|
establish_date,
|
||||||
|
revoke_date,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_by,
|
||||||
|
update_time,
|
||||||
|
(select department_name from department where id = dt.parent_department_id) parentDepartmentName
|
||||||
|
from department dt
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectDepartmentListScriptNum" resultType="com.xinelu.manage.vo.department.DepartmentVO">
|
<select id="selectDepartmentListScriptNum" resultType="com.xinelu.manage.vo.department.DepartmentVO">
|
||||||
select d.id,
|
select d.id,
|
||||||
d.department_name,
|
d.department_name,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user