Browse Source

update

tags/v4.3.1
DengBiao 1 year ago
parent
commit
be22297d05
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      svc/small_public_platoon_relate_commission.go

+ 8
- 5
svc/small_public_platoon_relate_commission.go View File

@@ -105,13 +105,16 @@ func BatchSmallGetPublicPlatoonRelateCommission(engine *xorm.Engine, masterId st
return nil, err
}
if nowBenefitUsers == nil {
return nil, errors.New("未查询到父级公排关系记录")
}
if nowBenefitUsers.Uid == -1 || nowBenefitUsers.Uid == -2 {
//则为待填充空位用户
//未查询到父级公排关系记录
nowBenefitUid = ""
//return nil, errors.New("未查询到父级公排关系记录")
} else {
nowBenefitUid = zhios_order_relate_utils.AnyToString(nowBenefitUsers.Uid)
if nowBenefitUsers.Uid == -1 || nowBenefitUsers.Uid == -2 {
//则为待填充空位用户
nowBenefitUid = ""
} else {
nowBenefitUid = zhios_order_relate_utils.AnyToString(nowBenefitUsers.Uid)
}
}

//TODO::更新 公排关系记录 中 `return_commission_num`


Loading…
Cancel
Save