作者 tangxuhui

项目详情添加申请通过的承接人

@@ -19,6 +19,5 @@ func main() { @@ -19,6 +19,5 @@ func main() {
19 w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOST, constant.TOPIC_LOG_STASH, false) 19 w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOST, constant.TOPIC_LOG_STASH, false)
20 log.Logger.AddHook(w) 20 log.Logger.AddHook(w)
21 } 21 }
22 -  
23 web.Run() 22 web.Run()
24 } 23 }
@@ -48,23 +48,49 @@ type CooperationProjectInfo struct { @@ -48,23 +48,49 @@ type CooperationProjectInfo struct {
48 DepartmentName string `json:"departmentName"` 48 DepartmentName string `json:"departmentName"`
49 } `json:"department"` //项目发起部门 49 } `json:"department"` //项目发起部门
50 Status int `json:"status"` // 共创项目状态,1招标中,2结束 50 Status int `json:"status"` // 共创项目状态,1招标中,2结束
  51 + // 可以去除勾选的共创项目承接对象列表
  52 + UndertakerTypesUncheckedAvailable []int `json:"undertakerTypesUncheckedAvailable"`
  53 + // 承接人
  54 + Applicants []struct {
  55 + UserId int64 `json:"userId,string"`
  56 + UserBaseId int64 `json:"userBaseId,string"` // 用户基本id
  57 + Org struct {
  58 + OrgId int64 `json:"orgId,string"` // 组织机构ID
  59 + OrgName string `json:"orgName"` // 组织名称
  60 + } `json:"org"` // 用户所属组织机构
  61 + Department struct {
  62 + DepartmentId int64 `json:"departmentId,string"` // 部门ID,
  63 + DepartmentName string `json:"departmentName"` // 部门名称
  64 + DepartmentNumber string `json:"departmentNumber"` // 部门编码
  65 + } `json:"department"` // 用户所属的部门
  66 + UserInfo struct {
  67 + UserAvatar string `json:"userAvatar"` // 用户头像
  68 + UserEmail string `json:"userEmail"` // 用户邮箱
  69 + UserName string `json:"userName"` // 共创人员姓名
  70 + UserPhone string `json:"userPhone"` // 用户手机号
  71 + UserAccount string `json:"userAccount"` // 用户账号,
  72 + UserCode string `json:"userCode"` // 用户编码
  73 + } `json:"userInfo,omitempty"`
  74 + } `json:"applicants"`
51 } 75 }
52 76
53 func ToCooperationProjectInfo(param *allied_creation_cooperation.CooperationProject) *CooperationProjectInfo { 77 func ToCooperationProjectInfo(param *allied_creation_cooperation.CooperationProject) *CooperationProjectInfo {
54 data := CooperationProjectInfo{ 78 data := CooperationProjectInfo{
55 - Company: param.Company,  
56 - Org: param.Org,  
57 - CooperationMode: param.CooperationMode,  
58 - CooperationProjectDescription: param.CooperationProjectDescription,  
59 - CooperationProjectId: param.CooperationProjectId,  
60 - CooperationProjectName: param.CooperationProjectName,  
61 - CooperationProjectNumber: param.CooperationProjectNumber,  
62 - CooperationProjectPublishTime: param.CooperationProjectPublishTime,  
63 - CreatedAt: param.CreatedAt,  
64 - CooperationProjectUndertakerType: param.CooperationProjectUndertakerType,  
65 - Department: param.Department,  
66 - Status: param.Status,  
67 - Images: param.Attachment, 79 + Company: param.Company,
  80 + Org: param.Org,
  81 + CooperationMode: param.CooperationMode,
  82 + CooperationProjectDescription: param.CooperationProjectDescription,
  83 + CooperationProjectId: param.CooperationProjectId,
  84 + CooperationProjectName: param.CooperationProjectName,
  85 + CooperationProjectNumber: param.CooperationProjectNumber,
  86 + CooperationProjectPublishTime: param.CooperationProjectPublishTime,
  87 + CreatedAt: param.CreatedAt,
  88 + CooperationProjectUndertakerType: param.CooperationProjectUndertakerType,
  89 + Department: param.Department,
  90 + Status: param.Status,
  91 + Images: param.Attachment,
  92 + UndertakerTypesUncheckedAvailable: param.UndertakerTypesUncheckedAvailable,
  93 + Applicants: param.Applicants,
68 } 94 }
69 95
70 data.CooperationProjectSponsor.UsersCode = param.CooperationProjectSponsor.UserInfo.UsersCode 96 data.CooperationProjectSponsor.UsersCode = param.CooperationProjectSponsor.UserInfo.UsersCode
@@ -60,6 +60,30 @@ type CooperationProject struct { @@ -60,6 +60,30 @@ type CooperationProject struct {
60 DepartmentName string `json:"departmentName"` 60 DepartmentName string `json:"departmentName"`
61 } `json:"department"` //项目发起部门 61 } `json:"department"` //项目发起部门
62 Status int `json:"status"` // 共创项目状态,1招标中,2结束 62 Status int `json:"status"` // 共创项目状态,1招标中,2结束
  63 + // 可以去除勾选的共创项目承接对象列表
  64 + UndertakerTypesUncheckedAvailable []int `json:"undertakerTypesUncheckedAvailable"`
  65 + // 承接人
  66 + Applicants []struct {
  67 + UserId int64 `json:"userId,string"`
  68 + UserBaseId int64 `json:"userBaseId,string"` // 用户基本id
  69 + Org struct {
  70 + OrgId int64 `json:"orgId,string"` // 组织机构ID
  71 + OrgName string `json:"orgName"` // 组织名称
  72 + } `json:"org"` // 用户所属组织机构
  73 + Department struct {
  74 + DepartmentId int64 `json:"departmentId,string"` // 部门ID,
  75 + DepartmentName string `json:"departmentName"` // 部门名称
  76 + DepartmentNumber string `json:"departmentNumber"` // 部门编码
  77 + } `json:"department"` // 用户所属的部门
  78 + UserInfo struct {
  79 + UserAvatar string `json:"userAvatar"` // 用户头像
  80 + UserEmail string `json:"userEmail"` // 用户邮箱
  81 + UserName string `json:"userName"` // 共创人员姓名
  82 + UserPhone string `json:"userPhone"` // 用户手机号
  83 + UserAccount string `json:"userAccount"` // 用户账号,
  84 + UserCode string `json:"userCode"` // 用户编码
  85 + } `json:"userInfo,omitempty"`
  86 + } `json:"applicants"`
63 } 87 }
64 88
65 //创建共创项目 89 //创建共创项目