csx 3 年前
父节点
当前提交
4122c2220f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/bl_service.go

+ 1 - 1
service/bl_service.go 查看文件

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)