Explorar el Código

提交客户管理代码

wangxingcheng hace 3 años
padre
commit
552d54c4e4

+ 36 - 0
opms_parent/app/dao/base/base_sales_region.go

@@ -0,0 +1,36 @@
+// ============================================================================
+// This is auto-generated by gf cli tool only once. Fill this file as you wish.
+// ============================================================================
+
+package base
+
+import (
+	"dashoo.cn/micro/app/dao/base/internal"
+)
+
+// baseSalesRegionDao is the manager for logic model data accessing
+// and custom defined data operations functions management. You can define
+// methods on it to extend its functionality as you wish.
+type baseSalesRegionDao struct {
+	internal.BaseSalesRegionDao
+}
+
+var (
+	// BaseSalesRegion is globally public accessible object for table base_sales_region operations.
+	BaseSalesRegion = baseSalesRegionDao{
+		internal.BaseSalesRegion,
+	}
+)
+
+type BaseSalesRegionDao struct {
+	internal.BaseSalesRegionDao
+}
+
+func NewBaseSalesRegionDao(tenant string) *BaseSalesRegionDao {
+	dao := internal.NewBaseSalesRegionDao(tenant)
+	return &BaseSalesRegionDao{
+		dao,
+	}
+}
+
+// Fill with you ideas below.

+ 36 - 0
opms_parent/app/dao/base/base_sales_region_detail.go

@@ -0,0 +1,36 @@
+// ============================================================================
+// This is auto-generated by gf cli tool only once. Fill this file as you wish.
+// ============================================================================
+
+package base
+
+import (
+	"dashoo.cn/micro/app/dao/base/internal"
+)
+
+// baseSalesRegionDetailDao is the manager for logic model data accessing
+// and custom defined data operations functions management. You can define
+// methods on it to extend its functionality as you wish.
+type baseSalesRegionDetailDao struct {
+	internal.BaseSalesRegionDetailDao
+}
+
+var (
+	// BaseSalesRegionDetail is globally public accessible object for table base_sales_region_detail operations.
+	BaseSalesRegionDetail = baseSalesRegionDetailDao{
+		internal.BaseSalesRegionDetail,
+	}
+)
+
+type BaseSalesRegionDetailDao struct {
+	internal.BaseSalesRegionDetailDao
+}
+
+func NewBaseSalesRegionDetailDao(tenant string) *BaseSalesRegionDetailDao {
+	dao := internal.NewBaseSalesRegionDetailDao(tenant)
+	return &BaseSalesRegionDetailDao{
+		dao,
+	}
+}
+
+// Fill with you ideas below.

+ 2 - 1
opms_parent/app/dao/base/internal/base_district.go

