csx пре 3 година
родитељ
комит
4122c2220f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      service/bl_service.go

+ 1 - 1
service/bl_service.go Прегледај датотеку

@@ -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)