This commit is contained in:
wjn 2024-04-08 17:17:56 +08:00
commit 35a28d8199
4 changed files with 12 additions and 4 deletions

View File

@ -20,7 +20,6 @@ namespace APT.BaseData.Domain.Entities.FM
/// 同步名称
/// </summary>
[Description("同步名称")]
[AcronymField("NAME_ACRONYM")]
public string NAME { get; set; }
/// <summary>

View File

@ -5593,7 +5593,6 @@ namespace APT.BS.WebApi.Controllers.Api
{
return SafeExecute<bool>(() =>
{
var files = entity.Nav_Files;
entity.Nav_Files = null;
//entity.RiskContentState 5 10 需要处理

View File

@ -384,7 +384,7 @@ namespace APT.BS.WebApi.Controllers.Api
userModelNotice = GetEntity<T_FM_USER>(listContent[0].USER_ID.Value);
}
var userModel = GetDepartMentLevelMaster(userModelNotice);//隐患通知责任人
if (userModel != null && userModel.ID != Guid.Empty)
if (userModel != null && !string.IsNullOrEmpty(userModel.NAME))
{
dicApproveUser.Add(3, userModel);//隐患通知责任人 所在的部门级别负责人
}

View File

@ -4225,7 +4225,7 @@ namespace APT.SC.WebApi.Controllers.Api.BIController
ret.TotalCount = newData.Count();
ret.doneCount = newData.Where(t => t.NOTICE_STATUS == 1).Count();
ret.timeOverCount = newData.Where(t => t.NOTICE_STATUS == 2).Count();
var groupDataTemp = newData.GroupBy(t =>t.MOUDLE_NAME).Select(m => new GroupbyMouldName
var groupDataTemp = newData.GroupBy(t => t.MOUDLE_NAME).Select(m => new GroupbyMouldName
{
mouldName = m.Key,
totalCount = m.Count(p => p.MOUDLE_NAME == m.Key),
@ -4234,6 +4234,16 @@ namespace APT.SC.WebApi.Controllers.Api.BIController
}).ToList();
ret.groupData = groupDataTemp;
}
else
{
ret.formData = formInfo.ToList();
ret.userData = userInfos.ToList();
ret.newData = new List<T_BI_NOTIFICATION_TASK_NEW>();
ret.TotalCount = 0;
ret.doneCount = 0;
ret.timeOverCount = 0;
ret.groupData = new List<GroupbyMouldName>();
}
return ret;
});
}