public bool Update(ConsumptionRecrodEditDto model) { if (model == null) { Exception("Update.model", "参数不能为空"); } return(_consumptionRecrodDal.Update(model) > 0); }
public int Update(ConsumptionRecrodEditDto model) { return(Connection(connection => { var sql = "update ConsumptionRecrod set CustomerInfoId=@CustomerInfoId,AddTime=@AddTime,Amount=@Amount,Remark=@Remark where Id=@Id"; return connection.Execute(sql, model); })); }
public ResponseResult <bool> Edit([FromBody] ConsumptionRecrodEditDto model) { return(_consumptionRecrodService.Update(model).Success()); }