作者 yangfu

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

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