This commit is contained in:
邹宗楠
2022-10-18 10:30:37 +08:00
parent c0d92f612e
commit 03069ce0fe
19 changed files with 187 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ func (p *PrintBill) InitPPrintBill(tx *sqlx.Tx, bill *app_model.PrintBill) error
if err := dao.InitPrintBill(tx, bill); err != nil {
return err
}
} else if len(result) == 1 {
} else if len(result) == 1 && result[0].UserId == "system" {
if err := dao.UpdateBillToUser(tx, bill); err != nil {
return err
}