班前会报错

This commit is contained in:
何美荣 2025-11-30 21:16:14 +08:00
parent d7f34dd05d
commit 0732f0c1dc

View File

@ -159,8 +159,8 @@ namespace APT.FO.WebApi.Controllers.Api.FO
else else
{ {
var currTeam = GetEntity<T_FM_TEAM>(t => t.DEPARTMENT_ID == entity.DEPARTMENT_ID); var currTeam = GetEntity<T_FM_TEAM>(t => t.DEPARTMENT_ID == entity.DEPARTMENT_ID);
entity.TEAM_ID = currTeam.ID; entity.TEAM_ID = currTeam?.ID;
TeamName = currTeam.NAME; TeamName = currTeam?.NAME;
} }
if (entity.NAME == null) if (entity.NAME == null)
{ {