@@ -28,7 +28,7 @@ type BaseDistrictDao struct {
 // BaseDistrictColumns defines and stores column names for table base_district.
 type baseDistrictColumns struct {
 	Id            string // 主键
-	DistName      string // 地区名称
+	string               // 地区名称
 	DistShortName string // 地区简称
 	DistCode      string // 地区编号
 	DistLevel     string // 地区级别;1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县
@@ -42,6 +42,7 @@ type baseDistrictColumns struct {
 	UpdatedName   string // 更新人
 	UpdatedTime   string // 更新时间
 	DeletedTime   string // 删除时间
+	DistName      string
 }
 
 var (

+ 433 - 0
opms_parent/app/dao/base/internal/base_sales_region.go

@@ -0,0 +1,433 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"database/sql"
+	"time"
+
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+	"github.com/gogf/gf/frame/gmvc"
+
+	model "dashoo.cn/micro/app/model/base"
+)
+
+// BaseSalesRegionDao is the manager for logic model data accessing
+// and custom defined data operations functions management.
+type BaseSalesRegionDao struct {
+	gmvc.M
+	DB      gdb.DB
+	Table   string
+	Columns baseSalesRegionColumns
+}
+
+// BaseSalesRegionColumns defines and stores column names for table base_sales_region.
+type baseSalesRegionColumns struct {
+	Id          string // 主键
+	RegionCode  string // 区域编码
+	RegionDesc  string // 区域描述
+	UserId      string // 区域负责人id
+	UserName    string // 区域负责人
+	Remark      string // 备注
+	CreatedBy   string // 创建者
+	CreatedName string // 创建人
+	CreatedTime string // 创建时间
+	UpdatedBy   string // 更新者
+	UpdatedName string // 更新人
+	UpdatedTime string // 更新时间
+	DeletedTime string // 删除时间
+}
+
+var (
+	// BaseSalesRegion is globally public accessible object for table base_sales_region operations.
+	BaseSalesRegion = BaseSalesRegionDao{
+		M:     g.DB("default").Model("base_sales_region").Safe(),
+		DB:    g.DB("default"),
+		Table: "base_sales_region",
+		Columns: baseSalesRegionColumns{
+			Id:          "id",
+			RegionCode:  "region_code",
+			RegionDesc:  "region_desc",
+			UserId:      "user_id",
+			UserName:    "user_name",
+			Remark:      "remark",
+			CreatedBy:   "created_by",
+			CreatedName: "created_name",
+			CreatedTime: "created_time",
+			UpdatedBy:   "updated_by",
+			UpdatedName: "updated_name",
+			UpdatedTime: "updated_time",
+			DeletedTime: "deleted_time",
+		},
+	}
+)
+
+func NewBaseSalesRegionDao(tenant string) BaseSalesRegionDao {
+	var dao BaseSalesRegionDao
+	dao = BaseSalesRegionDao{
+		M:     g.DB(tenant).Model("base_sales_region").Safe(),
+		DB:    g.DB(tenant),
+		Table: "base_sales_region",
+		Columns: baseSalesRegionColumns{
+			Id:          "id",
+			RegionCode:  "region_code",
+			RegionDesc:  "region_desc",
+			UserId:      "user_id",
+			UserName:    "user_name",
+			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
+}
+
+// Ctx is a chaining function, which creates and returns a new DB that is a shallow copy
+// of current DB object and with given context in it.
+// Note that this returned DB object can be used only once, so do not assign it to
+// a global or package variable for long using.
+func (d *BaseSalesRegionDao) Ctx(ctx context.Context) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Ctx(ctx)}
+}
+
+// As sets an alias name for current table.
+func (d *BaseSalesRegionDao) As(as string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.As(as)}
+}
+
+// TX sets the transaction for current operation.
+func (d *BaseSalesRegionDao) TX(tx *gdb.TX) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.TX(tx)}
+}
+
+// Master marks the following operation on master node.
+func (d *BaseSalesRegionDao) Master() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Master()}
+}
+
+// Slave marks the following operation on slave node.
+// Note that it makes sense only if there's any slave node configured.
+func (d *BaseSalesRegionDao) Slave() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Slave()}
+}
+
+// Args sets custom arguments for model operation.
+func (d *BaseSalesRegionDao) Args(args ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Args(args...)}
+}
+
+// LeftJoin does "LEFT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").LeftJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDao) LeftJoin(table ...string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.LeftJoin(table...)}
+}
+
+// RightJoin does "RIGHT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").RightJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").RightJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDao) RightJoin(table ...string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.RightJoin(table...)}
+}
+
+// InnerJoin does "INNER JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").InnerJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").InnerJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDao) InnerJoin(table ...string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.InnerJoin(table...)}
+}
+
+// Fields sets the operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *BaseSalesRegionDao) Fields(fieldNamesOrMapStruct ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Fields(fieldNamesOrMapStruct...)}
+}
+
+// FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *BaseSalesRegionDao) FieldsEx(fieldNamesOrMapStruct ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.FieldsEx(fieldNamesOrMapStruct...)}
+}
+
+// Option sets the extra operation option for the model.
+func (d *BaseSalesRegionDao) Option(option int) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Option(option)}
+}
+
+// OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
+// the data and where attributes for empty values.
+func (d *BaseSalesRegionDao) OmitEmpty() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.OmitEmpty()}
+}
+
+// Filter marks filtering the fields which does not exist in the fields of the operated table.
+func (d *BaseSalesRegionDao) Filter() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Filter()}
+}
+
+// Where sets the condition statement for the model. The parameter <where> can be type of
+// string/map/gmap/slice/struct/*struct, etc. Note that, if it's called more than one times,
+// multiple conditions will be joined into where statement using "AND".
+// Eg:
+// Where("uid=10000")
+// Where("uid", 10000)
+// Where("money>? AND name like ?", 99999, "vip_%")
+// Where("uid", 1).Where("name", "john")
+// Where("status IN (?)", g.Slice{1,2,3})
+// Where("age IN(?,?)", 18, 50)
+// Where(User{ Id : 1, UserName : "john"})
+func (d *BaseSalesRegionDao) Where(where interface{}, args ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Where(where, args...)}
+}
+
+// WherePri does the same logic as M.Where except that if the parameter <where>
+// is a single condition like int/string/float/slice, it treats the condition as the primary
+// key value. That is, if primary key is "id" and given <where> parameter as "123", the
+// WherePri function treats the condition as "id=123", but M.Where treats the condition
+// as string "123".
+func (d *BaseSalesRegionDao) WherePri(where interface{}, args ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.WherePri(where, args...)}
+}
+
+// And adds "AND" condition to the where statement.
+func (d *BaseSalesRegionDao) And(where interface{}, args ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.And(where, args...)}
+}
+
+// Or adds "OR" condition to the where statement.
+func (d *BaseSalesRegionDao) Or(where interface{}, args ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Or(where, args...)}
+}
+
+// Group sets the "GROUP BY" statement for the model.
+func (d *BaseSalesRegionDao) Group(groupBy string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Group(groupBy)}
+}
+
+// Order sets the "ORDER BY" statement for the model.
+func (d *BaseSalesRegionDao) Order(orderBy ...string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Order(orderBy...)}
+}
+
+// Limit sets the "LIMIT" statement for the model.
+// The parameter <limit> can be either one or two number, if passed two number is passed,
+// it then sets "LIMIT limit[0],limit[1]" statement for the model, or else it sets "LIMIT limit[0]"
+// statement.
+func (d *BaseSalesRegionDao) Limit(limit ...int) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Limit(limit...)}
+}
+
+// Offset sets the "OFFSET" statement for the model.
+// It only makes sense for some databases like SQLServer, PostgreSQL, etc.
+func (d *BaseSalesRegionDao) Offset(offset int) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Offset(offset)}
+}
+
+// Page sets the paging number for the model.
+// The parameter <page> is started from 1 for paging.
+// Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
+func (d *BaseSalesRegionDao) Page(page, limit int) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Page(page, limit)}
+}
+
+// Batch sets the batch operation number for the model.
+func (d *BaseSalesRegionDao) Batch(batch int) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Batch(batch)}
+}
+
+// Cache sets the cache feature for the model. It caches the result of the sql, which means
+// if there's another same sql request, it just reads and returns the result from cache, it
+// but not committed and executed into the database.
+//
+// If the parameter <duration> < 0, which means it clear the cache with given <name>.
+// If the parameter <duration> = 0, which means it never expires.
+// If the parameter <duration> > 0, which means it expires after <duration>.
+//
+// The optional parameter <name> is used to bind a name to the cache, which means you can later
+// control the cache like changing the <duration> or clearing the cache with specified <name>.
+//
+// Note that, the cache feature is disabled if the model is operating on a transaction.
+func (d *BaseSalesRegionDao) Cache(duration time.Duration, name ...string) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Cache(duration, name...)}
+}
+
+// Data sets the operation data for the model.
+// The parameter <data> can be type of string/map/gmap/slice/struct/*struct, etc.
+// Eg:
+// Data("uid=10000")
+// Data("uid", 10000)
+// Data(g.Map{"uid": 10000, "name":"john"})
+// Data(g.Slice{g.Map{"uid": 10000, "name":"john"}, g.Map{"uid": 20000, "name":"smith"})
+func (d *BaseSalesRegionDao) Data(data ...interface{}) *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Data(data...)}
+}
+
+// All does "SELECT FROM ..." statement for the model.
+// It retrieves the records from table and returns the result as []*model.BaseSalesRegion.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *BaseSalesRegionDao) All(where ...interface{}) ([]*model.BaseSalesRegion, error) {
+	all, err := d.M.All(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.BaseSalesRegion
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// One retrieves one record from table and returns the result as *model.BaseSalesRegion.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *BaseSalesRegionDao) One(where ...interface{}) (*model.BaseSalesRegion, error) {
+	one, err := d.M.One(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.BaseSalesRegion
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindOne retrieves and returns a single Record by M.WherePri and M.One.
+// Also see M.WherePri and M.One.
+func (d *BaseSalesRegionDao) FindOne(where ...interface{}) (*model.BaseSalesRegion, error) {
+	one, err := d.M.FindOne(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.BaseSalesRegion
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindAll retrieves and returns Result by by M.WherePri and M.All.
+// Also see M.WherePri and M.All.
+func (d *BaseSalesRegionDao) FindAll(where ...interface{}) ([]*model.BaseSalesRegion, error) {
+	all, err := d.M.FindAll(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.BaseSalesRegion
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// Struct retrieves one record from table and converts it into given struct.
+// The parameter <pointer> should be type of *struct/**struct. If type **struct is given,
+// it can create the struct internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not nil.
+//
+// Eg:
+// user := new(User)
+// err  := dao.User.Where("id", 1).Struct(user)
+//
+// user := (*User)(nil)
+// err  := dao.User.Where("id", 1).Struct(&user)
+func (d *BaseSalesRegionDao) Struct(pointer interface{}, where ...interface{}) error {
+	return d.M.Struct(pointer, where...)
+}
+
+// Structs retrieves records from table and converts them into given struct slice.
+// The parameter <pointer> should be type of *[]struct/*[]*struct. It can create and fill the struct
+// slice internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not empty.
+//
+// Eg:
+// users := ([]User)(nil)
+// err   := dao.User.Structs(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Structs(&users)
+func (d *BaseSalesRegionDao) Structs(pointer interface{}, where ...interface{}) error {
+	return d.M.Structs(pointer, where...)
+}
+
+// Scan automatically calls Struct or Structs function according to the type of parameter <pointer>.
+// It calls function Struct if <pointer> is type of *struct/**struct.
+// It calls function Structs if <pointer> is type of *[]struct/*[]*struct.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved and given pointer is not empty or nil.
+//
+// Eg:
+// user  := new(User)
+// err   := dao.User.Where("id", 1).Scan(user)
+//
+// user  := (*User)(nil)
+// err   := dao.User.Where("id", 1).Scan(&user)
+//
+// users := ([]User)(nil)
+// err   := dao.User.Scan(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Scan(&users)
+func (d *BaseSalesRegionDao) Scan(pointer interface{}, where ...interface{}) error {
+	return d.M.Scan(pointer, where...)
+}
+
+// Chunk iterates the table with given size and callback function.
+func (d *BaseSalesRegionDao) Chunk(limit int, callback func(entities []*model.BaseSalesRegion, err error) bool) {
+	d.M.Chunk(limit, func(result gdb.Result, err error) bool {
+		var entities []*model.BaseSalesRegion
+		err = result.Structs(&entities)
+		if err == sql.ErrNoRows {
+			return false
+		}
+		return callback(entities, err)
+	})
+}
+
+// LockUpdate sets the lock for update for current operation.
+func (d *BaseSalesRegionDao) LockUpdate() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.LockUpdate()}
+}
+
+// LockShared sets the lock in share mode for current operation.
+func (d *BaseSalesRegionDao) LockShared() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.LockShared()}
+}
+
+// Unscoped enables/disables the soft deleting feature.
+func (d *BaseSalesRegionDao) Unscoped() *BaseSalesRegionDao {
+	return &BaseSalesRegionDao{M: d.M.Unscoped()}
+}

+ 427 - 0
opms_parent/app/dao/base/internal/base_sales_region_detail.go

@@ -0,0 +1,427 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"database/sql"
+	"time"
+
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+	"github.com/gogf/gf/frame/gmvc"
+
+	model "dashoo.cn/micro/app/model/base"
+)
+
+// BaseSalesRegionDetailDao is the manager for logic model data accessing
+// and custom defined data operations functions management.
+type BaseSalesRegionDetailDao struct {
+	gmvc.M
+	DB      gdb.DB
+	Table   string
+	Columns baseSalesRegionDetailColumns
+}
+
+// BaseSalesRegionDetailColumns defines and stores column names for table base_sales_region_detail.
+type baseSalesRegionDetailColumns struct {
+	Id           string // 主键
+	RegionId     string // 关联销售区域
+	ProvinceCode string // 行政区县(省级)
+	Remark       string // 备注
+	CreatedBy    string // 创建者
+	CreatedName  string // 创建人
+	CreatedTime  string // 创建时间
+	UpdatedBy    string // 更新者
+	UpdatedName  string // 更新人
+	UpdatedTime  string // 更新时间
+	DeletedTime  string // 删除时间
+}
+
+var (
+	// BaseSalesRegionDetail is globally public accessible object for table base_sales_region_detail operations.
+	BaseSalesRegionDetail = BaseSalesRegionDetailDao{
+		M:     g.DB("default").Model("base_sales_region_detail").Safe(),
+		DB:    g.DB("default"),
+		Table: "base_sales_region_detail",
+		Columns: baseSalesRegionDetailColumns{
+			Id:           "id",
+			RegionId:     "region_id",
+			ProvinceCode: "province_code",
+			Remark:       "remark",
+			CreatedBy:    "created_by",
+			CreatedName:  "created_name",
+			CreatedTime:  "created_time",
+			UpdatedBy:    "updated_by",
+			UpdatedName:  "updated_name",
+			UpdatedTime:  "updated_time",
+			DeletedTime:  "deleted_time",
+		},
+	}
+)
+
+func NewBaseSalesRegionDetailDao(tenant string) BaseSalesRegionDetailDao {
+	var dao BaseSalesRegionDetailDao
+	dao = BaseSalesRegionDetailDao{
+		M:     g.DB(tenant).Model("base_sales_region_detail").Safe(),
+		DB:    g.DB(tenant),
+		Table: "base_sales_region_detail",
+		Columns: baseSalesRegionDetailColumns{
+			Id:           "id",
+			RegionId:     "region_id",
+			ProvinceCode: "province_code",
+			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
+}
+
+// Ctx is a chaining function, which creates and returns a new DB that is a shallow copy
+// of current DB object and with given context in it.
+// Note that this returned DB object can be used only once, so do not assign it to
+// a global or package variable for long using.
+func (d *BaseSalesRegionDetailDao) Ctx(ctx context.Context) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Ctx(ctx)}
+}
+
+// As sets an alias name for current table.
+func (d *BaseSalesRegionDetailDao) As(as string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.As(as)}
+}
+
+// TX sets the transaction for current operation.
+func (d *BaseSalesRegionDetailDao) TX(tx *gdb.TX) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.TX(tx)}
+}
+
+// Master marks the following operation on master node.
+func (d *BaseSalesRegionDetailDao) Master() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Master()}
+}
+
+// Slave marks the following operation on slave node.
+// Note that it makes sense only if there's any slave node configured.
+func (d *BaseSalesRegionDetailDao) Slave() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Slave()}
+}
+
+// Args sets custom arguments for model operation.
+func (d *BaseSalesRegionDetailDao) Args(args ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Args(args...)}
+}
+
+// LeftJoin does "LEFT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").LeftJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDetailDao) LeftJoin(table ...string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.LeftJoin(table...)}
+}
+
+// RightJoin does "RIGHT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").RightJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").RightJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDetailDao) RightJoin(table ...string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.RightJoin(table...)}
+}
+
+// InnerJoin does "INNER JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").InnerJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").InnerJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *BaseSalesRegionDetailDao) InnerJoin(table ...string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.InnerJoin(table...)}
+}
+
+// Fields sets the operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *BaseSalesRegionDetailDao) Fields(fieldNamesOrMapStruct ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Fields(fieldNamesOrMapStruct...)}
+}
+
+// FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *BaseSalesRegionDetailDao) FieldsEx(fieldNamesOrMapStruct ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.FieldsEx(fieldNamesOrMapStruct...)}
+}
+
+// Option sets the extra operation option for the model.
+func (d *BaseSalesRegionDetailDao) Option(option int) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Option(option)}
+}
+
+// OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
+// the data and where attributes for empty values.
+func (d *BaseSalesRegionDetailDao) OmitEmpty() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.OmitEmpty()}
+}
+
+// Filter marks filtering the fields which does not exist in the fields of the operated table.
+func (d *BaseSalesRegionDetailDao) Filter() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Filter()}
+}
+
+// Where sets the condition statement for the model. The parameter <where> can be type of
+// string/map/gmap/slice/struct/*struct, etc. Note that, if it's called more than one times,
+// multiple conditions will be joined into where statement using "AND".
+// Eg:
+// Where("uid=10000")
+// Where("uid", 10000)
+// Where("money>? AND name like ?", 99999, "vip_%")
+// Where("uid", 1).Where("name", "john")
+// Where("status IN (?)", g.Slice{1,2,3})
+// Where("age IN(?,?)", 18, 50)
+// Where(User{ Id : 1, UserName : "john"})
+func (d *BaseSalesRegionDetailDao) Where(where interface{}, args ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Where(where, args...)}
+}
+
+// WherePri does the same logic as M.Where except that if the parameter <where>
+// is a single condition like int/string/float/slice, it treats the condition as the primary
+// key value. That is, if primary key is "id" and given <where> parameter as "123", the
+// WherePri function treats the condition as "id=123", but M.Where treats the condition
+// as string "123".
+func (d *BaseSalesRegionDetailDao) WherePri(where interface{}, args ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.WherePri(where, args...)}
+}
+
+// And adds "AND" condition to the where statement.
+func (d *BaseSalesRegionDetailDao) And(where interface{}, args ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.And(where, args...)}
+}
+
+// Or adds "OR" condition to the where statement.
+func (d *BaseSalesRegionDetailDao) Or(where interface{}, args ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Or(where, args...)}
+}
+
+// Group sets the "GROUP BY" statement for the model.
+func (d *BaseSalesRegionDetailDao) Group(groupBy string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Group(groupBy)}
+}
+
+// Order sets the "ORDER BY" statement for the model.
+func (d *BaseSalesRegionDetailDao) Order(orderBy ...string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Order(orderBy...)}
+}
+
+// Limit sets the "LIMIT" statement for the model.
+// The parameter <limit> can be either one or two number, if passed two number is passed,
+// it then sets "LIMIT limit[0],limit[1]" statement for the model, or else it sets "LIMIT limit[0]"
+// statement.
+func (d *BaseSalesRegionDetailDao) Limit(limit ...int) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Limit(limit...)}
+}
+
+// Offset sets the "OFFSET" statement for the model.
+// It only makes sense for some databases like SQLServer, PostgreSQL, etc.
+func (d *BaseSalesRegionDetailDao) Offset(offset int) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Offset(offset)}
+}
+
+// Page sets the paging number for the model.
+// The parameter <page> is started from 1 for paging.
+// Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
+func (d *BaseSalesRegionDetailDao) Page(page, limit int) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Page(page, limit)}
+}
+
+// Batch sets the batch operation number for the model.
+func (d *BaseSalesRegionDetailDao) Batch(batch int) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Batch(batch)}
+}
+
+// Cache sets the cache feature for the model. It caches the result of the sql, which means
+// if there's another same sql request, it just reads and returns the result from cache, it
+// but not committed and executed into the database.
+//
+// If the parameter <duration> < 0, which means it clear the cache with given <name>.
+// If the parameter <duration> = 0, which means it never expires.
+// If the parameter <duration> > 0, which means it expires after <duration>.
+//
+// The optional parameter <name> is used to bind a name to the cache, which means you can later
+// control the cache like changing the <duration> or clearing the cache with specified <name>.
+//
+// Note that, the cache feature is disabled if the model is operating on a transaction.
+func (d *BaseSalesRegionDetailDao) Cache(duration time.Duration, name ...string) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Cache(duration, name...)}
+}
+
+// Data sets the operation data for the model.
+// The parameter <data> can be type of string/map/gmap/slice/struct/*struct, etc.
+// Eg:
+// Data("uid=10000")
+// Data("uid", 10000)
+// Data(g.Map{"uid": 10000, "name":"john"})
+// Data(g.Slice{g.Map{"uid": 10000, "name":"john"}, g.Map{"uid": 20000, "name":"smith"})
+func (d *BaseSalesRegionDetailDao) Data(data ...interface{}) *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Data(data...)}
+}
+
+// All does "SELECT FROM ..." statement for the model.
+// It retrieves the records from table and returns the result as []*model.BaseSalesRegionDetail.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *BaseSalesRegionDetailDao) All(where ...interface{}) ([]*model.BaseSalesRegionDetail, error) {
+	all, err := d.M.All(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.BaseSalesRegionDetail
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// One retrieves one record from table and returns the result as *model.BaseSalesRegionDetail.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *BaseSalesRegionDetailDao) One(where ...interface{}) (*model.BaseSalesRegionDetail, error) {
+	one, err := d.M.One(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.BaseSalesRegionDetail
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindOne retrieves and returns a single Record by M.WherePri and M.One.
+// Also see M.WherePri and M.One.
+func (d *BaseSalesRegionDetailDao) FindOne(where ...interface{}) (*model.BaseSalesRegionDetail, error) {
+	one, err := d.M.FindOne(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.BaseSalesRegionDetail
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindAll retrieves and returns Result by by M.WherePri and M.All.
+// Also see M.WherePri and M.All.
+func (d *BaseSalesRegionDetailDao) FindAll(where ...interface{}) ([]*model.BaseSalesRegionDetail, error) {
+	all, err := d.M.FindAll(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.BaseSalesRegionDetail
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// Struct retrieves one record from table and converts it into given struct.
+// The parameter <pointer> should be type of *struct/**struct. If type **struct is given,
+// it can create the struct internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not nil.
+//
+// Eg:
+// user := new(User)
+// err  := dao.User.Where("id", 1).Struct(user)
+//
+// user := (*User)(nil)
+// err  := dao.User.Where("id", 1).Struct(&user)
+func (d *BaseSalesRegionDetailDao) Struct(pointer interface{}, where ...interface{}) error {
+	return d.M.Struct(pointer, where...)
+}
+
+// Structs retrieves records from table and converts them into given struct slice.
+// The parameter <pointer> should be type of *[]struct/*[]*struct. It can create and fill the struct
+// slice internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not empty.
+//
+// Eg:
+// users := ([]User)(nil)
+// err   := dao.User.Structs(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Structs(&users)
+func (d *BaseSalesRegionDetailDao) Structs(pointer interface{}, where ...interface{}) error {
+	return d.M.Structs(pointer, where...)
+}
+
+// Scan automatically calls Struct or Structs function according to the type of parameter <pointer>.
+// It calls function Struct if <pointer> is type of *struct/**struct.
+// It calls function Structs if <pointer> is type of *[]struct/*[]*struct.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved and given pointer is not empty or nil.
+//
+// Eg:
+// user  := new(User)
+// err   := dao.User.Where("id", 1).Scan(user)
+//
+// user  := (*User)(nil)
+// err   := dao.User.Where("id", 1).Scan(&user)
+//
+// users := ([]User)(nil)
+// err   := dao.User.Scan(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Scan(&users)
+func (d *BaseSalesRegionDetailDao) Scan(pointer interface{}, where ...interface{}) error {
+	return d.M.Scan(pointer, where...)
+}
+
+// Chunk iterates the table with given size and callback function.
+func (d *BaseSalesRegionDetailDao) Chunk(limit int, callback func(entities []*model.BaseSalesRegionDetail, err error) bool) {
+	d.M.Chunk(limit, func(result gdb.Result, err error) bool {
+		var entities []*model.BaseSalesRegionDetail
+		err = result.Structs(&entities)
+		if err == sql.ErrNoRows {
+			return false
+		}
+		return callback(entities, err)
+	})
+}
+
+// LockUpdate sets the lock for update for current operation.
+func (d *BaseSalesRegionDetailDao) LockUpdate() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.LockUpdate()}
+}
+
+// LockShared sets the lock in share mode for current operation.
+func (d *BaseSalesRegionDetailDao) LockShared() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.LockShared()}
+}
+
+// Unscoped enables/disables the soft deleting feature.
+func (d *BaseSalesRegionDetailDao) Unscoped() *BaseSalesRegionDetailDao {
+	return &BaseSalesRegionDetailDao{M: d.M.Unscoped()}
+}

+ 36 - 0
opms_parent/app/dao/cust/cust_customer_dynamics.go

@@ -0,0 +1,36 @@
+// ============================================================================
+// This is auto-generated by gf cli tool only once. Fill this file as you wish.
+// ============================================================================
+
+package cust
+
+import (
+	"dashoo.cn/micro/app/dao/cust/internal"
+)
+
+// custCustomerDynamicsDao is the manager for logic model data accessing
+// and custom defined data operations functions management. You can define
+// methods on it to extend its functionality as you wish.
+type custCustomerDynamicsDao struct {
+	internal.CustCustomerDynamicsDao
+}
+
+var (
+	// CustCustomerDynamics is globally public accessible object for table cust_customer_dynamics operations.
+	CustCustomerDynamics = custCustomerDynamicsDao{
+		internal.CustCustomerDynamics,
+	}
+)
+
+type CustCustomerDynamicsDao struct {
+	internal.CustCustomerDynamicsDao
+}
+
+func NewCustCustomerDynamicsDao(tenant string) *CustCustomerDynamicsDao {
+	dao := internal.NewCustCustomerDynamicsDao(tenant)
+	return &CustCustomerDynamicsDao{
+		dao,
+	}
+}
+
+// Fill with you ideas below.

+ 3 - 0
opms_parent/app/dao/cust/internal/cust_customer.go

@@ -31,6 +31,9 @@ type custCustomerColumns struct {
 	CustCode     string // 客户编号
 	CustName     string // 客户名称
 	AbbrName     string // 助记名
+	CustIndustry string //客户行业
+	CustLevel    string // 客户级别(10 重点客户 20 普通客户 30非优客户)
+	CustDistCode int    // 所在省份ID
 	CustLocation string // 所在地区
 	CustAddress  string // 详细地址
 	CustStatus   string // 客户状态(10正常20)

+ 436 - 0
opms_parent/app/dao/cust/internal/cust_customer_dynamics.go

@@ -0,0 +1,436 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"database/sql"
+	"time"
+
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+	"github.com/gogf/gf/frame/gmvc"
+
+	model "dashoo.cn/micro/app/model/cust"
+)
+
+// CustCustomerDynamicsDao is the manager for logic model data accessing
+// and custom defined data operations functions management.
+type CustCustomerDynamicsDao struct {
+	gmvc.M
+	DB      gdb.DB
+	Table   string
+	Columns custCustomerDynamicsColumns
+}
+
+// CustCustomerDynamicsColumns defines and stores column names for table cust_customer_dynamics.
+type custCustomerDynamicsColumns struct {
+	Id          string // 主键
+	OpnPeopleId string // 操作人ID
+	OpnPeople   string // 操作人
+	OpnDate     string // 操作日期
+	OpnType     string // 操作类型
+	OpnContent  string // 操作内容
+	Remark      string // 备注
+	CreatedBy   string // 创建者
+	CreatedName string // 创建人
+	CreatedTime string // 创建时间
+	UpdatedBy   string // 更新者
+	UpdatedName string // 更新人
+	UpdatedTime string // 更新时间
+	DeletedTime string // 删除时间
+}
+
+var (
+	// CustCustomerDynamics is globally public accessible object for table cust_customer_dynamics operations.
+	CustCustomerDynamics = CustCustomerDynamicsDao{
+		M:     g.DB("default").Model("cust_customer_dynamics").Safe(),
+		DB:    g.DB("default"),
+		Table: "cust_customer_dynamics",
+		Columns: custCustomerDynamicsColumns{
+			Id:          "id",
+			OpnPeopleId: "opn_people_id",
+			OpnPeople:   "opn_people",
+			OpnDate:     "opn_date",
+			OpnType:     "opn_type",
+			OpnContent:  "opn_content",
+			Remark:      "remark",
+			CreatedBy:   "created_by",
+			CreatedName: "created_name",
+			CreatedTime: "created_time",
+			UpdatedBy:   "updated_by",
+			UpdatedName: "updated_name",
+			UpdatedTime: "updated_time",
+			DeletedTime: "deleted_time",
+		},
+	}
+)
+
+func NewCustCustomerDynamicsDao(tenant string) CustCustomerDynamicsDao {
+	var dao CustCustomerDynamicsDao
+	dao = CustCustomerDynamicsDao{
+		M:     g.DB(tenant).Model("cust_customer_dynamics").Safe(),
+		DB:    g.DB(tenant),
+		Table: "cust_customer_dynamics",
+		Columns: custCustomerDynamicsColumns{
+			Id:          "id",
+			OpnPeopleId: "opn_people_id",
+			OpnPeople:   "opn_people",
+			OpnDate:     "opn_date",
+			OpnType:     "opn_type",
+			OpnContent:  "opn_content",
+			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
+}
+
+// Ctx is a chaining function, which creates and returns a new DB that is a shallow copy
+// of current DB object and with given context in it.
+// Note that this returned DB object can be used only once, so do not assign it to
+// a global or package variable for long using.
+func (d *CustCustomerDynamicsDao) Ctx(ctx context.Context) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Ctx(ctx)}
+}
+
+// As sets an alias name for current table.
+func (d *CustCustomerDynamicsDao) As(as string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.As(as)}
+}
+
+// TX sets the transaction for current operation.
+func (d *CustCustomerDynamicsDao) TX(tx *gdb.TX) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.TX(tx)}
+}
+
+// Master marks the following operation on master node.
+func (d *CustCustomerDynamicsDao) Master() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Master()}
+}
+
+// Slave marks the following operation on slave node.
+// Note that it makes sense only if there's any slave node configured.
+func (d *CustCustomerDynamicsDao) Slave() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Slave()}
+}
+
+// Args sets custom arguments for model operation.
+func (d *CustCustomerDynamicsDao) Args(args ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Args(args...)}
+}
+
+// LeftJoin does "LEFT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").LeftJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *CustCustomerDynamicsDao) LeftJoin(table ...string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.LeftJoin(table...)}
+}
+
+// RightJoin does "RIGHT JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").RightJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").RightJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *CustCustomerDynamicsDao) RightJoin(table ...string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.RightJoin(table...)}
+}
+
+// InnerJoin does "INNER JOIN ... ON ..." statement on the model.
+// The parameter <table> can be joined table and its joined condition,
+// and also with its alias name, like:
+// Table("user").InnerJoin("user_detail", "user_detail.uid=user.uid")
+// Table("user", "u").InnerJoin("user_detail", "ud", "ud.uid=u.uid")
+func (d *CustCustomerDynamicsDao) InnerJoin(table ...string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.InnerJoin(table...)}
+}
+
+// Fields sets the operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *CustCustomerDynamicsDao) Fields(fieldNamesOrMapStruct ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Fields(fieldNamesOrMapStruct...)}
+}
+
+// FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','.
+// The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
+func (d *CustCustomerDynamicsDao) FieldsEx(fieldNamesOrMapStruct ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.FieldsEx(fieldNamesOrMapStruct...)}
+}
+
+// Option sets the extra operation option for the model.
+func (d *CustCustomerDynamicsDao) Option(option int) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Option(option)}
+}
+
+// OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
+// the data and where attributes for empty values.
+func (d *CustCustomerDynamicsDao) OmitEmpty() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.OmitEmpty()}
+}
+
+// Filter marks filtering the fields which does not exist in the fields of the operated table.
+func (d *CustCustomerDynamicsDao) Filter() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Filter()}
+}
+
+// Where sets the condition statement for the model. The parameter <where> can be type of
+// string/map/gmap/slice/struct/*struct, etc. Note that, if it's called more than one times,
+// multiple conditions will be joined into where statement using "AND".
+// Eg:
+// Where("uid=10000")
+// Where("uid", 10000)
+// Where("money>? AND name like ?", 99999, "vip_%")
+// Where("uid", 1).Where("name", "john")
+// Where("status IN (?)", g.Slice{1,2,3})
+// Where("age IN(?,?)", 18, 50)
+// Where(User{ Id : 1, UserName : "john"})
+func (d *CustCustomerDynamicsDao) Where(where interface{}, args ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Where(where, args...)}
+}
+
+// WherePri does the same logic as M.Where except that if the parameter <where>
+// is a single condition like int/string/float/slice, it treats the condition as the primary
+// key value. That is, if primary key is "id" and given <where> parameter as "123", the
+// WherePri function treats the condition as "id=123", but M.Where treats the condition
+// as string "123".
+func (d *CustCustomerDynamicsDao) WherePri(where interface{}, args ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.WherePri(where, args...)}
+}
+
+// And adds "AND" condition to the where statement.
+func (d *CustCustomerDynamicsDao) And(where interface{}, args ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.And(where, args...)}
+}
+
+// Or adds "OR" condition to the where statement.
+func (d *CustCustomerDynamicsDao) Or(where interface{}, args ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Or(where, args...)}
+}
+
+// Group sets the "GROUP BY" statement for the model.
+func (d *CustCustomerDynamicsDao) Group(groupBy string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Group(groupBy)}
+}
+
+// Order sets the "ORDER BY" statement for the model.
+func (d *CustCustomerDynamicsDao) Order(orderBy ...string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Order(orderBy...)}
+}
+
+// Limit sets the "LIMIT" statement for the model.
+// The parameter <limit> can be either one or two number, if passed two number is passed,
+// it then sets "LIMIT limit[0],limit[1]" statement for the model, or else it sets "LIMIT limit[0]"
+// statement.
+func (d *CustCustomerDynamicsDao) Limit(limit ...int) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Limit(limit...)}
+}
+
+// Offset sets the "OFFSET" statement for the model.
+// It only makes sense for some databases like SQLServer, PostgreSQL, etc.
+func (d *CustCustomerDynamicsDao) Offset(offset int) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Offset(offset)}
+}
+
+// Page sets the paging number for the model.
+// The parameter <page> is started from 1 for paging.
+// Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
+func (d *CustCustomerDynamicsDao) Page(page, limit int) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Page(page, limit)}
+}
+
+// Batch sets the batch operation number for the model.
+func (d *CustCustomerDynamicsDao) Batch(batch int) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Batch(batch)}
+}
+
+// Cache sets the cache feature for the model. It caches the result of the sql, which means
+// if there's another same sql request, it just reads and returns the result from cache, it
+// but not committed and executed into the database.
+//
+// If the parameter <duration> < 0, which means it clear the cache with given <name>.
+// If the parameter <duration> = 0, which means it never expires.
+// If the parameter <duration> > 0, which means it expires after <duration>.
+//
+// The optional parameter <name> is used to bind a name to the cache, which means you can later
+// control the cache like changing the <duration> or clearing the cache with specified <name>.
+//
+// Note that, the cache feature is disabled if the model is operating on a transaction.
+func (d *CustCustomerDynamicsDao) Cache(duration time.Duration, name ...string) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Cache(duration, name...)}
+}
+
+// Data sets the operation data for the model.
+// The parameter <data> can be type of string/map/gmap/slice/struct/*struct, etc.
+// Eg:
+// Data("uid=10000")
+// Data("uid", 10000)
+// Data(g.Map{"uid": 10000, "name":"john"})
+// Data(g.Slice{g.Map{"uid": 10000, "name":"john"}, g.Map{"uid": 20000, "name":"smith"})
+func (d *CustCustomerDynamicsDao) Data(data ...interface{}) *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Data(data...)}
+}
+
+// All does "SELECT FROM ..." statement for the model.
+// It retrieves the records from table and returns the result as []*model.CustCustomerDynamics.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *CustCustomerDynamicsDao) All(where ...interface{}) ([]*model.CustCustomerDynamics, error) {
+	all, err := d.M.All(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.CustCustomerDynamics
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// One retrieves one record from table and returns the result as *model.CustCustomerDynamics.
+// It returns nil if there's no record retrieved with the given conditions from table.
+//
+// The optional parameter <where> is the same as the parameter of M.Where function,
+// see M.Where.
+func (d *CustCustomerDynamicsDao) One(where ...interface{}) (*model.CustCustomerDynamics, error) {
+	one, err := d.M.One(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.CustCustomerDynamics
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindOne retrieves and returns a single Record by M.WherePri and M.One.
+// Also see M.WherePri and M.One.
+func (d *CustCustomerDynamicsDao) FindOne(where ...interface{}) (*model.CustCustomerDynamics, error) {
+	one, err := d.M.FindOne(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entity *model.CustCustomerDynamics
+	if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entity, nil
+}
+
+// FindAll retrieves and returns Result by by M.WherePri and M.All.
+// Also see M.WherePri and M.All.
+func (d *CustCustomerDynamicsDao) FindAll(where ...interface{}) ([]*model.CustCustomerDynamics, error) {
+	all, err := d.M.FindAll(where...)
+	if err != nil {
+		return nil, err
+	}
+	var entities []*model.CustCustomerDynamics
+	if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
+		return nil, err
+	}
+	return entities, nil
+}
+
+// Struct retrieves one record from table and converts it into given struct.
+// The parameter <pointer> should be type of *struct/**struct. If type **struct is given,
+// it can create the struct internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not nil.
+//
+// Eg:
+// user := new(User)
+// err  := dao.User.Where("id", 1).Struct(user)
+//
+// user := (*User)(nil)
+// err  := dao.User.Where("id", 1).Struct(&user)
+func (d *CustCustomerDynamicsDao) Struct(pointer interface{}, where ...interface{}) error {
+	return d.M.Struct(pointer, where...)
+}
+
+// Structs retrieves records from table and converts them into given struct slice.
+// The parameter <pointer> should be type of *[]struct/*[]*struct. It can create and fill the struct
+// slice internally during converting.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
+// from table and <pointer> is not empty.
+//
+// Eg:
+// users := ([]User)(nil)
+// err   := dao.User.Structs(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Structs(&users)
+func (d *CustCustomerDynamicsDao) Structs(pointer interface{}, where ...interface{}) error {
+	return d.M.Structs(pointer, where...)
+}
+
+// Scan automatically calls Struct or Structs function according to the type of parameter <pointer>.
+// It calls function Struct if <pointer> is type of *struct/**struct.
+// It calls function Structs if <pointer> is type of *[]struct/*[]*struct.
+//
+// The optional parameter <where> is the same as the parameter of Model.Where function,
+// see Model.Where.
+//
+// Note that it returns sql.ErrNoRows if there's no record retrieved and given pointer is not empty or nil.
+//
+// Eg:
+// user  := new(User)
+// err   := dao.User.Where("id", 1).Scan(user)
+//
+// user  := (*User)(nil)
+// err   := dao.User.Where("id", 1).Scan(&user)
+//
+// users := ([]User)(nil)
+// err   := dao.User.Scan(&users)
+//
+// users := ([]*User)(nil)
+// err   := dao.User.Scan(&users)
+func (d *CustCustomerDynamicsDao) Scan(pointer interface{}, where ...interface{}) error {
+	return d.M.Scan(pointer, where...)
+}
+
+// Chunk iterates the table with given size and callback function.
+func (d *CustCustomerDynamicsDao) Chunk(limit int, callback func(entities []*model.CustCustomerDynamics, err error) bool) {
+	d.M.Chunk(limit, func(result gdb.Result, err error) bool {
+		var entities []*model.CustCustomerDynamics
+		err = result.Structs(&entities)
+		if err == sql.ErrNoRows {
+			return false
+		}
+		return callback(entities, err)
+	})
+}
+
+// LockUpdate sets the lock for update for current operation.
+func (d *CustCustomerDynamicsDao) LockUpdate() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.LockUpdate()}
+}
+
+// LockShared sets the lock in share mode for current operation.
+func (d *CustCustomerDynamicsDao) LockShared() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.LockShared()}
+}
+
+// Unscoped enables/disables the soft deleting feature.
+func (d *CustCustomerDynamicsDao) Unscoped() *CustCustomerDynamicsDao {
+	return &CustCustomerDynamicsDao{M: d.M.Unscoped()}
+}

