|
@@ -126,9 +126,8 @@ func (this *ReportController) ListReport() {
|
|
|
switch filterReportType {
|
|
|
|
|
|
case 1:
|
|
|
- condition += ` AND a.is_public_publish = ? `
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ condition += ` AND a.state in (2,6) `
|
|
|
pars = append(pars, 1)
|
|
|
case 3:
|
|
|
condition += ` AND a.admin_id = ? `
|
|
@@ -1116,8 +1115,6 @@ func (this *ReportController) EditLayoutImg() {
|
|
|
br.Data = resp
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -1125,6 +1122,7 @@ func (this *ReportController) EditLayoutImg() {
|
|
|
func init() {
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1164,8 +1162,6 @@ func fixApproveRecord() {
|
|
|
fmt.Println("审批数据修复完成")
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -1229,3 +1225,54 @@ func fixChapterPermission() {
|
|
|
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+func fixReportEs() {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ var condition string
|
|
|
+ var pars []interface{}
|
|
|
+
|
|
|
+ condition += " AND state in (2,6) "
|
|
|
+ list, err := models.GetReportListV1(condition, pars, 0, 100000)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("查询信息失败,", err)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ num := len(list)
|
|
|
+ fmt.Println(num, "条待修复报告es数据")
|
|
|
+
|
|
|
+ for k, v := range list {
|
|
|
+ fmt.Println("剩余", num-k, "条")
|
|
|
+ services.UpdateReportEs(v.Id, 2)
|
|
|
+ }
|
|
|
+
|
|
|
+ fmt.Println("报告ES数据修复完成")
|
|
|
+
|
|
|
+ return
|
|
|
+}
|