aa
This commit is contained in:
@@ -121,9 +121,9 @@ func UpdatePrinter(c *gin.Context, appID int, tokenInfo *model.TokenInfo, printN
|
||||
return fmt.Errorf("未在该应用下查到此打印机!app_id: %d, print_no: %s", appID, printNo)
|
||||
}
|
||||
printer := printers[0]
|
||||
printer.DeletedAt = &now
|
||||
printer.UpdatedAt = &now
|
||||
printer.LastOperator = tokenInfo.User.Name
|
||||
fields = append(fields, model.FieldLastOperator, model.FieldDeletedAt)
|
||||
fields = append(fields, model.FieldUpdatedAt, model.FieldLastOperator)
|
||||
if name != printer.Name {
|
||||
printer.Name = name
|
||||
fields = append(fields, "name")
|
||||
|
||||
Reference in New Issue
Block a user