|
@@ -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, ">", ">", -1)
|
619
|
619
|
//item.Result = strings.Replace(item.Result, "<", "<", -1)
|