收发通模板类型改为多选

usertest
cjy 3 months ago
parent b880d13f89
commit 3b550112b1

@ -58,7 +58,7 @@ namespace DS.WMS.Core.Op.Entity
/// <summary> /// <summary>
/// 类型 1 收 2 发 3 通 /// 类型 1 收 2 发 3 通
/// </summary> /// </summary>
[SugarColumn(ColumnDescription = "类型 1 收 2 发 3 通", IsNullable = false, Length = 10)] [SugarColumn(ColumnDescription = "类型 1 收 2 发 3 通", IsNullable = false, Length = 30)]
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>

@ -145,7 +145,7 @@ namespace DS.WMS.Core.Op.Method
{ {
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<SeaExportShippingBillTemplate>() var data = tenantDb.Queryable<SeaExportShippingBillTemplate>()
.Where(a => a.Type == type && a.Status == StatusEnum.Enable) .Where(a => a.Type.Contains(type) && a.Status == StatusEnum.Enable)
.Select<ShippingBillTemplateSelectRes>() .Select<ShippingBillTemplateSelectRes>()
.ToList(); .ToList();
return DataResult<List<ShippingBillTemplateSelectRes>>.Success(data, MultiLanguageConst.DataQuerySuccess); return DataResult<List<ShippingBillTemplateSelectRes>>.Success(data, MultiLanguageConst.DataQuerySuccess);

Loading…
Cancel
Save