|
@@ -28,7 +28,6 @@ func NewOperateCreditBalanceLogic(ctx context.Context, svcCtx *svc.ServiceContex
|
|
|
|
|
|
func (l *OperateCreditBalanceLogic) OperateCreditBalance(req *types.CreditBalanceOperateReq) (*types.BaseMsgResp, error) {
|
|
|
isAdmin := l.ctx.Value("isAdmin").(bool)
|
|
|
- organizationId := l.ctx.Value("organizationId").(uint64)
|
|
|
|
|
|
if !isAdmin {
|
|
|
return nil, errorx.NewInvalidArgumentError("权限不足")
|
|
@@ -76,7 +75,7 @@ func (l *OperateCreditBalanceLogic) OperateCreditBalance(req *types.CreditBalanc
|
|
|
SetNid(0).
|
|
|
SetTable("").
|
|
|
SetNotNilReason(req.Reason).
|
|
|
- SetOrganizationID(organizationId).
|
|
|
+ SetNotNilOrganizationID(req.OrganizationId).
|
|
|
SetOperator(userId).
|
|
|
SetBeforeNumber(beforeNumber).
|
|
|
SetAfterNumber(afterNumber).
|