| | |
| | | using System; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using WIDESEA.Core.Utilities; |
| | | using WIDESEA.Entity.DomainModels; |
| | | using WIDESEA.Services.IRepositories; |
| | | using WIDESEA.Services.Repositories; |
| | | using WIDESEA_Common.LogEnum; |
| | | |
| | | namespace WIDESEA.Services.Services |
| | | { |
| | |
| | | /// <returns></returns> |
| | | public static void ChangeLocationState(Dt_locationinfo location, string state) |
| | | { |
| | | string temp = location.location_state;// è®°å½ä¿®æ¹åçç¶æ |
| | | |
| | | location.location_state = state; |
| | | Dt_locationinfoRepository.Instance.Update(location, true); |
| | | int i = Dt_locationinfoRepository.Instance.Update(location, true); |
| | | LogRecord.WriteLog((int)LogEnum.Errer, $"è´§ä½å·{location.location_id},ä¿®æ¹ç¶æåæ¯{temp}ï¼ä¿®æ¹åçç¶ææ¯{state},ä¿®æ¹äºæ°æ®è¿åç»æã{i}ã"); |
| | | |
| | | |
| | | //Console.WriteLine($"è´§ä½ç¶ææ²¡æä¿®æ¹æåï¼è´§ä½å·{location.location_id},没æååçç¶æ{location.location_state}"); |
| | | } |
| | | } |
| | | } |