zhangqian
2023-08-17 b654a22b6d2e579cf32e1d70f7a8a7791a501e81
model/invoiceType.go
@@ -12,18 +12,18 @@
   // InvoiceType 发票类型
   InvoiceType struct {
      Id   int    `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
      Name   string    `json:"name" gorm:"column:name"`
      Name string `json:"name" gorm:"column:name"`
   }
   // InvoiceTypeSearch 发票类型搜索条件
   InvoiceTypeSearch struct {
      InvoiceType
      Orm *gorm.DB
        QueryClass  constvar.InvoiceTypeQueryClass
        KeywordType constvar.InvoiceTypeKeywordType
        Keyword     string
        PageNum  int
        PageSize int
      Orm         *gorm.DB
      QueryClass  constvar.InvoiceTypeQueryClass
      KeywordType constvar.InvoiceTypeKeywordType
      Keyword     string
      PageNum     int
      PageSize    int
   }
)
@@ -135,6 +135,10 @@
   if total != 0 {
      return nil
   }
   records := []*InvoiceType{}
   records := []*InvoiceType{
      {1, "增票6%"},
      {2, "增票16%"},
      {3, "增票17%"},
   }
   return slf.CreateBatch(records)
}