+ 1 - 0
opms_parent/app/handler/base/region.go

@@ -0,0 +1 @@
+package base

+ 14 - 0
opms_parent/app/model/base/base_sales_region.go

@@ -0,0 +1,14 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. Fill this file as you wish.
+// ==========================================================================
+
+package model
+
+import (
+	"dashoo.cn/micro/app/model/internal"
+)
+
+// BaseSalesRegion is the golang structure for table base_sales_region.
+type BaseSalesRegion internal.BaseSalesRegion
+
+// Fill with you ideas below.

+ 14 - 0
opms_parent/app/model/base/base_sales_region_detail.go

@@ -0,0 +1,14 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. Fill this file as you wish.
+// ==========================================================================
+
+package model
+
+import (
+	"dashoo.cn/micro/app/model/internal"
+)
+
+// BaseSalesRegionDetail is the golang structure for table base_sales_region_detail.
+type BaseSalesRegionDetail internal.BaseSalesRegionDetail
+
+// Fill with you ideas below.

+ 26 - 0
opms_parent/app/model/base/internal/base_sales_region.go

@@ -0,0 +1,26 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"github.com/gogf/gf/os/gtime"
+)
+
+// BaseSalesRegion is the golang structure for table base_sales_region.
+type BaseSalesRegion struct {
+	Id          int         `orm:"id,primary"   json:"id"`          // 主键
+	RegionCode  string      `orm:"region_code"  json:"regionCode"`  // 区域编码
+	RegionDesc  string      `orm:"region_desc"  json:"regionDesc"`  // 区域描述
+	UserId      int         `orm:"user_id"      json:"userId"`      // 区域负责人id
+	UserName    string      `orm:"user_name"    json:"userName"`    // 区域负责人
+	Remark      string      `orm:"remark"       json:"remark"`      // 备注
+	CreatedBy   int         `orm:"created_by"   json:"createdBy"`   // 创建者
+	CreatedName string      `orm:"created_name" json:"createdName"` // 创建人
+	CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
+	UpdatedBy   int         `orm:"updated_by"   json:"updatedBy"`   // 更新者
+	UpdatedName string      `orm:"updated_name" json:"updatedName"` // 更新人
+	UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
+	DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
+}

