正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -158,7 +158,9 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st | @@ -158,7 +158,9 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st | ||
| 158 | //指定部门未通过 | 158 | //指定部门未通过 |
| 159 | ids := []string{} | 159 | ids := []string{} |
| 160 | for _, v := range usrPermission.CheckOption.Departments { | 160 | for _, v := range usrPermission.CheckOption.Departments { |
| 161 | - ids = append(ids, fmt.Sprint(v.Id)) | 161 | + if v.NotPass > 0 { |
| 162 | + ids = append(ids, fmt.Sprint(v.Id)) | ||
| 163 | + } | ||
| 162 | } | 164 | } |
| 163 | if len(ids) > 0 { | 165 | if len(ids) > 0 { |
| 164 | log.Debug("命中规则:指定部门未通过") | 166 | log.Debug("命中规则:指定部门未通过") |
| @@ -187,6 +187,9 @@ func (p *OptionOpportunity) MergeObject(jsonString string) error { | @@ -187,6 +187,9 @@ func (p *OptionOpportunity) MergeObject(jsonString string) error { | ||
| 187 | if obj.CheckOption.Departments[k].Wait > departMap[i].Wait { | 187 | if obj.CheckOption.Departments[k].Wait > departMap[i].Wait { |
| 188 | departMap[i].Wait = obj.CheckOption.Departments[k].Wait | 188 | departMap[i].Wait = obj.CheckOption.Departments[k].Wait |
| 189 | } | 189 | } |
| 190 | + if obj.CheckOption.Departments[k].NotPass > departMap[i].NotPass { | ||
| 191 | + departMap[i].NotPass = obj.CheckOption.Departments[k].NotPass | ||
| 192 | + } | ||
| 190 | } else { | 193 | } else { |
| 191 | 194 | ||
| 192 | departMap[i] = &obj.CheckOption.Departments[k] | 195 | departMap[i] = &obj.CheckOption.Departments[k] |
-
请 注册 或 登录 后发表评论