wangxingcheng 3 gadi atpakaļ
vecāks
revīzija
d2f5349314
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      opms_parent/app/service/cust/cust_customer.go

+ 1 - 2
opms_parent/app/service/cust/cust_customer.go

@@ -277,7 +277,7 @@ func (c *CustomerService) MoveToPubic(ids []int64) error {
 //分配客户
 func (c *CustomerService) DistriCustomer(req *model.DistriCustomer) error {
 	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 {
 		err = myerrors.New("DistriCustomer Sql执行异常", err)
 		return err
@@ -286,7 +286,6 @@ func (c *CustomerService) DistriCustomer(req *model.DistriCustomer) error {
 	for _, v := range rep {
 		custMap[v.Id] = v.SalesName
 	}
-	g.Log().Info("fadfadsfaf", custMap)
 	for _, v := range req.Ids {
 		g.Log().Info("req.Ids", v)
 		if custMap[gconv.Int(v)] != "" {