feat(hjgl): 完善委托焊口调整和返修扩透
支持调整委托焊口和退回委托,完善返修扩透操作,并更新对应页面资源。
This commit is contained in:
@@ -881,8 +881,8 @@ namespace BLL
|
||||
join z in db.HJGL_Batch_PointBatch on x.PointBatchId equals z.PointBatchId
|
||||
join y in db.HJGL_WeldJoint on x.WeldJointId equals y.WeldJointId
|
||||
join d in db.HJGL_WeldingDaily on y.WeldingDailyId equals d.WeldingDailyId
|
||||
where z.DetectionTypeId == record.DetectionTypeId
|
||||
&& !x.PointDate.HasValue || (x.PointDate.HasValue && x.RepairRecordId == repairRecordId)
|
||||
where z.ProjectId == record.ProjectId && z.DetectionTypeId == record.DetectionTypeId
|
||||
&& (!x.PointDate.HasValue || x.RepairRecordId == repairRecordId)
|
||||
orderby y.WeldJointCode
|
||||
select new
|
||||
{
|
||||
@@ -894,6 +894,7 @@ namespace BLL
|
||||
y.PipelineCode,
|
||||
y.JointArea,
|
||||
y.BackingWelderId,
|
||||
y.CoverWelderId,
|
||||
y.Material1Id,
|
||||
y.Specification,
|
||||
d.WeldingDate
|
||||
@@ -901,7 +902,9 @@ namespace BLL
|
||||
|
||||
if (welder)
|
||||
{
|
||||
repairExp = repairExp.Where(x => x.BackingWelderId == jot.BackingWelderId);
|
||||
var welderIds = new[] { jot.BackingWelderId, jot.CoverWelderId }
|
||||
.Where(x => !string.IsNullOrEmpty(x)).Distinct().ToList();
|
||||
repairExp = repairExp.Where(x => welderIds.Contains(x.BackingWelderId) || welderIds.Contains(x.CoverWelderId));
|
||||
}
|
||||
if (batch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user