jiangshuai
2023-12-13 5c425d440200e84fcbfc98c98e02d0b1420cd366
service/test/supplier.go
@@ -95,3 +95,9 @@
   err = global.GVA_DB.Model(&test.Supplier{}).Where("id = ?", id).Update("status", status).Error
   return err
}
func (sService *SupplierService) MaxAutoIncr() (int, error) {
   var total int64
   err := global.GVA_DB.Model(&test.Supplier{}).Count(&total).Error
   return int(total), err
}