+ 24 - 0
opms_parent/app/model/base/internal/base_sales_region_detail.go

@@ -0,0 +1,24 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"github.com/gogf/gf/os/gtime"
+)
+
+// BaseSalesRegionDetail is the golang structure for table base_sales_region_detail.
+type BaseSalesRegionDetail struct {
+	Id           int         `orm:"id,primary"    json:"id"`           // 主键
+	RegionId     int         `orm:"region_id"     json:"regionId"`     // 关联销售区域
+	ProvinceCode int         `orm:"province_code" json:"provinceCode"` // 行政区县(省级)
+	Remark       string      `orm:"remark"        json:"remark"`       // 备注
+	CreatedBy    int         `orm:"created_by"    json:"createdBy"`    // 创建者
+	CreatedName  string      `orm:"created_name"  json:"createdName"`  // 创建人
+	CreatedTime  *gtime.Time `orm:"created_time"  json:"createdTime"`  // 创建时间
+	UpdatedBy    int         `orm:"updated_by"    json:"updatedBy"`    // 更新者
+	UpdatedName  string      `orm:"updated_name"  json:"updatedName"`  // 更新人
+	UpdatedTime  *gtime.Time `orm:"updated_time"  json:"updatedTime"`  // 更新时间
+	DeletedTime  *gtime.Time `orm:"deleted_time"  json:"deletedTime"`  // 删除时间
+}

