正在显示
2 个修改的文件
包含
5 行增加
和
0 行删除
@@ -158,8 +158,10 @@ func buildSqlForAuditList(usercompanyid int64, companyid int64, userid int64) st | @@ -158,8 +158,10 @@ 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 | + if v.NotPass > 0 { | ||
161 | ids = append(ids, fmt.Sprint(v.Id)) | 162 | ids = append(ids, fmt.Sprint(v.Id)) |
162 | } | 163 | } |
164 | + } | ||
163 | if len(ids) > 0 { | 165 | if len(ids) > 0 { |
164 | log.Debug("命中规则:指定部门未通过") | 166 | log.Debug("命中规则:指定部门未通过") |
165 | sql7 = fmt.Sprintf(sql7, strings.Join(ids, ",")) | 167 | sql7 = fmt.Sprintf(sql7, strings.Join(ids, ",")) |
@@ -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] |
-
请 注册 或 登录 后发表评论