|
|
@@ -27,31 +27,38 @@ type CustCustomerDao struct {
|
|
|
|
|
|
// CustCustomerColumns defines and stores column names for table cust_customer.
|
|
|
type custCustomerColumns struct {
|
|
|
- Id string // 主键
|
|
|
- CustCode string // 客户编号
|
|
|
- CustName string // 客户名称
|
|
|
- AbbrName string // 助记名
|
|
|
- CustIndustry string //客户行业
|
|
|
- CustLevel string // 客户级别(10 重点客户 20 普通客户 30非优客户)
|
|
|
- CustDistCode int // 所在省份ID
|
|
|
- CustLocation string // 所在地区
|
|
|
- CustAddress string // 详细地址
|
|
|
- CustStatus string // 客户状态(10正常20)
|
|
|
- CustSource string // 客户来源
|
|
|
- IsPublic string // 公海客户(10是20否)
|
|
|
- DeptId string // 所属部门ID
|
|
|
- DeptName string // 所属部门
|
|
|
- SalesId string // 所属销售ID
|
|
|
- SalesName string // 所属销售
|
|
|
- FollowUpDate string // 最后跟进时间
|
|
|
- Remark string // 备注
|
|
|
- CreatedBy string // 创建者
|
|
|
- CreatedName string // 创建人
|
|
|
- CreatedTime string // 创建时间
|
|
|
- UpdatedBy string // 更新者
|
|
|
- UpdatedName string // 更新人
|
|
|
- UpdatedTime string // 更新时间
|
|
|
- DeletedTime string // 删除时间
|
|
|
+ Id string // 主键
|
|
|
+ CustCode string // 客户编号
|
|
|
+ CustName string // 客户名称
|
|
|
+ AbbrName string // 助记名
|
|
|
+ CustDistCode string // 客户所在省级ID
|
|
|
+ CustLocation string // 所在地区
|
|
|
+ CustAddress string // 详细地址
|
|
|
+ CustProvinceId string // 所在省ID
|
|
|
+ CustProvince string // 所在省
|
|
|
+ CustCityId string // 所在市ID
|
|
|
+ CustCity string // 所在市
|
|
|
+ CustRegionId string // 所在区县ID
|
|
|
+ CustRegion string // 所在区县
|
|
|
+ CustIndustry string // 客户行业
|
|
|
+ CustLevel string // 客户级别(10 重点客户 20 普通客户 30非优客户)
|
|
|
+ CustStatus string // 客户状态(10 待领取 20 领取审批 30 已领取)
|
|
|
+ CustSource string // 客户来源
|
|
|
+ IsPublic string // 公海客户(10是20否)
|
|
|
+ DeptId string // 所属部门ID
|
|
|
+ DeptName string // 所属部门
|
|
|
+ SalesId string // 所属销售ID
|
|
|
+ SalesName string // 所属销售
|
|
|
+ FollowUpDate string // 最后跟进时间
|
|
|
+ FollowUpMan string // 最后跟进人
|
|
|
+ Remark string // 备注
|
|
|
+ CreatedBy string // 创建者
|
|
|
+ CreatedName string // 创建人
|
|
|
+ CreatedTime string // 创建时间
|
|
|
+ UpdatedBy string // 更新者
|
|
|
+ UpdatedName string // 更新人
|
|
|
+ UpdatedTime string // 更新时间
|
|
|
+ DeletedTime string // 删除时间
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -61,30 +68,38 @@ var (
|
|
|
DB: g.DB("default"),
|
|
|
Table: "cust_customer",
|
|
|
Columns: custCustomerColumns{
|
|
|
- Id: "id",
|
|
|
- CustCode: "cust_code",
|
|
|
- CustName: "cust_name",
|
|
|
- CustIndustry: "cust_industry",
|
|
|
- CustLevel: "cust_level",
|
|
|
- AbbrName: "abbr_name",
|
|
|
- CustLocation: "cust_location",
|
|
|
- CustAddress: "cust_address",
|
|
|
- CustSource: "cust_source",
|
|
|
- CustStatus: "cust_status",
|
|
|
- IsPublic: "is_public",
|
|
|
- DeptId: "dept_id",
|
|
|
- DeptName: "dept_name",
|
|
|
- SalesId: "sales_id",
|
|
|
- SalesName: "sales_name",
|
|
|
- FollowUpDate: "follow_up_date",
|
|
|
- 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",
|
|
|
+ CustCode: "cust_code",
|
|
|
+ CustName: "cust_name",
|
|
|
+ AbbrName: "abbr_name",
|
|
|
+ CustDistCode: "cust_dist_code",
|
|
|
+ CustLocation: "cust_location",
|
|
|
+ CustAddress: "cust_address",
|
|
|
+ CustProvinceId: "cust_province_id",
|
|
|
+ CustProvince: "cust_province",
|
|
|
+ CustCityId: "cust_city_id",
|
|
|
+ CustCity: "cust_city",
|
|
|
+ CustRegionId: "cust_region_id",
|
|
|
+ CustRegion: "cust_region",
|
|
|
+ CustIndustry: "cust_industry",
|
|
|
+ CustLevel: "cust_level",
|
|
|
+ CustStatus: "cust_status",
|
|
|
+ CustSource: "cust_source",
|
|
|
+ IsPublic: "is_public",
|
|
|
+ DeptId: "dept_id",
|
|
|
+ DeptName: "dept_name",
|
|
|
+ SalesId: "sales_id",
|
|
|
+ SalesName: "sales_name",
|
|
|
+ FollowUpDate: "follow_up_date",
|
|
|
+ FollowUpMan: "follow_up_man",
|
|
|
+ Remark: "remark",
|
|
|
+ CreatedBy: "created_by",
|
|
|
+ CreatedName: "created_name",
|
|
|
+ CreatedTime: "created_time",
|
|
|
+ UpdatedBy: "updated_by",
|
|
|
+ UpdatedName: "updated_name",
|
|
|
+ UpdatedTime: "updated_time",
|
|
|
+ DeletedTime: "deleted_time",
|
|
|
},
|
|
|
}
|
|
|
)
|
|
|
@@ -96,30 +111,38 @@ func NewCustCustomerDao(tenant string) CustCustomerDao {
|
|
|
DB: g.DB(tenant),
|
|
|
Table: "cust_customer",
|
|
|
Columns: custCustomerColumns{
|
|
|
- Id: "id",
|
|
|
- CustCode: "cust_code",
|
|
|
- CustName: "cust_name",
|
|
|
- AbbrName: "abbr_name",
|
|
|
- CustLocation: "cust_location",
|
|
|
- CustIndustry: "cust_industry",
|
|
|
- CustLevel: "cust_level",
|
|
|
- CustAddress: "cust_address",
|
|
|
- CustStatus: "cust_status",
|
|
|
- CustSource: "cust_source",
|
|
|
- IsPublic: "is_public",
|
|
|
- DeptId: "dept_id",
|
|
|
- DeptName: "dept_name",
|
|
|
- SalesId: "sales_id",
|
|
|
- SalesName: "sales_name",
|
|
|
- FollowUpDate: "follow_up_date",
|
|
|
- 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",
|
|
|
+ CustCode: "cust_code",
|
|
|
+ CustName: "cust_name",
|
|
|
+ AbbrName: "abbr_name",
|
|
|
+ CustDistCode: "cust_dist_code",
|
|
|
+ CustLocation: "cust_location",
|
|
|
+ CustAddress: "cust_address",
|
|
|
+ CustProvinceId: "cust_province_id",
|
|
|
+ CustProvince: "cust_province",
|
|
|
+ CustCityId: "cust_city_id",
|
|
|
+ CustCity: "cust_city",
|
|
|
+ CustRegionId: "cust_region_id",
|
|
|
+ CustRegion: "cust_region",
|
|
|
+ CustIndustry: "cust_industry",
|
|
|
+ CustLevel: "cust_level",
|
|
|
+ CustStatus: "cust_status",
|
|
|
+ CustSource: "cust_source",
|
|
|
+ IsPublic: "is_public",
|
|
|
+ DeptId: "dept_id",
|
|
|
+ DeptName: "dept_name",
|
|
|
+ SalesId: "sales_id",
|
|
|
+ SalesName: "sales_name",
|
|
|
+ FollowUpDate: "follow_up_date",
|
|
|
+ FollowUpMan: "follow_up_man",
|
|
|
+ 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
|