海运出口添加所属业务部门

usertest
cjy 3 months ago
parent f91e41ebc1
commit e0335104be

@ -1230,6 +1230,11 @@ public class SeaExportReq
/// 航线人员名称
/// </summary>
public string Laner { get; set; }
/// <summary>
/// 所属业务部门名称
/// </summary>
public string SaleDeptName { get; set; }
}
/// <summary>

@ -1613,4 +1613,11 @@ public class SeaExport : BaseOrgModel<long>
/// </summary>
[SugarColumn(ColumnDescription = "航线人员名称", IsNullable = true, Length = 100)]
public string Laner { get; set; }
/// <summary>
/// 所属业务部门名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "所属业务部门名称", IsNullable = true, Length = 100)]
public string SaleDeptName { get; set; }
}

@ -83,10 +83,10 @@ public partial class SeaExportService : ISeaExportService
var result = tenantDb.Queryable<SeaExport>()
.InnerJoin<BusinessFeeStatus>((a, b) => a.Id == b.BusinessId)
//.LeftJoin<SysOrg>((a, b, c) => a.SaleOrgId == c.Id, "shippingweb8_dev.sys_org")
.LeftJoin<SysOrg>((a, b, c) => a.SaleDeptId == c.Id, "shippingweb8_dev.sys_org")
.Select((a, b, c) => new SeaExportRes()
//.LeftJoin<SysOrg>((a, b, c) => a.SaleDeptId == c.Id, "shippingweb8_dev.sys_org")
.Select((a, b) => new SeaExportRes()
{
SaleDeptName = c.OrgName,
//SaleDeptName = c.OrgName,
},
true)//true表示 其余字段自动映射,根据字段名字
//.Select<SeaExportRes>()

Loading…
Cancel
Save