jiangshuai
2023-10-20 53e13e20bdf8f3ce26d67ae9c2c1ed7212a183d9
controllers/location_product_amount.go
@@ -77,10 +77,12 @@
            return
         }
      } else {
         if len(operation.Details) > 0 {
         records[k].AdjustAmount = operation.Details[0].Amount
            records[k].DifferenceAmount = v.Amount.Add(v.AdjustAmount)
         }
         records[k].OperationId = operation.Id
         records[k].Status = operation.Status
         records[k].DifferenceAmount = v.Amount.Add(v.AdjustAmount)
      }
   }
   util.ResponseFormatListWithPage(c, code.Success, records, int(total), params.Page, params.PageSize)