diff --git a/internal/dao/invoiceDao.go b/internal/dao/invoiceDao.go index 771a2f4..df7a02c 100644 --- a/internal/dao/invoiceDao.go +++ b/internal/dao/invoiceDao.go @@ -1,12 +1,14 @@ package dao import ( + "fmt" "micro-bundle/internal/model" "micro-bundle/pb/bundle" "micro-bundle/pkg/app" ) func CreateInvoice(req *bundle.CreateInvoiceReq) (res *bundle.CreateInvoiceResp, err error) { + fmt.Println("创建发票信息:url=%s,type=%d,no=%s,status=%d,remark=%s", req.InvoiceUrl, req.InvoiceType, req.InvoiceNo, req.PaperInvocieStatus, req.Remark) res = new(bundle.CreateInvoiceResp) err = app.ModuleClients.BundleDB.Model(&model.Invoice{}).Create(&req).Error if err != nil {