+ 14 - 0
opms_parent/app/model/cust/cust_customer_dynamics.go

@@ -0,0 +1,14 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. Fill this file as you wish.
+// ==========================================================================
+
+package model
+
+import (
+	"dashoo.cn/micro/app/model/internal"
+)
+
+// CustCustomerDynamics is the golang structure for table cust_customer_dynamics.
+type CustCustomerDynamics internal.CustCustomerDynamics
+
+// Fill with you ideas below.

+ 27 - 0
opms_parent/app/model/cust/internal/cust_customer_dynamics.go

@@ -0,0 +1,27 @@
+// ==========================================================================
+// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
+// ==========================================================================
+
+package internal
+
+import (
+	"github.com/gogf/gf/os/gtime"
+)
+
+// CustCustomerDynamics is the golang structure for table cust_customer_dynamics.
+type CustCustomerDynamics struct {
+	Id          int         `orm:"id,primary"    json:"id"`          // 主键
+	OpnPeopleId int         `orm:"opn_people_id" json:"opnPeopleId"` // 操作人ID
+	OpnPeople   string      `orm:"opn_people"    json:"opnPeople"`   // 操作人
+	OpnDate     *gtime.Time `orm:"opn_date"      json:"opnDate"`     // 操作日期
+	OpnType     string      `orm:"opn_type"      json:"opnType"`     // 操作类型
+	OpnContent  string      `orm:"opn_content"   json:"opnContent"`  // 操作内容
+	Remark      string      `orm:"remark"        json:"remark"`      // 备注
+	CreatedBy   int         `orm:"created_by"    json:"createdBy"`   // 创建者
+	CreatedName string      `orm:"created_name"  json:"createdName"` // 创建人
+	CreatedTime *gtime.Time `orm:"created_time"  json:"createdTime"` // 创建时间
+	UpdatedBy   int         `orm:"updated_by"    json:"updatedBy"`   // 更新者
+	UpdatedName string      `orm:"updated_name"  json:"updatedName"` // 更新人
+	UpdatedTime *gtime.Time `orm:"updated_time"  json:"updatedTime"` // 更新时间
+	DeletedTime *gtime.Time `orm:"deleted_time"  json:"deletedTime"` // 删除时间
+}

