Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe
This commit is contained in:
commit
6e6ecae387
@ -159,8 +159,8 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
||||
else
|
||||
{
|
||||
var currTeam = GetEntity<T_FM_TEAM>(t => t.DEPARTMENT_ID == entity.DEPARTMENT_ID);
|
||||
entity.TEAM_ID = currTeam.ID;
|
||||
TeamName = currTeam.NAME;
|
||||
entity.TEAM_ID = currTeam?.ID;
|
||||
TeamName = currTeam?.NAME;
|
||||
}
|
||||
if (entity.NAME == null)
|
||||
{
|
||||
|
||||
@ -153,28 +153,28 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.DEPARTMENT_TYPE) && !item.DEPARTMENT_TYPE.Contains("公司级"))
|
||||
{
|
||||
throw new Exception("第" + item.NUM + "行,重大风险管控层级必须包含公司级");
|
||||
//throw new Exception("第" + item.NUM + "行,重大风险管控层级必须包含公司级");
|
||||
}
|
||||
}
|
||||
if (item.EVALUATE_LEVEL == SKEvaluateLevelEnum.较大风险)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.DEPARTMENT_TYPE) && !item.DEPARTMENT_TYPE.Contains("部门级") && !item.DEPARTMENT_TYPE.Contains("公司级"))
|
||||
{
|
||||
throw new Exception("第" + item.NUM + "行,较大风险管控层级必须大于部门级");
|
||||
//throw new Exception("第" + item.NUM + "行,较大风险管控层级必须大于部门级");
|
||||
}
|
||||
}
|
||||
if (item.EVALUATE_LEVEL == SKEvaluateLevelEnum.一般风险)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.DEPARTMENT_TYPE) && !item.DEPARTMENT_TYPE.Contains("部门级") && !item.DEPARTMENT_TYPE.Contains("公司级") && !item.DEPARTMENT_TYPE.Contains("车间级"))
|
||||
{
|
||||
throw new Exception("第" + item.NUM + "行,一般风险管控层级必须大于车间级");
|
||||
//throw new Exception("第" + item.NUM + "行,一般风险管控层级必须大于车间级");
|
||||
}
|
||||
}
|
||||
if (item.EVALUATE_LEVEL == SKEvaluateLevelEnum.低风险)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.DEPARTMENT_TYPE) && !item.DEPARTMENT_TYPE.Contains("部门级") && !item.DEPARTMENT_TYPE.Contains("公司级") && !item.DEPARTMENT_TYPE.Contains("车间级") && !item.DEPARTMENT_TYPE.Contains("班组级"))
|
||||
{
|
||||
throw new Exception("第" + item.NUM + "行,低风险管控层级必须大于班组级");
|
||||
//throw new Exception("第" + item.NUM + "行,低风险管控层级必须大于班组级");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user