From a114457c6fd853e901e88eb9c32bfb14a3033100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=8C?= <小希2899451377@qq.com> Date: Wed, 15 Feb 2023 15:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=9F=A5=20=E5=AF=B9bool=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=81=9A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.Ddd/Services/ReadOnlyAppService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Yi.Framework.Net6/src/framework/Yi.Framework.Ddd/Services/ReadOnlyAppService.cs b/Yi.Framework.Net6/src/framework/Yi.Framework.Ddd/Services/ReadOnlyAppService.cs index 49f5743c..41e0e75e 100644 --- a/Yi.Framework.Net6/src/framework/Yi.Framework.Ddd/Services/ReadOnlyAppService.cs +++ b/Yi.Framework.Net6/src/framework/Yi.Framework.Ddd/Services/ReadOnlyAppService.cs @@ -142,7 +142,15 @@ where TEntityDto : IEntityDto } break; case ColumnTypeEnum.@bool: - + string _Value = ""; + if ((bool)value) + { + _Value = "1"; + } + else { + _Value = "0"; + } + sortInput.Conditions.Add(new ConditionalModel { FieldValue = _Value, FieldName = item.Name, ConditionalType = (ConditionalType)(int)query.QueryOperator }); break; default: sortInput.Conditions.Add(new ConditionalModel { FieldValue = value.ToString(), FieldName = item.Name, ConditionalType = (ConditionalType)(int)query.QueryOperator });