+ 0 - 59
opms_parent/app/service/base/base_district.go

@@ -1,60 +1 @@
 package base
-
-import (
-	"context"
-
-	"github.com/gogf/gf/errors/gerror"
-	"github.com/gogf/gf/frame/g"
-
-	"dashoo.cn/micro/app/dao/base"
-	model "dashoo.cn/micro/app/model/base"
-	"dashoo.cn/micro/app/service"
-)
-
-type districtService struct {
-	*service.ContextService
-
-	Dao *base.BaseDistrictDao
-}
-
-func NewDistrictService(ctx context.Context) (svc *districtService, err error) {
-	svc = new(districtService)
-	if svc.ContextService, err = svc.Init(ctx); err != nil {
-		return nil, err
-	}
-	svc.Dao = base.NewBaseDistrictDao(svc.Tenant)
-	return svc, nil
-}
-
-//区域省市区 树形结构
-func (d *districtService) ListToTree(pid int) []*model.T {
-	var distributorList []model.BaseDistrict
-	g.Log().Info("ID", pid)
-	d.Dao.M.Where(base.BaseDistrict.Columns.ParentId, pid).Scan(&distributorList)
-	treeList := []*model.T{}
-	for _, v := range distributorList {
-		if v.ParentId == pid {
-			child := d.ListToTree(v.Id)
-			node := &model.T{
-				Id:       v.Id,
-				ParentId: v.ParentId,
-				DistName: v.DistName,
-			}
-			node.Children = child
-			treeList = append(treeList, node)
-		}
-	}
-	g.Log().Info("xc11", treeList)
-	return treeList
-}
-func (d *districtService) GetProvinceInfo() (list []*model.Province) {
-
-	Model := d.Dao.M
-	err := Model.Where(base.BaseDistrict.Columns.ParentId, 0).Scan(&list)
-	if err != nil {
-		g.Log().Error(err)
-		err = gerror.New("获取数据失败")
-		return
-	}
-	return
-}

