Ignore error validation

This commit is contained in:
zhangwenjian committed 2020-05-17 00:27:19 +08:00
1 parent 1bb0eb150d
commit aee307dfa0
14 files changed
+61 -29

No files matched your search

+4 -2
View File
@@ -64,8 +64,10 @@ func (e *{{.ClassName}}) GetPage(pageSize int, pageIndex int) ([]{{.ClassName}},
// 数据权限控制
dataPermission := new(DataPermission)
dataPermission.UserId, _ = utils.StringToInt(e.DataScope)
table = dataPermission.GetDataScope("{{.TableName}}", table)
table,err := dataPermission.GetDataScope("{{.TableName}}", table)
if err != nil {
return nil, 0, err
}
var count int32
table = table.Offset((pageIndex - 1) * pageSize).Limit(pageSize)
if err := table.Find(&doc).Error; err != nil {