|
|
|
|
844
|
}
|
844
|
}
|
845
|
|
845
|
|
846
|
//某模板下,某周几下,该床位是否有患者
|
846
|
//某模板下,某周几下,该床位是否有患者
|
847
|
-func GetScheduleTemplateOne(orgID int64, deviceNumberID int64, template_id int64, week_type int64) (models.PatientScheduleTemplateItem, error) {
|
|
|
|
|
847
|
+func GetScheduleTemplateOne(orgID int64, deviceNumberID int64, template_id int64, week_type int64, time_type int64) (models.PatientScheduleTemplateItem, error) {
|
848
|
var item models.PatientScheduleTemplateItem
|
848
|
var item models.PatientScheduleTemplateItem
|
849
|
- err := readDb.Model(&models.PatientScheduleTemplateItem{}).Where("device_number_id = ? AND org_id = ? AND status = 1 AND template_id = ? AND weekday = ?", deviceNumberID, orgID, template_id, week_type).First(&item).Error
|
|
|
|
|
849
|
+ err := readDb.Model(&models.PatientScheduleTemplateItem{}).Where("device_number_id = ? AND org_id = ? AND status = 1 AND template_id = ? AND weekday = ? AND time_type = ?", deviceNumberID, orgID, template_id, week_type, time_type).First(&item).Error
|
850
|
return item, err
|
850
|
return item, err
|
851
|
}
|
851
|
}
|
852
|
|
852
|
|