Explorar o código

修复客户管理示例文件的查询bug

QM303176530 %!s(int64=4) %!d(string=hai) anos
pai
achega
0dcb0267b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/service/exa_customer.go

+ 1 - 1
server/service/exa_customer.go

@@ -61,7 +61,7 @@ func GetExaCustomer(id uint) (err error, customer model.ExaCustomer) {
 func GetCustomerInfoList(sysUserAuthorityID string, info request.PageInfo) (err error, list interface{}, total int) {
 	limit := info.PageSize
 	offset := info.PageSize * (info.Page - 1)
-	db := global.GVA_DB.Model(&model.SysAuthority{})
+	db := global.GVA_DB.Model(&model.ExaCustomer{})
 	var a model.SysAuthority
 	a.AuthorityId = sysUserAuthorityID
 	err, auth := GetAuthorityInfo(a)