From 7a3a4f8012a72f80d8dd62064a76655c803da864 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 29 五月 2024 12:42:45 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/baifenbaishop --- CoreCms.Net.Services/baifenbingfa/BfbfComAPIService.cs | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/CoreCms.Net.Services/baifenbingfa/BfbfComAPIService.cs b/CoreCms.Net.Services/baifenbingfa/BfbfComAPIService.cs index ff01659..0b5c19e 100644 --- a/CoreCms.Net.Services/baifenbingfa/BfbfComAPIService.cs +++ b/CoreCms.Net.Services/baifenbingfa/BfbfComAPIService.cs @@ -32,7 +32,7 @@ var ListData= await _unitOfWork.GetDbClient().Queryable<CoreCmsUser>().Where(x => x.isDelete == false).Select(x => new SearchUserData { Id = x.id, - name = x.mobile + "|" + x.userName + "|" + x.nickName, + name = x.mobile /*+ "|" + x.userName*/ + "|" + x.nickName, }).WithCache(50).ToListAsync(); if (string.IsNullOrEmpty(s)) @@ -58,5 +58,18 @@ return false; } + + public async Task<List<CoreCmsGoodsCategory>> GetGoodsCategory() + { + return await _unitOfWork.GetDbClient().Queryable<CoreCmsGoodsCategory>().Where(x=>x.isShow==true).WithCache(10).ToTreeAsync(x=>x.children, x=>x.parentId,0); + } + + + public decimal CommandCustomizable(int count) + { + if (count > 9999) + return 0; + return count * 1; + } } } -- Gitblit v1.9.1