作者 yangfu

修改 机会详情返回部门信息/保存草稿(非必填部门)

@@ -738,7 +738,7 @@ type DraftSaveChanceRequest struct { @@ -738,7 +738,7 @@ type DraftSaveChanceRequest struct {
738 Speechs []Speech `json:"speechs"` 738 Speechs []Speech `json:"speechs"`
739 Pictures []Picture `json:"pictures"` 739 Pictures []Picture `json:"pictures"`
740 Videos []Video `json:"videos"` 740 Videos []Video `json:"videos"`
741 - RelatedDepartment int64 `json:"relatedDepartments" valid:"Required"` 741 + RelatedDepartment int64 `json:"relatedDepartments"`
742 } 742 }
743 type DraftSaveChanceResponse struct { 743 type DraftSaveChanceResponse struct {
744 } 744 }
@@ -2089,6 +2089,7 @@ func ChanceDraftDetail(header *protocol.RequestHeader, request *protocol.ChanceD @@ -2089,6 +2089,7 @@ func ChanceDraftDetail(header *protocol.RequestHeader, request *protocol.ChanceD
2089 CreateTime: chance.CreateAt.Unix() * 1000, 2089 CreateTime: chance.CreateAt.Unix() * 1000,
2090 UpdateTime: chance.UpdateAt.Unix() * 1000, 2090 UpdateTime: chance.UpdateAt.Unix() * 1000,
2091 } 2091 }
  2092 + item.RelatedDepartmentInfo = agg.GetDepartment(int(chance.DepartmentId))
2092 jsonUnmarshal(chance.SourceContent, &item.FormList) 2093 jsonUnmarshal(chance.SourceContent, &item.FormList)
2093 jsonUnmarshal(chance.SelfChecks, &item.SelfChecks) 2094 jsonUnmarshal(chance.SelfChecks, &item.SelfChecks)
2094 item.FormList = clearEmptyForm(item.FormList) 2095 item.FormList = clearEmptyForm(item.FormList)