diff --git a/SlnMesnac.Model/domain/LogoFormula.cs b/SlnMesnac.Model/domain/LogoFormula.cs
new file mode 100644
index 0000000..d563ee0
--- /dev/null
+++ b/SlnMesnac.Model/domain/LogoFormula.cs
@@ -0,0 +1,36 @@
+using SqlSugar;
+using System;
+using System.Collections.Generic;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Xml.Linq;
+
+namespace SlnMesnac.Model.domain
+{
+ ///
+ /// 海康配方
+ ///
+ [SugarTable("LOGO_FORMULA"), TenantAttribute("AUCMA_MES")]
+ public class LogoFormula
+ {
+ ///
+ /// 主键标识
+ ///
+ [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, IsIdentity = true, OracleSequenceName = "SEQ_LOGO_FORMULA")]
+ public int Id { get; set; }
+
+ ///
+ /// 存储1-2-3-4这种发给海康的型号
+ ///
+ [SugarColumn(ColumnName = "KEY")]
+ public int Key { get; set; }
+
+ ///
+ /// 存储人工选择的特征-如白色冰柜大LOGO;黑色冰柜小LOGO
+ ///
+ [SugarColumn(ColumnName = "VALUE")]
+ public string Value { get; set; }
+
+
+ }
+}
diff --git a/SlnMesnac.Repository/SqlsugarSetup.cs b/SlnMesnac.Repository/SqlsugarSetup.cs
index 77a9323..9daf205 100644
--- a/SlnMesnac.Repository/SqlsugarSetup.cs
+++ b/SlnMesnac.Repository/SqlsugarSetup.cs
@@ -64,6 +64,7 @@ namespace SlnMesnac.Repository
services.AddSingleton();
services.AddSingleton();
services.AddSingleton();
+ services.AddSingleton();
}
}
}
diff --git a/SlnMesnac.Repository/service/ILogoFormulaService.cs b/SlnMesnac.Repository/service/ILogoFormulaService.cs
new file mode 100644
index 0000000..004d978
--- /dev/null
+++ b/SlnMesnac.Repository/service/ILogoFormulaService.cs
@@ -0,0 +1,43 @@
+using SlnMesnac.Model.domain;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SlnMesnac.Repository.service
+{
+ public interface ILogoFormulaService
+ {
+
+ ///
+ /// 从本地查询所有型号用来展示
+ ///
+ ///
+ Task> GetListAsync();
+
+
+ //TODO 修改、删除
+
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ Task InsertAsync(LogoFormula record);
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ Task DeleteAsync(LogoFormula record);
+
+ ///
+ /// 修改
+ ///
+ ///
+ ///
+ Task UpdateAsync(LogoFormula record);
+
+ }
+}
diff --git a/SlnMesnac.Repository/service/Impl/LogoFormulaImpl.cs b/SlnMesnac.Repository/service/Impl/LogoFormulaImpl.cs
new file mode 100644
index 0000000..038b1d2
--- /dev/null
+++ b/SlnMesnac.Repository/service/Impl/LogoFormulaImpl.cs
@@ -0,0 +1,64 @@
+using Microsoft.Extensions.Logging;
+using SlnMesnac.Model.domain;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SlnMesnac.Repository.service.Impl
+{
+ public class LogoFormulaImpl : ILogoFormulaService
+ {
+ private readonly ILogger _logger;
+
+ private readonly Repository _rep;
+
+ public LogoFormulaImpl(ILogger logger, Repository rep)
+ {
+ _logger = logger;
+ _rep = rep;
+ }
+
+ public async Task> GetListAsync()
+ {
+ List list = null;
+ list = await _rep.GetListAsync();
+ return list;
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ ///
+ public async Task UpdateAsync(LogoFormula record)
+ {
+ bool result = await _rep.UpdateAsync(record);
+ return result;
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ public async Task DeleteAsync(LogoFormula record)
+ {
+ bool result = await _rep.DeleteAsync(record);
+ return result;
+ }
+
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ public async Task InsertAsync(LogoFormula record)
+ {
+ bool result = await _rep.InsertAsync(record);
+ return result;
+ }
+
+ }
+}
diff --git a/SlnMesnac.WPF/ViewModel/ConfigPageViewModel.cs b/SlnMesnac.WPF/ViewModel/ConfigPageViewModel.cs
index e8e5bba..bc527ca 100644
--- a/SlnMesnac.WPF/ViewModel/ConfigPageViewModel.cs
+++ b/SlnMesnac.WPF/ViewModel/ConfigPageViewModel.cs
@@ -29,6 +29,7 @@ namespace SlnMesnac.WPF.ViewModel
SyncCommand = new RelayCommand(SynchronizeLocal);
QueryCommand = new RelayCommand(Query);
UpdateCommand = new RelayCommand