csx 3 years ago
parent
commit
4122c2220f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/bl_service.go

+ 1 - 1
service/bl_service.go View File

613
 				}
613
 				}
614
 
614
 
615
 				var itotal int
615
 				var itotal int
616
-				err = readMiddleDb.Model(&models.MiddleInspection{}).Where("org_id = ? and project_id = ? and item_id = ? and record_date = ? and patient_id = ?  and status = 1", org_id, project_id, item_id, record_date, printInfo.PatientId).Find(&inspection).Count(&itotal).Error
616
+				err = readMiddleDb.Model(&models.MiddleInspection{}).Where("org_id = ? and project_id = ? and item_id = ? and record_date = ? and patient_id = ?  and status = 1", org_id, project_id, item_id, record_date.Unix(), printInfo.PatientId).Find(&inspection).Count(&itotal).Error
617
 				if itotal <= 0 {
617
 				if itotal <= 0 {
618
 					//item.Result = strings.Replace(item.Result, "&gt;", ">", -1)
618
 					//item.Result = strings.Replace(item.Result, "&gt;", ">", -1)
619
 					//item.Result = strings.Replace(item.Result, "&lt;", "<", -1)
619
 					//item.Result = strings.Replace(item.Result, "&lt;", "<", -1)