fix 营业点控制(admin),unit返回
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
namespace Dlhis.Basic.Dishes.Response;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Basic.Dishes.Response;
|
||||
|
||||
public class DishesDetailResponse
|
||||
{
|
||||
@@ -42,7 +45,20 @@ public class DishesDetailResponse
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
public List<string> Units { get; set; }
|
||||
public List<string> Units
|
||||
{
|
||||
get
|
||||
{
|
||||
if (CurrentUnits.IsPresent())
|
||||
{
|
||||
return CurrentUnits.ToObject<List<string>>();
|
||||
}
|
||||
return new () { "个" };
|
||||
}
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public string CurrentUnits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
|
||||
Reference in New Issue
Block a user