zhangchuanxing hai 5 días
pai
achega
9afa41f5e0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      controllers/report_selection.go

+ 2 - 2
controllers/report_selection.go

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