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