|
@@ -429,9 +429,20 @@ func (this *ReportController) Detail() {
|
|
|
br.Msg = "用户权限不足"
|
|
|
return
|
|
|
}
|
|
|
+ var reportClassifyId int
|
|
|
+ if report.ClassifyIdFirst > 0 {
|
|
|
+ reportClassifyId = report.ClassifyIdFirst
|
|
|
+ }
|
|
|
+ if report.ClassifyIdSecond > 0 {
|
|
|
+ reportClassifyId = report.ClassifyIdSecond
|
|
|
+ }
|
|
|
+ if report.ClassifyIdThird > 0 {
|
|
|
+ reportClassifyId = report.ClassifyIdThird
|
|
|
+ }
|
|
|
for _, v := range classifyIds {
|
|
|
- if v == report.ClassifyIdSecond {
|
|
|
+ if v == reportClassifyId {
|
|
|
IsHas = true
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
if !IsHas {
|