wangxingcheng 3 роки тому
батько
коміт
c8df8889c1
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      opms_parent/app/service/cust/cust_customer.go

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

@@ -160,7 +160,7 @@ func (c *CustomerService) DeleteById(id int) error {
 
 //修改客户
 func (c *CustomerService) UpdateById(req *model.UpdateCustomer) (err error) {
-	db := c.Dao.M
+	db := c.Dao
 	count, err := db.Where(c.Dao.Columns.Id, req.Id).Count()
 	if err != nil {
 		err = myerrors.New(" UpdateById Sql执行异常", err)