public int Update(CustomerInfoEditDto model) { return(Connection(connection => { var sql = "update CustomerInfo set Name=@Name,Mobile=@Mobile,QQ=@QQ,AuthAddress=@AuthAddress,PurchaseDiscount=@PurchaseDiscount,FirstPayment=@FirstPayment,ShipmentPayment=@ShipmentPayment,ContractManager=@ContractManager,JoinTime=@JoinTime,Remark=@Remark,GroupId=@GroupId,UserId=@UserId where Id=@Id"; return connection.Execute(sql, model); })); }
public bool Update(CustomerInfoEditDto model) { if (model == null) { Exception("Update.model", "参数不能为空"); } return(_customerInfoDal.Update(model) > 0); }
public ResponseResult <bool> Edit([FromBody] CustomerInfoEditDto model) { return(_customerInfoService.Update(model).Success()); }