From 55d80e23de974df80ced14948204e67f2c7eb975 Mon Sep 17 00:00:00 2001
From: zhangxiaofeng <1939543722@qq.com>
Date: Mon, 2 Sep 2024 18:08:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BB=BB=E5=8A=A1=E6=97=B6?=
=?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=8E=A5=E6=94=B6=E4=BA=BA=E4=B8=BA=E7=A9=BA?=
=?UTF-8?q?=EF=BC=8C=E5=88=99=E5=85=AC=E5=85=B1=E4=BB=BB=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs
index cfd8086a..58aa0aab 100644
--- a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs
+++ b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs
@@ -223,8 +223,8 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
info.Main.RecvUserInfoList = await FillInUserInfoAsync(request.RecvUserIdList);
}
- if (info.Main.RecvUserInfoList == null || info.Main.RecvUserInfoList.Count == 0)
- return DataResult.FailedWithDesc(nameof(MultiLanguageConst.TaskReceiverNotFound));
+ //if (info.Main.RecvUserInfoList == null || info.Main.RecvUserInfoList.Count == 0)
+ // return DataResult.FailedWithDesc(nameof(MultiLanguageConst.TaskReceiverNotFound));
//仅为业务订单任务自动填充任务标题/描述
if (info.Main.TaskTitle.IsNullOrEmpty() && IsOrderType(request.TaskType))
@@ -867,6 +867,9 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
///
protected internal ISugarQueryable GetQuery(long id, BusinessType? businessType, params TaskBaseTypeEnum[] taskTypes)
{
+ var a = TenantDb.Queryable().Where(x => x.BusinessId == id)
+ .WhereIF(businessType.HasValue, x => x.BusinessType == businessType)
+ .WhereIF(taskTypes != null && taskTypes.Length > 0, x => taskTypes.Contains(x.TaskType)).ToSqlString();
return TenantDb.Queryable().Where(x => x.BusinessId == id)
.WhereIF(businessType.HasValue, x => x.BusinessType == businessType)
.WhereIF(taskTypes != null && taskTypes.Length > 0, x => taskTypes.Contains(x.TaskType));