|
@@ -134,14 +134,14 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st |
|
@@ -134,14 +134,14 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st |
|
134
|
sqlslice = append(sqlslice, fmt.Sprintf(sql3, strings.Join(ids, ",")))
|
134
|
sqlslice = append(sqlslice, fmt.Sprintf(sql3, strings.Join(ids, ",")))
|
|
135
|
}
|
135
|
}
|
|
136
|
}
|
136
|
}
|
|
137
|
- if _, ok := usrPermission.CheckMap[serverabc.OpportunityCheckLv4]; ok {
|
|
|
|
138
|
- //指定部门
|
137
|
+ if _, ok := usrPermission.CheckMap[serverabc.OpportunityCheckLv5]; ok {
|
|
|
|
138
|
+ //指定部门未通过
|
|
139
|
ids := []string{}
|
139
|
ids := []string{}
|
|
140
|
for _, v := range usrPermission.CheckOption.Departments {
|
140
|
for _, v := range usrPermission.CheckOption.Departments {
|
|
141
|
ids = append(ids, fmt.Sprint(v.Id))
|
141
|
ids = append(ids, fmt.Sprint(v.Id))
|
|
142
|
}
|
142
|
}
|
|
143
|
if len(ids) > 0 {
|
143
|
if len(ids) > 0 {
|
|
144
|
- log.Debug("命中规则:指定部门")
|
144
|
+ log.Debug("命中规则:指定部门未通过")
|
|
145
|
sqlslice = append(sqlslice, fmt.Sprintf(sql7, strings.Join(ids, ",")))
|
145
|
sqlslice = append(sqlslice, fmt.Sprintf(sql7, strings.Join(ids, ",")))
|
|
146
|
}
|
146
|
}
|
|
147
|
}
|
147
|
}
|