|
@@ -18,7 +18,7 @@ import (
|
|
func ParticipateList(in *bxcore.ParticipateListReq) (*bxcore.ParticipateListRes, error) {
|
|
func ParticipateList(in *bxcore.ParticipateListReq) (*bxcore.ParticipateListRes, error) {
|
|
defer MC.Catch()
|
|
defer MC.Catch()
|
|
res := &bxcore.ParticipateListRes{Data: &bxcore.ParticipateData{}}
|
|
res := &bxcore.ParticipateListRes{Data: &bxcore.ParticipateData{}}
|
|
- b, entRoleId := util.IsAllowedParticipate(in.AppId, in.UserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
|
|
|
|
+ b, entRoleId := util.IsAllowedParticipate(in.AppId, in.MgoUserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
if !b || (in.Identity == "ent" && entRoleId == 0) {
|
|
if !b || (in.Identity == "ent" && entRoleId == 0) {
|
|
res.ErrCode = 0
|
|
res.ErrCode = 0
|
|
res.ErrMsg = "没有权限"
|
|
res.ErrMsg = "没有权限"
|
|
@@ -70,7 +70,7 @@ func ParticipateList(in *bxcore.ParticipateListReq) (*bxcore.ParticipateListRes,
|
|
// 参标动作:参标、终止参标、划转:in:参标;out:终止参标;transfer:划转
|
|
// 参标动作:参标、终止参标、划转:in:参标;out:终止参标;transfer:划转
|
|
func ParticipateDo(in *bxcore.ParticipateActionReq) error {
|
|
func ParticipateDo(in *bxcore.ParticipateActionReq) error {
|
|
defer MC.Catch()
|
|
defer MC.Catch()
|
|
- b, entRoleId := util.IsAllowedParticipate(in.AppId, in.UserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
|
|
|
|
+ b, entRoleId := util.IsAllowedParticipate(in.AppId, in.MgoUserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
if !b {
|
|
if !b {
|
|
return fmt.Errorf("暂无权限")
|
|
return fmt.Errorf("暂无权限")
|
|
}
|
|
}
|
|
@@ -157,7 +157,7 @@ func GetParticipateSetInfo(in *bxcore.ParticipateSetUpInfoReq) (*bxcore.Particip
|
|
BidType: nil,
|
|
BidType: nil,
|
|
RemindRule: nil,
|
|
RemindRule: nil,
|
|
}}
|
|
}}
|
|
- b, entRoleId := util.IsAllowedParticipate(in.AppId, in.UserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
|
|
|
|
+ b, entRoleId := util.IsAllowedParticipate(in.AppId, in.MgoUserId, in.NewUserId, in.AccountId, in.EntAccountId, in.EntId, in.EntUserId, in.PositionId, in.PositionType)
|
|
if !b {
|
|
if !b {
|
|
res.ErrMsg = "没有权限"
|
|
res.ErrMsg = "没有权限"
|
|
res.Data = nil
|
|
res.Data = nil
|