fix 根据营业点号获取餐次名称为null

This commit is contained in:
cheche
2024-01-24 19:08:06 +08:00
parent eb235ae154
commit a36ff46722
10 changed files with 231 additions and 2 deletions

View File

@@ -98,10 +98,10 @@ public class BusinessPlaceShiftService : IBusinessPlaceShiftService
var tenantInfo = tenantResult.Data;
var list = new List<BusinessPlaceShiftTinyResponse>();
foreach (var shiftinfo in shifts)
foreach (CanteenBusinessShiftEntity shiftinfo in shifts)
{
var name = _dbContext.Queryable<BasicTypeEntity>()
.Where(x => x.Code == shiftinfo.Code.ToString())
.Where(x => x.Code == shiftinfo.CustomCode.ToString())
.Select(x => x.Display)
.First();
var shift = new BusinessPlaceShiftTinyResponse