...
|
...
|
@@ -120,34 +120,6 @@ func (subscriber *OrderLogSubscriber) HandleEvent(domainEvent coreDomain.DomainE |
|
|
}
|
|
|
err = orderLogRepository.Add(&orderLog)
|
|
|
break
|
|
|
// 支付订单中货品的分红
|
|
|
// case event.PAY_ORDER_GOOD_BONUS_EVENT:
|
|
|
// currentEvent := domainEvent.(event.PayOrderGoodBonus)
|
|
|
// adminUser, err = userRepository.FindOne(domain.UsersFindOneQuery{Id: currentEvent.AdminId})
|
|
|
// if err != nil {
|
|
|
// return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
// }
|
|
|
// orderLog := domain.OrderLog{
|
|
|
// OperatorType: domain.ORDER_LOG_OPERATOR_ADMIN,
|
|
|
// OperatorId: currentEvent.AdminId,
|
|
|
// Operator: adminUser.Name,
|
|
|
// AlterTime: time.Now(),
|
|
|
// DataFrom: domain.ORDER_LOG_FROM,
|
|
|
// LogAction: "支付",
|
|
|
// OrderId: currentEvent.OrderId,
|
|
|
// GoodId: currentEvent.GoodId,
|
|
|
// Descript: []domain.OrderLogDescript{
|
|
|
// domain.OrderLogDescript{
|
|
|
// Title: "支付分红",
|
|
|
// Item: currentEvent.GoodName,
|
|
|
// Action: []string{
|
|
|
// fmt.Sprintf(`支付分红"¥%.2f"`, currentEvent.PartnerBonus),
|
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
// }
|
|
|
// err = orderLogRepository.Add(&orderLog)
|
|
|
// break
|
|
|
case event.BATCH_PAY_ORDER_GOOD_BONUS_EVENT:
|
|
|
currentEvent := domainEvent.(event.BatchPayOrderGoodBonus)
|
|
|
orderLog := domain.OrderLog{
|
...
|
...
|
|