修改医生列表导出
This commit is contained in:
parent
9a2b216e31
commit
174ab61402
@ -73,6 +73,8 @@ type UserDoctorData struct {
|
|||||||
Avatar string // 头像
|
Avatar string // 头像
|
||||||
DoctorTitle string // 医生职称(1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
|
DoctorTitle string // 医生职称(1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
|
||||||
DepartmentCustomName string // 科室名称(如未自己输入,填入标准科室名称)
|
DepartmentCustomName string // 科室名称(如未自己输入,填入标准科室名称)
|
||||||
|
DepartmentName string // 标准科室名称
|
||||||
|
DepartmentCode string // 标准科室编码
|
||||||
DepartmentCustomMobile string // 科室电话
|
DepartmentCustomMobile string // 科室电话
|
||||||
HospitalName string // 医院名称
|
HospitalName string // 医院名称
|
||||||
ServedPatientsNum string // 服务患者数量(订单结束时统计)
|
ServedPatientsNum string // 服务患者数量(订单结束时统计)
|
||||||
@ -583,7 +585,9 @@ func (r *ExportService) UserDoctor(userDoctors []*model.UserDoctor) (string, err
|
|||||||
{Value: "首页推荐", CellType: "string", NumberFmt: "", ColWidth: 18},
|
{Value: "首页推荐", CellType: "string", NumberFmt: "", ColWidth: 18},
|
||||||
{Value: "头像", CellType: "string", NumberFmt: "", ColWidth: 50},
|
{Value: "头像", CellType: "string", NumberFmt: "", ColWidth: 50},
|
||||||
{Value: "医生职称", CellType: "string", NumberFmt: "", ColWidth: 18},
|
{Value: "医生职称", CellType: "string", NumberFmt: "", ColWidth: 18},
|
||||||
{Value: "科室名称", CellType: "string", NumberFmt: "", ColWidth: 18},
|
{Value: "自定义科室名称", CellType: "string", NumberFmt: "", ColWidth: 20},
|
||||||
|
{Value: "标准科室名称", CellType: "string", NumberFmt: "", ColWidth: 20},
|
||||||
|
{Value: "标准科室编码", CellType: "string", NumberFmt: "", ColWidth: 20},
|
||||||
{Value: "科室电话", CellType: "string", NumberFmt: "", ColWidth: 18},
|
{Value: "科室电话", CellType: "string", NumberFmt: "", ColWidth: 18},
|
||||||
{Value: "医院名称", CellType: "string", NumberFmt: "", ColWidth: 35},
|
{Value: "医院名称", CellType: "string", NumberFmt: "", ColWidth: 35},
|
||||||
{Value: "服务患者数量", CellType: "string", NumberFmt: "", ColWidth: 18},
|
{Value: "服务患者数量", CellType: "string", NumberFmt: "", ColWidth: 18},
|
||||||
@ -852,6 +856,18 @@ func (r *ExportService) UserDoctor(userDoctors []*model.UserDoctor) (string, err
|
|||||||
userDoctorData.InquiryType = strings.Join(inquiryTypes, ",")
|
userDoctorData.InquiryType = strings.Join(inquiryTypes, ",")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 科室
|
||||||
|
if v.DepartmentCustomId != 0 {
|
||||||
|
// 获取自定义科室数据
|
||||||
|
hospitalDepartmentCustomDao := dao.HospitalDepartmentCustomDao{}
|
||||||
|
hospitalDepartmentCustom, _ := hospitalDepartmentCustomDao.GetHospitalDepartmentCustomById(v.DepartmentCustomId)
|
||||||
|
if hospitalDepartmentCustom != nil {
|
||||||
|
userDoctorData.DepartmentName = hospitalDepartmentCustom.DepartmentName
|
||||||
|
userDoctorData.DepartmentCode = hospitalDepartmentCustom.DepartmentCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
interfaceSlice = append(interfaceSlice, userDoctorData)
|
interfaceSlice = append(interfaceSlice, userDoctorData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user