正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
@@ -1122,8 +1122,16 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | @@ -1122,8 +1122,16 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | ||
1122 | } | 1122 | } |
1123 | orderTime := utils.TransformTimestampToTime(orderTimeInt) | 1123 | orderTime := utils.TransformTimestampToTime(orderTimeInt) |
1124 | 1124 | ||
1125 | + // 退货单ID类型转换 | ||
1126 | + dividendsReturnedOrderId, err := strconv.ParseInt(updateDividendsReturnedOrderCommand.DividendsReturnedOrderId, 10, 64) | ||
1127 | + if err != nil { | ||
1128 | + return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "退货单ID类型错误") | ||
1129 | + } | ||
1130 | + | ||
1125 | // 获取分红退货单 | 1131 | // 获取分红退货单 |
1126 | - dividendsReturnedOrder, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderId": updateDividendsReturnedOrderCommand.DividendsReturnedOrderId}) | 1132 | + dividendsReturnedOrder, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{ |
1133 | + "dividendsReturnedOrderId": dividendsReturnedOrderId, | ||
1134 | + }) | ||
1127 | if err != nil { | 1135 | if err != nil { |
1128 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1136 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
1129 | } | 1137 | } |
-
请 注册 或 登录 后发表评论