|
@@ -211,10 +211,10 @@ func GetInfor(patientid int64, timenow int64, orgid int64, class int64) (*models
|
211
|
211
|
return &pre, nil
|
212
|
212
|
}
|
213
|
213
|
|
214
|
|
-func GetDisinfection(equitType int64, enquitType int64, orgID int64) (*models.DevicePlan, error) {
|
|
214
|
+func GetDisinfection(equitType int64, scheduleType int64, orgID int64) (*models.DevicePlan, error) {
|
215
|
215
|
var plan models.DevicePlan
|
216
|
216
|
var err error
|
217
|
|
- err = readUserDb.Model(&plan).Where("device_type = ? AND classtime = ? AND user_org_id = ? AND status = 1", equitType, enquitType, orgID).Find(&plan).Error
|
|
217
|
+ err = readUserDb.Model(&plan).Where("device_type = ? AND classtime = ? AND user_org_id = ? AND status = 1", equitType, scheduleType, orgID).Find(&plan).Error
|
218
|
218
|
if err == gorm.ErrRecordNotFound {
|
219
|
219
|
return nil, err
|
220
|
220
|
}
|