+ 1 - 0
opms_parent/app/service/base/base_sales_region.go

@@ -0,0 +1 @@
+package base

+ 83 - 0
opms_parent/app/service/base/base_sales_region_detail.go

@@ -0,0 +1,83 @@
+package base
+
+import (
+	"context"
+
+	"github.com/gogf/gf/errors/gerror"
+	"github.com/gogf/gf/frame/g"
+	"github.com/gogf/gf/util/gconv"
+
+	"dashoo.cn/micro/app/dao/base"
+	model "dashoo.cn/micro/app/model/base"
+	"dashoo.cn/micro/app/service"
+)
+
+type salesRegionService struct {
+	*service.ContextService
+	Dao    *base.BaseSalesRegionDao
+	Detail *base.BaseSalesRegionDetailDao
+}
+
+func NewSalesRegionService(ctx context.Context) (svc *salesRegionService, err error) {
+	svc = new(salesRegionService)
+	if svc.ContextService, err = svc.Init(ctx); err != nil {
+		return nil, err
+	}
+	svc.Dao = base.NewBaseSalesRegionDao(svc.Tenant)
+	svc.Detail = base.NewBaseSalesRegionDetailDao(svc.Tenant)
+
+	return svc, nil
+}
+func (p *salesRegionService) GetList(req *model.RegionSeq) (total int, RegionList []*model.BaseSalesRegion, err error) {
+
+	regionModel := p.Dao.M
+	//if req.KeyWords != "" {
+	//	regionModel = regionModel.Where("prod_code", req.KeyWords)
+	//
+	//}
+	total, err = regionModel.Count()
+	if err != nil {
+		g.Log().Error(err)
+		err = gerror.New("获取总行数失败")
+		return
+	}
+	if req.PageNum == 0 {
+		req.PageNum = 1
+	}
+
+	err = regionModel.Page(req.PageNum, req.PageSize).Order("id asc").Scan(&RegionList)
+	return
+}
+
+//创建区域
+func (p *salesRegionService) Create(req *model.AddBaseRegionReq) (err error) {
+	Model := p.Detail.M
+	detailData := new(model.BaseSalesRegionDetail)
+
+	if err = gconv.Struct(req, detailData); err != nil {
+		return
+	}
+	service.SetCreatedInfo(detailData, p.GetCxtUserId(), p.GetCxtUserName())
+
+	detailData.RegionId = req.Id
+	detailData.ProvinceCode = req.RegionCode
+	service.SetCreatedInfo(detailData, p.GetCxtUserId(), p.GetCxtUserName())
+	_, err = Model.Insert(detailData)
+	if err != nil {
+		return err
+	}
+	return nil
+
+}
+
+//获取区域列表
+func (p *salesRegionService) GetRegion() (RegionList []*model.RegionRep) {
+	regionModel := p.Dao.M
+	err := regionModel.Order("id asc").Scan(&RegionList)
+	if err != nil {
+		g.Log().Error(err)
+		err = gerror.New("获取数据失败")
+		return
+	}
+	return
+}

+ 1 - 0
opms_parent/app/service/cust/customer_dynamics.go

@@ -0,0 +1 @@
+package cust