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)