| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_ISystemServices; |
| | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°ååºçé误信æ¯å°æ°æ®åºï¼å端ç颿¾ç¤º |
| | | /// </summary> |
| | | /// <param name="message"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent UpdateErrorMsg(string message,int id) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | var error = BaseDal.QueryFirst(v=>v.Id==id); |
| | | error.errormsg = message; |
| | | error.ModifyDate = DateTime.Now; |
| | | BaseDal.UpdateData(error); |
| | | return webResponse.OK(); |
| | | } |
| | | } |
| | | } |