zhangchuanxing преди 1 седмица
родител
ревизия
d43e59a89a
променени са 2 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 6 0
      controllers/morning_meeting.go
  2. 2 1
      models/cygx_morning_meeting_review_log.go

+ 6 - 0
controllers/morning_meeting.go

@@ -282,6 +282,12 @@ func (this *MorningMeetingController) LogDetail() {
 	for _, v := range respList {
 		detailResp = v
 	}
+
+	if logDetail.Operate == "提交审核" {
+		detailResp.UserType = 2
+	} else {
+		detailResp.UserType = 1
+	}
 	detailResp.LogId = logId
 	detailResp.Status = reviewDetail.Status
 	detailResp.RejectContent = logDetail.Remark

+ 2 - 1
models/cygx_morning_meeting_review_log.go

@@ -45,7 +45,8 @@ type CygxMorningMeetingReviewLogDetailResp struct {
 }
 
 type CygxMorningMeetingReviewLogResp struct {
-	RejectContent        string                   `description:"驳回内容"` // 驳回内容
+	RejectContent        string                   `description:"驳回内容"`             // 驳回内容
+	UserType             int                      `description:"用户身份,1:提交人,2:审核人"` //
 	LogId                int                      `orm:"column(log_id);pk"`
 	Status               int                      `description:"0:未发布,1:已发布,2:待审核、3:已驳回、4:已撤回、5:未提交"`
 	IndustryId           int                      `description:"产业id"` // 产业id