正在显示
1 个修改的文件
包含
10 行增加
和
1 行删除
@@ -265,6 +265,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) GetDividends | @@ -265,6 +265,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) GetDividends | ||
265 | defer func() { | 265 | defer func() { |
266 | _ = transactionContext.RollbackTransaction() | 266 | _ = transactionContext.RollbackTransaction() |
267 | }() | 267 | }() |
268 | + // 退货单仓储初始化 | ||
268 | var dividendsReturnedOrderRepository domain.DividendsReturnedOrderRepository | 269 | var dividendsReturnedOrderRepository domain.DividendsReturnedOrderRepository |
269 | if value, err := factory.CreateDividendsReturnedOrderRepository(map[string]interface{}{ | 270 | if value, err := factory.CreateDividendsReturnedOrderRepository(map[string]interface{}{ |
270 | "transactionContext": transactionContext, | 271 | "transactionContext": transactionContext, |
@@ -273,7 +274,15 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) GetDividends | @@ -273,7 +274,15 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) GetDividends | ||
273 | } else { | 274 | } else { |
274 | dividendsReturnedOrderRepository = value | 275 | dividendsReturnedOrderRepository = value |
275 | } | 276 | } |
276 | - dividendsReturnedOrder, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderId": getDividendsReturnedOrderQuery.DividendsReturnedOrderId}) | 277 | + |
278 | + // 查找退货单 | ||
279 | + dividendsReturnedOrderId, err := strconv.ParseInt(getDividendsReturnedOrderQuery.DividendsReturnedOrderId, 10, 64) | ||
280 | + if err != nil { | ||
281 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | ||
282 | + } | ||
283 | + dividendsReturnedOrder, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{ | ||
284 | + "dividendsReturnedOrderId": dividendsReturnedOrderId, | ||
285 | + }) | ||
277 | if err != nil { | 286 | if err != nil { |
278 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 287 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
279 | } | 288 | } |
-
请 注册 或 登录 后发表评论