public OrderSharedPushMessageConfig GetOrderSharedPushMessageConfig() { try { OrderSharedPushMessageConfig model = DalShareOrderConfig.GetOrderSharedPushMessageConfig(); if (model != null) { if (!string.IsNullOrWhiteSpace(model.AndroidCommunicationValue)) { model.AndriodModel = JsonConvert.DeserializeObject <AndriodModel>(model.AndroidCommunicationValue); } if (!string.IsNullOrWhiteSpace(model.IOSCommunicationValue)) { model.IOSModel = JsonConvert.DeserializeObject <IOSModel>(model.IOSCommunicationValue); } } return(model); } catch (Exception ex) { Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig"); throw ex; } }
public OrderSharedPushMessageConfig GetOrderSharedPushMessageConfig(int id) { try { return(DalShareOrderConfig.GetOrderSharedPushMessageConfig(id)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig"); throw ex; } }
//------推送消息配置 public List <OrderSharedPushMessageConfig> GetOrderSharedPushMessageConfig(OrderSharedPushMessageConfig model, int pageSize, int pageIndex, out int recordCount) { try { return(DalShareOrderConfig.GetOrderSharedPushMessageConfig(model, pageSize, pageIndex, out recordCount)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "GetOrderSharedPushMessageConfig"); throw ex; } }
public bool DeleteShareOrderConfig(int id) { try { return(DalShareOrderConfig.DeleteShareOrderConfig(id)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "DeleteShareOrderConfig"); throw ex; } }
public bool InsertShareOrderConfig(ShareOrderConfig model, ref int newId) { try { return(DalShareOrderConfig.InsertShareOrderConfig(model, ref newId)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "InsertShareOrderConfig"); throw ex; } }
public bool UpdateShareOrderConfig(ShareOrderConfig model) { try { return(DalShareOrderConfig.UpdateShareOrderConfig(model)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "UpdateShareOrderConfig"); throw ex; } }
public ShareOrderConfig GetShareOrderConfigById(int id) { try { return(DalShareOrderConfig.GetShareOrderConfigById(id)); } catch (Exception ex) { Logger.Log(Level.Error, ex, "GetShareOrderConfig"); throw ex; } }