瀏覽代碼

Merge branch 'bzq/306_report_classify' of eta_gn_server/eta_report into debug

baoziqiang 3 月之前
父節點
當前提交
91f7894f45
共有 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