/// <summary>
 /// 添加店铺信息信息
 /// </summary>
 /// <param name="inputDtos">要添加的店铺信息DTO信息</param>
 /// <returns>业务操作结果</returns>
 public OperationResult AddSystemSettings(params SystemSettingInputDto[] inputDtos)
 {
     return(SystemSettingRepository.Insert(inputDtos,
                                           dto =>
     {
         if (SystemSettingRepository.CheckExists(ss => ss.Key == dto.Key))
         {
             throw new Exception("设置项目:{0}已经存在,不能添加同名设置".FormatWith(dto.Key));
         }
     },
                                           (dto, entity) =>
     {
         return entity;
     }));
 }
 /// <summary>
 /// 检查店信息是否存在
 /// </summary>
 /// <param name="predicate">检查谓语表达式</param>
 /// <param name="id">更新的信息编号</param>
 /// <returns>信息是否存在</returns>
 public bool CheckSystemSettingExists(Expression <Func <SystemSetting, bool> > predicate, int id = 0)
 {
     return(SystemSettingRepository.CheckExists(predicate, id));
 }