Browse Source

fix: 自由布局章节页脚排序

hsun 2 ngày trước cách đây
mục cha
commit
f43dca90a6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/report/report_free_layout.go

+ 1 - 1
models/report/report_free_layout.go

@@ -273,7 +273,7 @@ func ResetReportFreeLayoutsPage(items []*ReportFreeLayout) (err error) {
 	}
 	sql := `UPDATE report_free_layout SET page = ? WHERE id = ? LIMIT 1`
 	for _, v := range items {
-		if e := global.DbMap[utils.DbNameReport].Exec(sql, v.ReportId, v.Page).Error; e != nil {
+		if e := global.DbMap[utils.DbNameReport].Exec(sql, v.Page, v.Id).Error; e != nil {
 			return fmt.Errorf("ResetReportFreeLayoutsPage, %v", e)
 		}
 	}