|
|
@@ -31,37 +31,38 @@ type ProductConsultRecordDao struct {
|
|
|
|
|
|
// ProductConsultRecordColumns defines and stores column names for table product_consult_record.
|
|
|
type productConsultRecordColumns struct {
|
|
|
- Id string // 主键
|
|
|
- Code string // 序号
|
|
|
- ConsultTime string // 日期时间
|
|
|
- ProvinceId string // 所在省ID
|
|
|
- Province string // 所在省
|
|
|
- CityId string // 所在市ID
|
|
|
- City string // 所在市
|
|
|
- Unit string // 单位名称
|
|
|
- Name string // 联系人
|
|
|
- Contact string // 联系方式
|
|
|
- Product string // 咨询产品
|
|
|
- InchargeId string // 对接人ID
|
|
|
- InchargeName string // 对接人(销售工程师)
|
|
|
- Content string // 内容
|
|
|
- Progress string // 进展
|
|
|
- NextPlan string // 下一步计划
|
|
|
- DistributorId string // 经销商ID
|
|
|
- DistributorName string // 经销商
|
|
|
- CustId string // 关联客户
|
|
|
- CustName string // 客户名称
|
|
|
- NboId string // 关联项目
|
|
|
- NboName string // 项目名称
|
|
|
- State string // 状态:10(其他)未跟进;20已跟进
|
|
|
- Remark string // 备注
|
|
|
- CreatedBy string // 创建者
|
|
|
- CreatedName string // 创建人
|
|
|
- CreatedTime string // 创建时间
|
|
|
- UpdatedBy string // 更新者
|
|
|
- UpdatedName string // 更新人
|
|
|
- UpdatedTime string // 更新时间
|
|
|
- DeletedTime string // 删除时间
|
|
|
+ Id string // 主键
|
|
|
+ Code string // 序号
|
|
|
+ ConsultTime string // 日期时间
|
|
|
+ ProvinceId string // 所在省ID
|
|
|
+ Province string // 所在省
|
|
|
+ CityId string // 所在市ID
|
|
|
+ City string // 所在市
|
|
|
+ Unit string // 单位名称
|
|
|
+ Name string // 联系人
|
|
|
+ Contact string // 联系方式
|
|
|
+ Product string // 咨询产品
|
|
|
+ InchargeId string // 对接人ID
|
|
|
+ InchargeName string // 对接人(销售工程师)
|
|
|
+ Content string // 内容
|
|
|
+ Progress string // 进展
|
|
|
+ NextPlan string // 下一步计划
|
|
|
+ DistributorId string // 经销商ID
|
|
|
+ DistributorName string // 经销商
|
|
|
+ CustId string // 关联客户
|
|
|
+ CustName string // 客户名称
|
|
|
+ NboId string // 关联项目
|
|
|
+ NboName string // 项目名称
|
|
|
+ State string // 状态:10(其他)未跟进;20已跟进
|
|
|
+ FollowCommunicateCase string // 10、信息有效,可继续跟进,转C类订单;20、信息有效,可转为储备用户;30、信息无效,不再跟进。
|
|
|
+ Remark string // 备注
|
|
|
+ CreatedBy string // 创建者
|
|
|
+ CreatedName string // 创建人
|
|
|
+ CreatedTime string // 创建时间
|
|
|
+ UpdatedBy string // 更新者
|
|
|
+ UpdatedName string // 更新人
|
|
|
+ UpdatedTime string // 更新时间
|
|
|
+ DeletedTime string // 删除时间
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -71,37 +72,38 @@ var (
|
|
|
DB: g.DB("default"),
|
|
|
Table: "product_consult_record",
|
|
|
C: productConsultRecordColumns{
|
|
|
- Id: "id",
|
|
|
- Code: "code",
|
|
|
- ConsultTime: "consult_time",
|
|
|
- ProvinceId: "province_id",
|
|
|
- Province: "province",
|
|
|
- CityId: "city_id",
|
|
|
- City: "city",
|
|
|
- Unit: "unit",
|
|
|
- Name: "name",
|
|
|
- Contact: "contact",
|
|
|
- Product: "product",
|
|
|
- InchargeId: "incharge_id",
|
|
|
- InchargeName: "incharge_name",
|
|
|
- Content: "content",
|
|
|
- Progress: "progress",
|
|
|
- NextPlan: "next_plan",
|
|
|
- DistributorId: "distributor_id",
|
|
|
- DistributorName: "distributor_name",
|
|
|
- CustId: "cust_id",
|
|
|
- CustName: "cust_name",
|
|
|
- NboId: "nbo_id",
|
|
|
- NboName: "nbo_name",
|
|
|
- State: "state",
|
|
|
- Remark: "remark",
|
|
|
- CreatedBy: "created_by",
|
|
|
- CreatedName: "created_name",
|
|
|
- CreatedTime: "created_time",
|
|
|
- UpdatedBy: "updated_by",
|
|
|
- UpdatedName: "updated_name",
|
|
|
- UpdatedTime: "updated_time",
|
|
|
- DeletedTime: "deleted_time",
|
|
|
+ Id: "id",
|
|
|
+ Code: "code",
|
|
|
+ ConsultTime: "consult_time",
|
|
|
+ ProvinceId: "province_id",
|
|
|
+ Province: "province",
|
|
|
+ CityId: "city_id",
|
|
|
+ City: "city",
|
|
|
+ Unit: "unit",
|
|
|
+ Name: "name",
|
|
|
+ Contact: "contact",
|
|
|
+ Product: "product",
|
|
|
+ InchargeId: "incharge_id",
|
|
|
+ InchargeName: "incharge_name",
|
|
|
+ Content: "content",
|
|
|
+ Progress: "progress",
|
|
|
+ NextPlan: "next_plan",
|
|
|
+ DistributorId: "distributor_id",
|
|
|
+ DistributorName: "distributor_name",
|
|
|
+ CustId: "cust_id",
|
|
|
+ CustName: "cust_name",
|
|
|
+ NboId: "nbo_id",
|
|
|
+ NboName: "nbo_name",
|
|
|
+ State: "state",
|
|
|
+ FollowCommunicateCase: "follow_communicate_case",
|
|
|
+ Remark: "remark",
|
|
|
+ CreatedBy: "created_by",
|
|
|
+ CreatedName: "created_name",
|
|
|
+ CreatedTime: "created_time",
|
|
|
+ UpdatedBy: "updated_by",
|
|
|
+ UpdatedName: "updated_name",
|
|
|
+ UpdatedTime: "updated_time",
|
|
|
+ DeletedTime: "deleted_time",
|
|
|
},
|
|
|
}
|
|
|
)
|
|
|
@@ -113,37 +115,38 @@ func NewProductConsultRecordDao(tenant string) ProductConsultRecordDao {
|
|
|
DB: g.DB(tenant),
|
|
|
Table: "product_consult_record",
|
|
|
C: productConsultRecordColumns{
|
|
|
- Id: "id",
|
|
|
- Code: "code",
|
|
|
- ConsultTime: "consult_time",
|
|
|
- ProvinceId: "province_id",
|
|
|
- Province: "province",
|
|
|
- CityId: "city_id",
|
|
|
- City: "city",
|
|
|
- Unit: "unit",
|
|
|
- Name: "name",
|
|
|
- Contact: "contact",
|
|
|
- Product: "product",
|
|
|
- InchargeId: "incharge_id",
|
|
|
- InchargeName: "incharge_name",
|
|
|
- Content: "content",
|
|
|
- Progress: "progress",
|
|
|
- NextPlan: "next_plan",
|
|
|
- DistributorId: "distributor_id",
|
|
|
- DistributorName: "distributor_name",
|
|
|
- CustId: "cust_id",
|
|
|
- CustName: "cust_name",
|
|
|
- NboId: "nbo_id",
|
|
|
- NboName: "nbo_name",
|
|
|
- State: "state",
|
|
|
- Remark: "remark",
|
|
|
- CreatedBy: "created_by",
|
|
|
- CreatedName: "created_name",
|
|
|
- CreatedTime: "created_time",
|
|
|
- UpdatedBy: "updated_by",
|
|
|
- UpdatedName: "updated_name",
|
|
|
- UpdatedTime: "updated_time",
|
|
|
- DeletedTime: "deleted_time",
|
|
|
+ Id: "id",
|
|
|
+ Code: "code",
|
|
|
+ ConsultTime: "consult_time",
|
|
|
+ ProvinceId: "province_id",
|
|
|
+ Province: "province",
|
|
|
+ CityId: "city_id",
|
|
|
+ City: "city",
|
|
|
+ Unit: "unit",
|
|
|
+ Name: "name",
|
|
|
+ Contact: "contact",
|
|
|
+ Product: "product",
|
|
|
+ InchargeId: "incharge_id",
|
|
|
+ InchargeName: "incharge_name",
|
|
|
+ Content: "content",
|
|
|
+ Progress: "progress",
|
|
|
+ NextPlan: "next_plan",
|
|
|
+ DistributorId: "distributor_id",
|
|
|
+ DistributorName: "distributor_name",
|
|
|
+ CustId: "cust_id",
|
|
|
+ CustName: "cust_name",
|
|
|
+ NboId: "nbo_id",
|
|
|
+ NboName: "nbo_name",
|
|
|
+ State: "state",
|
|
|
+ FollowCommunicateCase: "follow_communicate_case",
|
|
|
+ Remark: "remark",
|
|
|
+ CreatedBy: "created_by",
|
|
|
+ CreatedName: "created_name",
|
|
|
+ CreatedTime: "created_time",
|
|
|
+ UpdatedBy: "updated_by",
|
|
|
+ UpdatedName: "updated_name",
|
|
|
+ UpdatedTime: "updated_time",
|
|
|
+ DeletedTime: "deleted_time",
|
|
|
},
|
|
|
}
|
|
|
return dao
|