fix 命名空间调整
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Dlhis.Basic.Dishes.Request;
|
||||
using Dlhis.Basic.Dishes.Response;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Services;
|
||||
namespace Dlhis.Basic.Dishes.Services;
|
||||
|
||||
public interface IDishesCategoryService : IScopeDependency
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Dlhis.Basic.Dishes.Request;
|
||||
using Dlhis.Basic.Dishes.Dto;
|
||||
using Dlhis.Basic.Dishes.Response;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Services;
|
||||
namespace Dlhis.Basic.Dishes.Services;
|
||||
|
||||
public interface IDishesMenuService : IScopeDependency
|
||||
{
|
||||
@@ -12,5 +12,5 @@ public interface IDishesMenuService : IScopeDependency
|
||||
|
||||
Task SaveDishesMenuAsync(DishesMenuSaveRequest request);
|
||||
|
||||
Task<DishesMenuDetailDto> CheckBookingAsync(DateTime date, Guid businessPlaceCode, ShiftEnumType shiftType, string dishesCustomCode);
|
||||
Task<DishesMenuDetailDto> GetBookingDishesDetailAsync(DateTime date, Guid businessPlaceCode, ShiftEnumType shiftType, string dishesCode);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using Dlhis.Basic.Dishes.Response;
|
||||
using Kurisu.Core.DataAccess.Dto;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Services;
|
||||
namespace Dlhis.Basic.Dishes.Services;
|
||||
|
||||
public interface IDishesService : IScopeDependency
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Dlhis.Basic.Dishes.Request;
|
||||
using Dlhis.Basic.Dishes.Response;
|
||||
using Dlhis.Canteen.Dishes.Services;
|
||||
using Dlhis.Entity.Canteen.Entities;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
|
||||
@@ -10,7 +10,7 @@ using Dlhis.Basic.Dishes.Response;
|
||||
using Dlhis.Basic.BusinessPlace.Services;
|
||||
using Dlhis.Basic.Dishes.Dto;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Services.Implements;
|
||||
namespace Dlhis.Basic.Dishes.Services.Implements;
|
||||
|
||||
public class DishesMenuService : IDishesMenuService
|
||||
{
|
||||
@@ -85,14 +85,14 @@ public class DishesMenuService : IDishesMenuService
|
||||
|
||||
|
||||
|
||||
public async Task<DishesMenuDetailDto> CheckBookingAsync(DateTime date, Guid businessPlaceCode, ShiftEnumType shiftType, string dishesCustomCode)
|
||||
public async Task<DishesMenuDetailDto> GetBookingDishesDetailAsync(DateTime date, Guid businessPlaceCode, ShiftEnumType shiftType, string dishesCode)
|
||||
{
|
||||
var detail = await _dbContext.Queryable<DishesMenuEntity>()
|
||||
.LeftJoin<DishesEntity>((x, d) => x.DishesCode == d.CustomCode)
|
||||
.Where(x => x.Date == date)
|
||||
.Where(x => x.BusinessPlaceCode == businessPlaceCode)
|
||||
.Where(x => x.ShiftType == shiftType)
|
||||
.Where(x => x.DishesCode == dishesCustomCode)
|
||||
.Where(x => x.DishesCode == dishesCode)
|
||||
.Where((x, d) => d.Enable)
|
||||
.Select((x, d) => new DishesMenuDetailDto
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Dlhis.Basic.Dishes.Request;
|
||||
using Dlhis.Basic.Dishes.Response;
|
||||
using Dlhis.Canteen.Dishes.Services;
|
||||
using Dlhis.Entity.Canteen.Entities;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.Core.DataAccess.Dto;
|
||||
@@ -8,7 +7,7 @@ using Kurisu.SqlSugar.Extensions;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
using Mapster;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Services.Implements;
|
||||
namespace Dlhis.Basic.Dishes.Services.Implements;
|
||||
|
||||
public class DishesService : IDishesService
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user