fix werks数据记录

This commit is contained in:
2024-04-18 16:15:20 +08:00
parent 36546d71c1
commit 8400a992fc
2 changed files with 9 additions and 2 deletions

View File

@@ -211,7 +211,8 @@ public class OrderService : BaseOrderService, IOrderService
IsOffline = request.IsOffline,
IsCostCrossTenant = await GetSettingAsync<bool>(businessPlaceInfo.TenantId, CanteenSettingItemEnumType.AllowCrossTenant),
OriginTenantId = gainfo.Factory,//人员可能跨基地消费
OriginTenantId = gainfo.Factory,
Werks = gainfo.Werks,
//餐别异常处理
Status = BalanceRecordStatusEnumType.Valid,
@@ -363,7 +364,8 @@ public class OrderService : BaseOrderService, IOrderService
IsOffline = request.IsOffline,
IsCostCrossTenant = await GetSettingAsync<bool>(businessPlaceInfo.TenantId, CanteenSettingItemEnumType.AllowCrossTenant),
OriginTenantId = gainfo.Factory,//人员可能跨基地消费
OriginTenantId = gainfo.Factory,
Werks = gainfo.Werks,
//餐别异常处理
Status = shift == null ? BalanceRecordStatusEnumType.Doubtful : BalanceRecordStatusEnumType.Valid,

View File

@@ -147,6 +147,11 @@ public class BalanceRecordEntity : SugarBaseEntity, ISoftDeleted, ITenantId
public string TenantId { get; set; }
/// <summary>
/// 人事范围
/// </summary>
public string Werks { get; set; }
[SugarColumn(ColumnDataType = "bit")]
public bool IsDeleted { get; set; }