|
@@ -277,7 +277,7 @@ func (c *CustomerService) MoveToPubic(ids []int64) error {
|
|
|
//分配客户
|
|
//分配客户
|
|
|
func (c *CustomerService) DistriCustomer(req *model.DistriCustomer) error {
|
|
func (c *CustomerService) DistriCustomer(req *model.DistriCustomer) error {
|
|
|
custModel := c.Dao
|
|
custModel := c.Dao
|
|
|
- rep, err := custModel.Where(cust.CustCustomer.Columns.Id+" in (?) ", req.Ids).Where(cust.CustCustomer.Columns.IsPublic, isPublic).All()
|
|
|
|
|
|
|
+ rep, err := custModel.Where(cust.CustCustomer.Columns.Id+" in (?) ", req.Ids).All()
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
err = myerrors.New("DistriCustomer Sql执行异常", err)
|
|
err = myerrors.New("DistriCustomer Sql执行异常", err)
|
|
|
return err
|
|
return err
|
|
@@ -286,7 +286,6 @@ func (c *CustomerService) DistriCustomer(req *model.DistriCustomer) error {
|
|
|
for _, v := range rep {
|
|
for _, v := range rep {
|
|
|
custMap[v.Id] = v.SalesName
|
|
custMap[v.Id] = v.SalesName
|
|
|
}
|
|
}
|
|
|
- g.Log().Info("fadfadsfaf", custMap)
|
|
|
|
|
for _, v := range req.Ids {
|
|
for _, v := range req.Ids {
|
|
|
g.Log().Info("req.Ids", v)
|
|
g.Log().Info("req.Ids", v)
|
|
|
if custMap[gconv.Int(v)] != "" {
|
|
if custMap[gconv.Int(v)] != "" {
|