ソースを参照

fix:报告分类提示修改

zqbao 3 ヶ月 前
コミット
1b9d57d10b
1 ファイル変更4 行追加0 行削除
  1. 4 0
      controllers/report_open.go

+ 4 - 0
controllers/report_open.go

@@ -68,6 +68,10 @@ func (this *ReportOpenController) ClassifyTree() {
 	adminObj := new(models.Admin)
 	admin, e := adminObj.GetAdminByOutId(outId)
 	if e != nil {
+		if utils.IsErrNoRow(e) {
+			br.Msg = "工号不存在"
+			return
+		}
 		br.Msg = "获取失败"
 		br.ErrMsg = fmt.Sprintf("获取管理员信息失败,%v", e)
 		return