|
@@ -105,13 +105,16 @@ func BatchSmallGetPublicPlatoonRelateCommission(engine *xorm.Engine, masterId st |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
if nowBenefitUsers == nil { |
|
|
if nowBenefitUsers == nil { |
|
|
return nil, errors.New("未查询到父级公排关系记录") |
|
|
|
|
|
} |
|
|
|
|
|
if nowBenefitUsers.Uid == -1 || nowBenefitUsers.Uid == -2 { |
|
|
|
|
|
//则为待填充空位用户 |
|
|
|
|
|
|
|
|
//未查询到父级公排关系记录 |
|
|
nowBenefitUid = "" |
|
|
nowBenefitUid = "" |
|
|
|
|
|
//return nil, errors.New("未查询到父级公排关系记录") |
|
|
} else { |
|
|
} 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` |
|
|
//TODO::更新 公排关系记录 中 `return_commission_num` |
|
|