| | |
| | | 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)) |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |