浏览代码

no message

zhangchuanxing 21 小时之前
父节点
当前提交
e622d7859b

+ 10 - 0
controllers/company_apply.go

@@ -610,6 +610,16 @@ func (this *CompanyApplyController) ApplyContractDetail() {
 			plist.CheckList = checkList
 			detail.PermissionList = append(detail.PermissionList, plist)
 		}
+
+		if detail.WxUserId > 0 {
+			userInfo, err := models.GetWxUserByUserId(detail.WxUserId)
+			if err != nil {
+				br.Msg = "获取联系人异常!"
+				br.ErrMsg = "获取联系人异常,Err:" + err.Error()
+				return
+			}
+			detail.WxUserName = userInfo.RealName
+		}
 	}
 
 	resp := new(company.CompanyContractDetailResp)

+ 1 - 0
controllers/company_approval.go

@@ -548,6 +548,7 @@ func (this *CompanyApprovalController) List() {
 				//DelayPermission   :
 				ApplyRealName: item.ApplyRealName,
 				ApplyUserId:   item.ApplyUserId,
+				WxUserId:      item.WxUserId,
 				OpButton:      opButton,
 			}
 

+ 2 - 0
models/company/company_apply.go

@@ -124,6 +124,8 @@ type CompanyContractDetail struct {
 	Source            string    `description:"合同来源:上传附件, 系统合同"`
 	SourceTag         string    `description:"合同来源标签:非标合同,标准合同"`
 	AllocationType    int       `description:"分配方式,0手动分配,1X录分之后自动分配,默认0"`
+	WxUserId          int       `description:"用户id,针对某份合同仅对单个用户使用的时候的场景"`
+	WxUserName        string    `description:"用户姓名,针对某份合同仅对单个用户使用的时候的场景"`
 	PermissionList    []*PermissionLookList
 }
 

+ 1 - 0
models/company/company_approval.go

@@ -116,6 +116,7 @@ type CompanyApprovalList struct {
 	OpButton          ApprovalButton `description:"操作权限"`
 	ApplyContractType int            `description:"申请合同类型  0 非标  1 标准"`
 	ApplyUserId       int            `description:"申请人编号id" json:"-"`
+	WxUserId          int            `description:"用户id,针对某份合同仅对单个用户使用的时候的场景"`
 }
 
 // ApprovalButton 审批操作权限