/// <summary> /// 插入JD账单数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool Insert(JDBillModel model) { model.QrCode = string.IsNullOrWhiteSpace(model.QrCode) ? "" : model.QrCode; model.Cost = string.IsNullOrWhiteSpace(model.Cost) ? "" : model.Cost; model.CreateTime = DateTime.Now; return(dal.Insert <JDBillModel>(model)); }
public bool Delete(JDBillModel model) { return(dal.DeleteByKey(model.LogNo)); }
public bool Update(JDBillModel model) { return(dal.Update <JDBillModel>(model, model.LogNo)); }
/// <summary> /// 插入JD账单归档数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool Insert(JDBillModel model) { return(dal.Insert <JDBillModel>(model)); }