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