| | |
| | | // 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 |
| | | } |
| | | ) |
| | | |
| | |
| | | if total != 0 { |
| | | return nil |
| | | } |
| | | records := []*InvoiceType{} |
| | | records := []*InvoiceType{ |
| | | {1, "增票6%"}, |
| | | {2, "增票16%"}, |
| | | {3, "增票17%"}, |
| | | } |
| | | return slf.CreateBatch(records) |
| | | } |