|
@@ -96,14 +96,14 @@ func (this *ReportSelectionController) Detail() {
|
|
if detail.VisibleRange == 1 || user.CompanyId == utils.HZ_COMPANY_ID {
|
|
if detail.VisibleRange == 1 || user.CompanyId == utils.HZ_COMPANY_ID {
|
|
resp.IsShow = true
|
|
resp.IsShow = true
|
|
}
|
|
}
|
|
|
|
+ resp.HasPermission = hasPermission
|
|
if !resp.IsShow {
|
|
if !resp.IsShow {
|
|
- br.Ret = 200
|
|
|
|
|
|
+ br.Ret = 201
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "获取成功"
|
|
br.Msg = "获取成功"
|
|
br.Data = resp
|
|
br.Data = resp
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- resp.HasPermission = hasPermission
|
|
|
|
if hasPermission != 1 || !resp.IsShow {
|
|
if hasPermission != 1 || !resp.IsShow {
|
|
resp.Detail = detail
|
|
resp.Detail = detail
|
|
br.Ret = 200
|
|
br.Ret = 200
|