|
@@ -0,0 +1,199 @@
|
|
|
+// ==========================================================================
|
|
|
+// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
|
+// ==========================================================================
|
|
|
+
|
|
|
+package internal
|
|
|
+
|
|
|
+import (
|
|
|
+ "context"
|
|
|
+
|
|
|
+ "github.com/gogf/gf/v2/database/gdb"
|
|
|
+ "github.com/gogf/gf/v2/frame/g"
|
|
|
+)
|
|
|
+
|
|
|
+// DwdFCrmClueInfoDao is the data access object for the table dwd_f_crm_clue_info.
|
|
|
+type DwdFCrmClueInfoDao struct {
|
|
|
+ table string // table is the underlying table name of the DAO.
|
|
|
+ group string // group is the database configuration group name of the current DAO.
|
|
|
+ columns DwdFCrmClueInfoColumns // columns contains all the column names of Table for convenient usage.
|
|
|
+}
|
|
|
+
|
|
|
+// DwdFCrmClueInfoColumns defines and stores column names for the table dwd_f_crm_clue_info.
|
|
|
+type DwdFCrmClueInfoColumns struct {
|
|
|
+ Id string // 线索ID:UUID
|
|
|
+ Uid string // 用户表UUID
|
|
|
+ Userid string // 用户userid
|
|
|
+ PositionId string // 坐席职位ID
|
|
|
+ SeatNumber string // 坐席号
|
|
|
+ IsAssign string // 是否分配:0:未分配,公海;1:已分配,私海
|
|
|
+ Comeintime string // 出入私海的时间
|
|
|
+ ComeintimeOpen string // 公海入海时间
|
|
|
+ Createtime string // 线索创建时间:线索生成时间
|
|
|
+ Updatetime string // 更新时间
|
|
|
+ Cluename string // 线索名称:COMPANY_NAME
|
|
|
+ TopCluetype string // 线索来源一级
|
|
|
+ SubCluetype string // 线索来源二级
|
|
|
+ BusinessScope string // 业务范围
|
|
|
+ CustomerDemand string // 客户需求
|
|
|
+ IntendedProducts string // 意向产品
|
|
|
+ CustomerBudget string // 客户预算
|
|
|
+ ContactType string // 联系人类型:决策人,使用人
|
|
|
+ Name string // 姓名
|
|
|
+ Phone string // 联系方式
|
|
|
+ Sex string // 性别:男、女
|
|
|
+ Position string // 职位
|
|
|
+ Department string // 部门
|
|
|
+ Industry string // 所属行业
|
|
|
+ CustomeIndustry string // 目标客户行业
|
|
|
+ FollowProjectArea string // 关注项目区域:CODE,关联区域维表
|
|
|
+ Role string // 生态角色
|
|
|
+ Trailstatus string // 线索跟进状态:无意向,已成交......
|
|
|
+ TrailstatusTime string // 线索状态变更时间
|
|
|
+ TrailTime string // 最新跟进时间
|
|
|
+ NextTrailTime string // 下次跟进时间
|
|
|
+ IsTask string // 是否加车
|
|
|
+ Tasktime string // 任务时间
|
|
|
+ Taskstatus string // 任务状态
|
|
|
+ ComeinsourcePrivate string // 私海-入海来源
|
|
|
+ Tasksource string // 入车来源
|
|
|
+ OutTaskTime string // 退车时间
|
|
|
+ OutTaskStatus string // 退车状态
|
|
|
+ ComeinsourceOpen string // 公海-入海来源
|
|
|
+ LevelOpen string // 公海级别
|
|
|
+ ClueLevel string // 线索等级
|
|
|
+ TaskTime string // 加车时间
|
|
|
+ BatchImport string // 导入批次
|
|
|
+ IsTransfer string // 是否移交;0:未移交 1:已移交
|
|
|
+ SalespersonNum string // 销售人员数量
|
|
|
+ StartTrailTime string // 开始跟进时间
|
|
|
+ Content string // 最近跟进内容
|
|
|
+ State string // 最后通话状态
|
|
|
+ CompanyNature string // 公司性质,0:非集团公司 1:集团公司
|
|
|
+ CompanyVerification string // 公司核验,0:不在工商库 1:在工商库
|
|
|
+ Remark string // 备注
|
|
|
+ Shuoming string // uid更新说明
|
|
|
+ FreezeTime string // 冻结时间
|
|
|
+ LastRingTime string // 最近外呼时间
|
|
|
+ LastBeginTime string // 最近接通时间
|
|
|
+ IsUnfollow string // 是否不再跟进,0:否,1:是
|
|
|
+ UseDemand string // 使用需求
|
|
|
+ IsArtificiallyModified string // 是否人为修改,0:否,1:是
|
|
|
+ LockStatus string // 锁定状态,1:已锁定,2:未锁定,3:无需锁定
|
|
|
+ LockPositionId string // 锁定人职位id,多值
|
|
|
+ LockTime string // 锁定时间
|
|
|
+ LegalRepresentative string // 法定代表人
|
|
|
+ Label string // 标签 1自动分配2来源变更3其他变更
|
|
|
+ LabelChangeTime string // 标签变更时间 2024-12-12
|
|
|
+}
|
|
|
+
|
|
|
+// dwdFCrmClueInfoColumns holds the columns for the table dwd_f_crm_clue_info.
|
|
|
+var dwdFCrmClueInfoColumns = DwdFCrmClueInfoColumns{
|
|
|
+ Id: "id",
|
|
|
+ Uid: "uid",
|
|
|
+ Userid: "userid",
|
|
|
+ PositionId: "position_id",
|
|
|
+ SeatNumber: "seatNumber",
|
|
|
+ IsAssign: "is_assign",
|
|
|
+ Comeintime: "comeintime",
|
|
|
+ ComeintimeOpen: "comeintime_open",
|
|
|
+ Createtime: "createtime",
|
|
|
+ Updatetime: "updatetime",
|
|
|
+ Cluename: "cluename",
|
|
|
+ TopCluetype: "top_cluetype",
|
|
|
+ SubCluetype: "sub_cluetype",
|
|
|
+ BusinessScope: "business_scope",
|
|
|
+ CustomerDemand: "customer_demand",
|
|
|
+ IntendedProducts: "intended_products",
|
|
|
+ CustomerBudget: "customer_budget",
|
|
|
+ ContactType: "contact_type",
|
|
|
+ Name: "name",
|
|
|
+ Phone: "phone",
|
|
|
+ Sex: "sex",
|
|
|
+ Position: "position",
|
|
|
+ Department: "department",
|
|
|
+ Industry: "industry",
|
|
|
+ CustomeIndustry: "custome_industry",
|
|
|
+ FollowProjectArea: "follow_project_area",
|
|
|
+ Role: "role",
|
|
|
+ Trailstatus: "trailstatus",
|
|
|
+ TrailstatusTime: "trailstatus_time",
|
|
|
+ TrailTime: "trail_time",
|
|
|
+ NextTrailTime: "next_trail_time",
|
|
|
+ IsTask: "is_task",
|
|
|
+ Tasktime: "tasktime",
|
|
|
+ Taskstatus: "taskstatus",
|
|
|
+ ComeinsourcePrivate: "comeinsource_private",
|
|
|
+ Tasksource: "tasksource",
|
|
|
+ OutTaskTime: "out_task_time",
|
|
|
+ OutTaskStatus: "out_task_status",
|
|
|
+ ComeinsourceOpen: "comeinsource_open",
|
|
|
+ LevelOpen: "level_open",
|
|
|
+ ClueLevel: "clue_level",
|
|
|
+ TaskTime: "task_time",
|
|
|
+ BatchImport: "batch_import",
|
|
|
+ IsTransfer: "IS_TRANSFER",
|
|
|
+ SalespersonNum: "salesperson_num",
|
|
|
+ StartTrailTime: "start_trail_time",
|
|
|
+ Content: "content",
|
|
|
+ State: "STATE",
|
|
|
+ CompanyNature: "COMPANY_NATURE",
|
|
|
+ CompanyVerification: "COMPANY_VERIFICATION",
|
|
|
+ Remark: "remark",
|
|
|
+ Shuoming: "shuoming",
|
|
|
+ FreezeTime: "FREEZE_TIME",
|
|
|
+ LastRingTime: "last_ring_time",
|
|
|
+ LastBeginTime: "last_begin_time",
|
|
|
+ IsUnfollow: "is_unfollow",
|
|
|
+ UseDemand: "use_demand",
|
|
|
+ IsArtificiallyModified: "is_artificially_modified",
|
|
|
+ LockStatus: "lock_status",
|
|
|
+ LockPositionId: "lock_position_id",
|
|
|
+ LockTime: "lock_time",
|
|
|
+ LegalRepresentative: "legal_representative",
|
|
|
+ Label: "label",
|
|
|
+ LabelChangeTime: "labelChangeTime",
|
|
|
+}
|
|
|
+
|
|
|
+// NewDwdFCrmClueInfoDao creates and returns a new DAO object for table data access.
|
|
|
+func NewDwdFCrmClueInfoDao() *DwdFCrmClueInfoDao {
|
|
|
+ return &DwdFCrmClueInfoDao{
|
|
|
+ group: "crm",
|
|
|
+ table: "dwd_f_crm_clue_info",
|
|
|
+ columns: dwdFCrmClueInfoColumns,
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// DB retrieves and returns the underlying raw database management object of the current DAO.
|
|
|
+func (dao *DwdFCrmClueInfoDao) DB() gdb.DB {
|
|
|
+ return g.DB(dao.group)
|
|
|
+}
|
|
|
+
|
|
|
+// Table returns the table name of the current DAO.
|
|
|
+func (dao *DwdFCrmClueInfoDao) Table() string {
|
|
|
+ return dao.table
|
|
|
+}
|
|
|
+
|
|
|
+// Columns returns all column names of the current DAO.
|
|
|
+func (dao *DwdFCrmClueInfoDao) Columns() DwdFCrmClueInfoColumns {
|
|
|
+ return dao.columns
|
|
|
+}
|
|
|
+
|
|
|
+// Group returns the database configuration group name of the current DAO.
|
|
|
+func (dao *DwdFCrmClueInfoDao) Group() string {
|
|
|
+ return dao.group
|
|
|
+}
|
|
|
+
|
|
|
+// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
|
|
|
+func (dao *DwdFCrmClueInfoDao) Ctx(ctx context.Context) *gdb.Model {
|
|
|
+ return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
|
|
+}
|
|
|
+
|
|
|
+// Transaction wraps the transaction logic using function f.
|
|
|
+// It rolls back the transaction and returns the error if function f returns a non-nil error.
|
|
|
+// It commits the transaction and returns nil if function f returns nil.
|
|
|
+//
|
|
|
+// Note: Do not commit or roll back the transaction in function f,
|
|
|
+// as it is automatically handled by this function.
|
|
|
+func (dao *DwdFCrmClueInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
|
|
+ return dao.Ctx(ctx).Transaction(ctx, f)
|
|
|
+}
|