add.fixstatus=0
This commit is contained in:
@@ -154,6 +154,7 @@ func (l *AgentService) AgentProcess(ctx context.Context, order *model.Order) err
|
||||
OrderId: order.Id,
|
||||
Amount: ancestorCommissionAmount,
|
||||
ProductId: order.ProductId,
|
||||
Status: 1, // 设置为冻结状态
|
||||
}
|
||||
_, insertAncestorCommissionErr := l.AgentCommissionModel.Insert(transCtx, session, &ancestorCommissionRecord)
|
||||
if insertAncestorCommissionErr != nil {
|
||||
@@ -231,6 +232,7 @@ func (l *AgentService) AgentCommission(ctx context.Context, agentID int64, order
|
||||
OrderId: order.Id,
|
||||
Amount: finalCommission,
|
||||
ProductId: order.ProductId,
|
||||
Status: 1, // 设置为冻结状态
|
||||
}
|
||||
insertResult, insertAgentCommissionErr := l.AgentCommissionModel.Insert(ctx, session, &agentCommission)
|
||||
if insertAgentCommissionErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user