Răsfoiți Sursa

feature: 跟进添加字段

liuyaqi 2 ani în urmă
părinte
comite
f7daa3808c

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

@@ -34,6 +34,7 @@ type platFollowupColumns struct {
 	FollowType    string // 跟进类型(10电话20邮件30拜访)
 	FollowDate    string // 跟进时间
 	FollowContent string // 跟进内容
+	FurtherPlan   string // 下一步跟进计划和目标
 	TargetId      string // 跟进对象ID
 	TargetType    string // 跟进对象类型(10客户,20项目,30合同,40回款)
 	TargetName    string // 跟进对象
@@ -64,6 +65,7 @@ var (
 			FollowType:    "follow_type",
 			FollowDate:    "follow_date",
 			FollowContent: "follow_content",
+			FurtherPlan:   "further_plan",
 			TargetId:      "target_id",
 			TargetType:    "target_type",
 			TargetName:    "target_name",
@@ -96,6 +98,7 @@ func NewPlatFollowupDao(tenant string) PlatFollowupDao {
 			FollowType:    "follow_type",
 			FollowDate:    "follow_date",
 			FollowContent: "follow_content",
+			FurtherPlan:   "further_plan",
 			TargetId:      "target_id",
 			TargetType:    "target_type",
 			TargetName:    "target_name",

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

@@ -14,6 +14,7 @@ type PlatFollowup struct {
 	FollowType    string      `orm:"follow_type"    json:"followType"`    // 跟进类型(10电话20邮件30拜访)
 	FollowDate    *gtime.Time `orm:"follow_date"    json:"followDate"`    // 跟进时间
 	FollowContent string      `orm:"follow_content" json:"followContent"` // 跟进内容
+	FurtherPlan   string      `orm:"further_plan"   json:"furtherPlan"`   // 下一步跟进计划和目标
 	TargetId      int         `orm:"target_id"      json:"targetId"`      // 跟进对象ID
 	TargetType    string      `orm:"target_type"    json:"targetType"`    // 跟进对象类型(10客户,20项目,30合同,40回款)
 	TargetName    string      `orm:"target_name"    json:"targetName"`    // 跟进对象

+ 3 - 1
opms_parent/app/model/plat/plat_followup.go

@@ -5,10 +5,11 @@
 package plat
 
 import (
+	"time"
+
 	"dashoo.cn/micro/app/model/plat/internal"
 	"dashoo.cn/opms_libary/request"
 	"github.com/gogf/gf/os/gtime"
-	"time"
 )
 
 // PlatFollowup is the golang structure for table plat_followup.
@@ -37,6 +38,7 @@ 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#下一步跟进计划和目标不能为空"`                // 下一步跟进计划和目标
 	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#跟进对象不能为空"`                    // 跟进对象

+ 1 - 0
opms_parent/schema/tmp.sql

@@ -129,3 +129,4 @@ CREATE TABLE `base_distributor_target` (
 alter table base_distributor add `appro_item` varchar(255) COMMENT '审批项名称: 创建代理商 经销商转代理商 代理商续签 代理商转经销商' after contract_url;
 alter table base_distributor add `appro_data` text COMMENT '审核数据' after appro_item;
 alter table base_distributor add `appro_status` varchar(4) COMMENT '审核状态 20 待审核 30 审核已同意 40 审核已拒绝 50 审核已撤销' after appro_data;
+alter table plat_followup add `further_plan` text COMMENT '下一步跟进计划和目标' after follow_content;