Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe
This commit is contained in:
commit
37b432f2e6
@ -215,17 +215,16 @@ namespace APT.SK.WebApi.Controllers.Api
|
||||
var id = filter.FilterGroup.Rules.FirstOrDefault(t => t.Field == "ID").Value.ToString();
|
||||
if (string.IsNullOrEmpty(id))
|
||||
this.ThrowError("060010");
|
||||
filter.IgnoreDataRule = true;
|
||||
|
||||
KeywordFilter filter2 = new KeywordFilter();
|
||||
filter2.IgnoreDataRule = true;
|
||||
filter2.IgnoreOrgRule = true;
|
||||
filter2.OrgId = null;
|
||||
var result = this.GetEntity<T_SK_RISK_IDENTIFY>(e => e.ID == new Guid(id), filter2, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
filter = new KeywordFilter();
|
||||
filter.IgnoreDataRule = true;
|
||||
filter.IgnoreOrgRule = true;
|
||||
filter.OrgId = null;
|
||||
var result = this.GetEntity<T_SK_RISK_IDENTIFY>(e => e.ID == new Guid(id), filter, new string[] { "Nav_ApplyUser", "Nav_ApplyDepartment","Nav_Require",
|
||||
"Nav_Files.Nav_ImgFile","Nav_Requires.Nav_Require"});
|
||||
if (result != null)
|
||||
{
|
||||
var details = this.GetEntities<T_SK_RISK_IDENTIFY_DETAIL>(t => t.RISK_IDENTIFY_ID == result.ID, filter2, "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_ProductionUnit");
|
||||
var details = this.GetEntities<T_SK_RISK_IDENTIFY_DETAIL>(t => t.RISK_IDENTIFY_ID == result.ID, filter, "Nav_Area", "Nav_Type", "Nav_RiskName", "Nav_ProductionUnit");
|
||||
result.Nav_Details = details.OrderBy(m => m.MineType).ThenBy(t => t.AREA_ID).ThenBy(x => x.TYPE_ID).ToList();
|
||||
if (result.STATUS == PFStandardStatus.Rejected)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user