csx před 3 roky
rodič
revize
4122c2220f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      service/bl_service.go

+ 1 - 1
service/bl_service.go Zobrazit soubor

@@ -613,7 +613,7 @@ func GetResultDataInsertDB(org_id int64) (result []*CmResult) {
613 613
 				}
614 614
 
615 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 617
 				if itotal <= 0 {
618 618
 					//item.Result = strings.Replace(item.Result, "&gt;", ">", -1)
619 619
 					//item.Result = strings.Replace(item.Result, "&lt;", "<", -1)