|
@@ -75,9 +75,11 @@ func RenewWorkDesktopMenuModeOrCommonly(in *WorkDesktopComprehensiveReq) (r *Wor
|
|
|
positionType = `AND available >= 2`
|
|
|
//P364 企业角色
|
|
|
if in.EntUserRole != "" {
|
|
|
+ positionType += ` AND (FIND_IN_SET('0',entrole)`
|
|
|
for _, entUserRole := range strings.Split(in.EntUserRole, ",") {
|
|
|
- positionType += fmt.Sprintf(` AND (FIND_IN_SET('0',entrole) OR FIND_IN_SET('%d',entrole)) `, MC.Int64All(entUserRole)+1)
|
|
|
+ positionType += fmt.Sprintf(` OR FIND_IN_SET('%d',entrole)`, MC.Int64All(entUserRole)+1)
|
|
|
}
|
|
|
+ positionType += `)`
|
|
|
} else {
|
|
|
positionType += fmt.Sprintf(` AND (FIND_IN_SET('0',entrole) OR FIND_IN_SET('%d',entrole)) `, in.EntNicheDis+1)
|
|
|
}
|