|
|
@@ -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)
|