|
@@ -152,7 +152,7 @@ func DocumentReportList(documentType int, chartPermissionIdList []string, classi
|
|
|
}
|
|
|
}
|
|
|
if keyword != "" {
|
|
|
- condition += ` and t1.title like ? or t1.sys_user_name like ?`
|
|
|
+ condition += ` and (t1.title like ? or t1.sys_user_name like ?) `
|
|
|
pars = append(pars, "%"+keyword+"%", "%"+keyword+"%")
|
|
|
}
|
|
|
|
|
@@ -259,11 +259,6 @@ func RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird int, key
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
- for _, report := range reportList {
|
|
|
- // 格式换时间格式
|
|
|
- report.ModifyTime = report.ModifyTime.UTC()
|
|
|
- }
|
|
|
-
|
|
|
reportPage.Paging = page
|
|
|
reportPage.List = reportList
|
|
|
|
|
@@ -280,6 +275,7 @@ func DocumentRuiSiDetail(reportId int) (*models.ReportDetail, error) {
|
|
|
}
|
|
|
return nil, err
|
|
|
}
|
|
|
+ reportDetail.Content = html.UnescapeString(reportDetail.Content)
|
|
|
|
|
|
return reportDetail, nil
|
|
|
}
|
|
@@ -345,7 +341,7 @@ func DocumentReportDetail(outsideReportId int) (*document_manage_model.OutsideRe
|
|
|
Abstract: outsideReport.Abstract,
|
|
|
ClassifyId: outsideReport.ClassifyId,
|
|
|
ClassifyName: outsideReport.ClassifyName,
|
|
|
- Content: html.EscapeString(outsideReport.Content),
|
|
|
+ Content: html.UnescapeString(outsideReport.Content),
|
|
|
SysUserId: outsideReport.SysUserId,
|
|
|
SysUserName: outsideReport.SysUserName,
|
|
|
CreateTime: outsideReport.CreateTime,
|