| | |
| | | // InvoiceStatus 发票状态 |
| | | InvoiceStatus 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"` |
| | | } |
| | | |
| | | // InvoiceStatusSearch 发票状态搜索条件 |
| | | InvoiceStatusSearch struct { |
| | | InvoiceStatus |
| | | Orm *gorm.DB |
| | | QueryClass constvar.InvoiceStatusQueryClass |
| | | KeywordType constvar.InvoiceStatusKeywordType |
| | | Keyword string |
| | | PageNum int |
| | | PageSize int |
| | | Orm *gorm.DB |
| | | QueryClass constvar.InvoiceStatusQueryClass |
| | | KeywordType constvar.InvoiceStatusKeywordType |
| | | Keyword string |
| | | PageNum int |
| | | PageSize int |
| | | } |
| | | ) |
| | | |
| | |
| | | if total != 0 { |
| | | return nil |
| | | } |
| | | records := []*InvoiceStatus{} |
| | | records := []*InvoiceStatus{ |
| | | {1, "已创建"}, |
| | | {2, "已寄送"}, |
| | | {3, "自动创建"}, |
| | | } |
| | | return slf.CreateBatch(records) |
| | | } |