fix 设备对接接口忽略tenant
This commit is contained in:
@@ -21,4 +21,9 @@ public class BusinessPlaceShiftTinyResponse
|
||||
/// 经营结束时间
|
||||
/// </summary>
|
||||
public TimeOnly End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间段描述
|
||||
/// </summary>
|
||||
public string TimePeriodDesc => $"{Start}--{End}";
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using Dlhis.Entity.Basic.Entity;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.Core.CustomClass;
|
||||
using Kurisu.Core.DataAccess.Dto;
|
||||
using Kurisu.SqlSugar.Attributes;
|
||||
using Kurisu.SqlSugar.Extensions;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
using Mapster;
|
||||
@@ -68,7 +69,7 @@ public class BusinessPlaceShiftService : IBusinessPlaceShiftService
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[IgnoreTenant]
|
||||
public async Task<BusinessPlaceWithShiftResponse> GetShiftsByPlaceCustomCodeAsync(string placeCustomCode)
|
||||
{
|
||||
var place = await _dbContext.Queryable<CanteenBusinessPlaceEntity>().Where(x => x.CustomCode == placeCustomCode).FirstAsync();
|
||||
|
||||
@@ -5,6 +5,7 @@ using Dlhis.Entity.Device.Entities;
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Kurisu.AspNetCore.UnifyResultAndValidation;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.SqlSugar.Attributes;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
using Mapster;
|
||||
|
||||
@@ -19,6 +20,7 @@ public class DeviceConnectService : IDeviceConnectService
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
[IgnoreTenant]
|
||||
public async Task<string> ResigterAsync(DeviceResigterRequest request)
|
||||
{
|
||||
var device = await GetEnableDeviceAsync(request.UniqueNo);
|
||||
|
||||
@@ -44,7 +44,7 @@ public class OrderAddRequest
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费时间,由机器提供
|
||||
/// 消费时间,由机器提供,否则获取当前时间
|
||||
/// </summary>
|
||||
public DateTime CostDateTime { get; set; }
|
||||
public DateTime CostDateTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user