|
|
@ -639,12 +639,13 @@ namespace Myshipping.Application
|
|
|
|
.LeftJoin<ServiceWorkFlowRunActivitiesInfo>((m, s) => m.PK_ID == s.RUN_ID)
|
|
|
|
.LeftJoin<ServiceWorkFlowRunActivitiesInfo>((m, s) => m.PK_ID == s.RUN_ID)
|
|
|
|
.LeftJoin<ServiceWorkFlowProjectRelation>((m, s, rela) =>
|
|
|
|
.LeftJoin<ServiceWorkFlowProjectRelation>((m, s, rela) =>
|
|
|
|
m.SERVICE_WF_ID == rela.SERVICE_WORKFLOW_ID && m.RELEASE_VERSION == rela.WF_VERSION)
|
|
|
|
m.SERVICE_WF_ID == rela.SERVICE_WORKFLOW_ID && m.RELEASE_VERSION == rela.WF_VERSION)
|
|
|
|
.LeftJoin<ServiceProjectBaseInfo>((m, s, rela, p) =>
|
|
|
|
.InnerJoin<ServiceProjectBaseInfo>((m, s, rela, p) =>
|
|
|
|
rela.SERVICE_PROJECT_ID == p.PK_ID)
|
|
|
|
rela.SERVICE_PROJECT_ID == p.PK_ID)
|
|
|
|
.Where((m, s, rela, p)
|
|
|
|
.Where((m, s, rela, p)
|
|
|
|
=> m.BUSI_SYSTEM_CODE == info.Main.BusiSystemCode && m.BUSI_ID == info.Main.BusiId &&
|
|
|
|
=> m.BUSI_SYSTEM_CODE == info.Main.BusiSystemCode && m.BUSI_ID == info.Main.BusiId &&
|
|
|
|
(info.Main.ServiceProjectCodeList == null || info.Main.ServiceProjectCodeList.Contains(p.SERVICE_PROJECT_CODE)))
|
|
|
|
(info.Main.ServiceProjectCodeList == null || info.Main.ServiceProjectCodeList.Contains(p.SERVICE_PROJECT_CODE)))
|
|
|
|
.Select((m, s) => new { Run = m, Sub = s }).ToList();
|
|
|
|
.Select((m, s,rela,p) =>
|
|
|
|
|
|
|
|
new { Run = m, Sub = s }).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var resultList = runList.GroupBy(a => a.Run.PK_ID)
|
|
|
|
var resultList = runList.GroupBy(a => a.Run.PK_ID)
|
|
|
|
.Select(a => {
|
|
|
|
.Select(a => {
|
|
|
@ -662,7 +663,8 @@ namespace Myshipping.Application
|
|
|
|
showModel.ActDate = runInfo.ACT_DATE;
|
|
|
|
showModel.ActDate = runInfo.ACT_DATE;
|
|
|
|
showModel.WFPKId = runInfo.SERVICE_WF_ID;
|
|
|
|
showModel.WFPKId = runInfo.SERVICE_WF_ID;
|
|
|
|
|
|
|
|
|
|
|
|
showModel.ActivitiesList = currList.Where(t => t.Sub.IS_SUB == 0)
|
|
|
|
showModel.ActivitiesList = currList.Where(t =>
|
|
|
|
|
|
|
|
!string.IsNullOrWhiteSpace(t.Sub.PK_ID) && t.Sub.IS_SUB == 0)
|
|
|
|
.Select(t =>
|
|
|
|
.Select(t =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var runModel = new ServiceWorkFlowActivitiesRunDto
|
|
|
|
var runModel = new ServiceWorkFlowActivitiesRunDto
|
|
|
@ -686,7 +688,8 @@ namespace Myshipping.Application
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var subList =
|
|
|
|
var subList =
|
|
|
|
currList.Where(t => t.Sub.IS_SUB == 1)
|
|
|
|
currList.Where(t =>
|
|
|
|
|
|
|
|
!string.IsNullOrWhiteSpace(t.Sub.PK_ID) && t.Sub.IS_SUB == 1)
|
|
|
|
.Select(t => t.Sub).ToList();
|
|
|
|
.Select(t => t.Sub).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
showModel.ActivitiesList = showModel.ActivitiesList.GroupJoin(subList,
|
|
|
|
showModel.ActivitiesList = showModel.ActivitiesList.GroupJoin(subList,
|
|
|
|