From 71403dd5e730c6966b2754f94b8a2df50729bfd3 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 27 三月 2026 14:10:04 +0800
Subject: [PATCH] fix(RouterService): AddRouters 缓存更新用 try-catch 保护
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
index ee6b07a..81bbbf0 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
@@ -381,7 +381,7 @@
};
var taskDtos = task.Adapt<WMSTaskDTO>();
- var addResult = await BaseDal.AddDataAsync(task);
+ var addResult = await BaseDal.AddDataAsync(task) > 0;
if (!addResult)
return WebResponseContent.Instance.Error("浠诲姟鍒涘缓澶辫触");
return WebResponseContent.Instance.OK("浠诲姟鍒涘缓鎴愬姛", taskDtos);
--
Gitblit v1.9.3