fix 补充部门名称
This commit is contained in:
@@ -5,6 +5,7 @@ using Kurisu.Core.DataAccess.Dto;
|
||||
using Kurisu.Core.User.Abstractions;
|
||||
using Kurisu.SqlSugar.Extensions;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace Dlhis.Basic.MealUser.Services.Implements;
|
||||
|
||||
@@ -25,9 +26,10 @@ public class MealUserService : IMealUserService
|
||||
|
||||
var page = await _dbContext.Queryable<GainfoEntity>()
|
||||
.LeftJoin<GainfoMealEntity>((x, meal) => x.Code == meal.UserCode)
|
||||
.LeftJoin<DepartmentEntity>((x, meal, dept) => dept.No == x.DepartmentNo)
|
||||
.WhereIF(request.Search.IsPresent(), (x, meal) => x.Code == request.Search || x.Name == request.Search)
|
||||
.Where(x => x.Factory == tenantId)
|
||||
.Select((x, meal) => new MealUserResponse
|
||||
.Select((x, meal, dept) => new MealUserResponse
|
||||
{
|
||||
Balance = meal.Balance,
|
||||
BalanceOfRecharge = meal.BalanceOfRecharge,
|
||||
|
||||
Reference in New Issue
Block a user