浏览代码

feature(项目跟进):项目跟进允许添加渠道联系人

ZZH-wl 2 年之前
父节点
当前提交
a19cff0ffa

+ 3 - 0
opms_parent/app/dao/plat/internal/plat_followup.go

@@ -42,6 +42,7 @@ type platFollowupColumns struct {
 	TargetName    string // 跟进对象
 	CustId        string // 关联客户
 	CustName      string // 客户名称
+	ContactType   string // 联系人类型(10客户 20 渠道)
 	ContactsId    string // 关联联系人
 	ContactsName  string // 联系人姓名
 	Reminders     string // 提醒对象
@@ -75,6 +76,7 @@ var (
 			TargetName:    "target_name",
 			CustId:        "cust_id",
 			CustName:      "cust_name",
+			ContactType:   "contact_type",
 			ContactsId:    "contacts_id",
 			ContactsName:  "contacts_name",
 			Reminders:     "reminders",
@@ -110,6 +112,7 @@ func NewPlatFollowupDao(tenant string) PlatFollowupDao {
 			TargetName:    "target_name",
 			CustId:        "cust_id",
 			CustName:      "cust_name",
+			ContactType:   "contact_type",
 			ContactsId:    "contacts_id",
 			ContactsName:  "contacts_name",
 			Reminders:     "reminders",

+ 1 - 0
opms_parent/app/model/plat/internal/plat_followup.go

@@ -22,6 +22,7 @@ type PlatFollowup struct {
 	TargetName    string      `orm:"target_name"    json:"targetName"`    // 跟进对象
 	CustId        int         `orm:"cust_id"        json:"custId"`        // 关联客户
 	CustName      string      `orm:"cust_name"      json:"custName"`      // 客户名称
+	ContactType   string      `orm:"contact_type"   json:"contactType"`   // 联系人类型(10客户 20 渠道)
 	ContactsId    int         `orm:"contacts_id"    json:"contactsId"`    // 关联联系人
 	ContactsName  string      `orm:"contacts_name"  json:"contactsName"`  // 联系人姓名
 	Reminders     string      `orm:"reminders"      json:"reminders"`     // 提醒对象

+ 17 - 16
opms_parent/app/model/plat/plat_followup.go

@@ -35,23 +35,24 @@ type SearchPlatFollowupReq struct {
 
 // 添加数据
 type AddPlatFollowupReq struct {
-	FollowType    string                    `orm:"follow_type"    json:"followType"    v:"required#跟进类型不能为空"`                    // 跟进类型(10电话20邮件30拜访)
-	FollowDate    *gtime.Time               `orm:"follow_date"    json:"followDate"    v:"required#跟进时间不能为空"`                    // 跟进时间
-	FollowContent string                    `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"`                    // 跟进内容
-	FurtherPlan   string                    `orm:"further_plan"   json:"furtherPlan" v:"required#下一步跟进计划和目标不能为空"`                // 下一步跟进计划和目标
-	Effect        string                    `orm:"effect"         json:"effect" v:"required#达成效果不能为空"`                           // 达成效果
-	Issue         string                    `orm:"issue"          json:"issue" v:"required#问题或困难不能为空"`                           // 问题或困难
+	FollowType    string                    `orm:"follow_type"    json:"followType"    v:"required#跟进类型不能为空"`                            // 跟进类型(10电话20邮件30拜访)
+	FollowDate    *gtime.Time               `orm:"follow_date"    json:"followDate"    v:"required#跟进时间不能为空"`                            // 跟进时间
+	FollowContent string                    `orm:"follow_content" json:"followContent" v:"required#跟进内容不能为空"`                            // 跟进内容
+	FurtherPlan   string                    `orm:"further_plan"   json:"furtherPlan" v:"required#下一步跟进计划和目标不能为空"`                  // 下一步跟进计划和目标
+	Effect        string                    `orm:"effect"         json:"effect" v:"required#达成效果不能为空"`                                   // 达成效果
+	Issue         string                    `orm:"issue"          json:"issue" v:"required#问题或困难不能为空"`                                  // 问题或困难
 	TargetId      int                       `orm:"target_id"      json:"targetId"      v:"required|min:1#跟进对象ID不能为空|跟进对象ID不能为空"` // 跟进对象ID
-	TargetType    string                    `orm:"target_type"    json:"targetType"    v:"required#跟进对象类型不能为空"`                  // 跟进对象类型(10客户,20项目,30合同,40回款)
-	TargetName    string                    `orm:"target_name"    json:"targetName"    v:"required#跟进对象不能为空"`                    // 跟进对象
-	CustId        int                       `orm:"cust_id"        json:"custId"`                                                 // 关联客户
-	CustName      string                    `orm:"cust_name"      json:"custName"`                                               // 客户名称
-	ContactsId    int                       `orm:"contacts_id"    json:"contactsId"`                                             // 关联联系人
-	ContactsName  string                    `orm:"contacts_name"  json:"contactsName"`                                           // 联系人姓名
-	Reminders     string                    `orm:"reminders"      json:"reminders"`                                              // 提醒对象
-	NextTime      *gtime.Time               `orm:"next_time"      json:"nextTime"`                                               // 下次联系时间
-	Remark        string                    `orm:"remark"         json:"remark"`                                                 // 备注
-	Files         []*AddPlatFollowupFileReq `json:"files"`                                                                       // 附件
+	TargetType    string                    `orm:"target_type"    json:"targetType"    v:"required#跟进对象类型不能为空"`                        // 跟进对象类型(10客户,20项目,30合同,40回款)
+	TargetName    string                    `orm:"target_name"    json:"targetName"    v:"required#跟进对象不能为空"`                            // 跟进对象
+	CustId        int                       `orm:"cust_id"        json:"custId"`                                                                 // 关联客户
+	CustName      string                    `orm:"cust_name"      json:"custName"`                                                               // 客户名称
+	ContactType   string                    `orm:"contact_type"   json:"contactType"`                                                            // 联系人类型(10客户 20 渠道)
+	ContactsId    int                       `orm:"contacts_id"    json:"contactsId"`                                                             // 关联联系人
+	ContactsName  string                    `orm:"contacts_name"  json:"contactsName"`                                                           // 联系人姓名
+	Reminders     string                    `orm:"reminders"      json:"reminders"`                                                              // 提醒对象
+	NextTime      *gtime.Time               `orm:"next_time"      json:"nextTime"`                                                               // 下次联系时间
+	Remark        string                    `orm:"remark"         json:"remark"`                                                                 // 备注
+	Files         []*AddPlatFollowupFileReq `json:"files"`                                                                                       // 附件
 	//FollowContentType string      `orm:"follow_content_type" json:"followContentType" v:"required#跟进内容类型不能为空"`               // 跟进内容类型
 	//SupportName       string      `orm:"support_name"   json:"supportName"`                                                            // 总部支持人员
 }