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

usertest
cjy 3 months ago
parent f91e41ebc1
commit e0335104be

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

@ -1613,4 +1613,11 @@ public class SeaExport : BaseOrgModel<long>
/// </summary> /// </summary>
[SugarColumn(ColumnDescription = "航线人员名称", IsNullable = true, Length = 100)] [SugarColumn(ColumnDescription = "航线人员名称", IsNullable = true, Length = 100)]
public string Laner { get; set; } 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>() var result = tenantDb.Queryable<SeaExport>()
.InnerJoin<BusinessFeeStatus>((a, b) => a.Id == b.BusinessId) .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.SaleOrgId == c.Id, "shippingweb8_dev.sys_org")
.LeftJoin<SysOrg>((a, b, c) => a.SaleDeptId == 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() .Select((a, b) => new SeaExportRes()
{ {
SaleDeptName = c.OrgName, //SaleDeptName = c.OrgName,
}, },
true)//true表示 其余字段自动映射,根据字段名字 true)//true表示 其余字段自动映射,根据字段名字
//.Select<SeaExportRes>() //.Select<SeaExportRes>()

Loading…
Cancel
Save