generated from PenaSide/GolangTemplate
fix name map
This commit is contained in:
parent
9b2633b474
commit
8b1a064e26
@ -170,7 +170,7 @@ func (receiver *Service) GetHistoryById(ctx context.Context, historyID string) e
|
||||
return err
|
||||
}
|
||||
|
||||
HistoryMap, err := receiver.repository.GetDocNumber(ctx, tariffs.UserID)
|
||||
historyMap, err := receiver.repository.GetDocNumber(ctx, tariffs.UserID)
|
||||
if err != nil {
|
||||
receiver.logger.Error(
|
||||
"failed to get history of sorting by date created in <GetDocNumber> of <HistoryService>",
|
||||
@ -222,7 +222,7 @@ func (receiver *Service) GetHistoryById(ctx context.Context, historyID string) e
|
||||
totalAmount += privilege.Amount
|
||||
}
|
||||
data := models.RespGeneratorService{
|
||||
DocNumber: HistoryMap[historyID] + 1,
|
||||
DocNumber: historyMap[historyID] + 1,
|
||||
Date: time.Now().Format("2006-01-02"),
|
||||
OrgTaxNum: verifuser.TaxNumber,
|
||||
OrgName: models.Name{Orgname: "Orgname"},
|
||||
|
Loading…
Reference in New Issue
Block a user