生产单元赋值
This commit is contained in:
parent
511f4a7374
commit
cae8bf09a6
@ -75,6 +75,10 @@ namespace APT.FO.WebApi.Controllers
|
||||
{
|
||||
entity.COMPANY_ID = this.GetEntity<T_FM_DEPARTMENT>(t => t.PARENT_ID == null)?.ID;
|
||||
}
|
||||
if (entity.PRODUCTION_UNIT_ID == null)
|
||||
{
|
||||
entity.PRODUCTION_UNIT_ID = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID)?.PRODUCTION_UNIT_ID;
|
||||
}
|
||||
var details = entity.Nav_Details;
|
||||
if (details != null && details.Any())
|
||||
{
|
||||
|
||||
@ -75,6 +75,10 @@ namespace APT.FO.WebApi.Controllers
|
||||
{
|
||||
entity.COMPANY_ID = this.GetEntity<T_FM_DEPARTMENT>(t => t.PARENT_ID == null)?.ID;
|
||||
}
|
||||
if (entity.PRODUCTION_UNIT_ID == null)
|
||||
{
|
||||
entity.PRODUCTION_UNIT_ID = this.GetEntity<T_FM_DEPARTMENT>(t => t.ID == entity.APPLY_DEPARTMENT_ID)?.PRODUCTION_UNIT_ID;
|
||||
}
|
||||
var details = entity.Nav_Details;
|
||||
if (details != null && details.Any())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user