From 71eaf9114fc39d137d76b303edeb1ff43e26cf6f Mon Sep 17 00:00:00 2001 From: qinchulong <qinchulong@hnkhzn.com> Date: 星期六, 01 三月 2025 23:04:38 +0800 Subject: [PATCH] 错误信息显示 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_errormsginfoService.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_errormsginfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_errormsginfoService.cs" index 96ce2b0..93e7fc7 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_errormsginfoService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_errormsginfoService.cs" @@ -12,14 +12,14 @@ namespace WIDESEAWCS_SystemServices { - public class dt_errormsginfoService : ServiceBase<dt_errorInfo, IRepository<dt_errorInfo>>, Idt_ErrormsginfoService + public class dt_errormsginfoService : ServiceBase<dt_errormsgInfo, IRepository<dt_errormsgInfo>>, Idt_ErrormsginfoService { private readonly IMapper _mapper; /// <summary> /// 浠撳偍灞�(鏁版嵁搴撹闂�) /// </summary> - public IRepository<dt_errorInfo> Repository => BaseDal; - public dt_errormsginfoService(IRepository<dt_errorInfo> BaseDal, IMapper mapper) : base(BaseDal) + public IRepository<dt_errormsgInfo> Repository => BaseDal; + public dt_errormsginfoService(IRepository<dt_errormsgInfo> BaseDal, IMapper mapper) : base(BaseDal) { _mapper = mapper; } @@ -32,10 +32,11 @@ public WebResponseContent UpdateErrorMsg(string message,int id) { WebResponseContent webResponse = new WebResponseContent(); - - - - return webResponse; + var error = BaseDal.QueryFirst(v=>v.Id==id); + error.errormsg = message; + error.ModifyDate = DateTime.Now; + BaseDal.UpdateData(error); + return webResponse.OK(); } } } -- Gitblit v1.9.3