refactor(hjgl): 整理历史资源并完善焊接查询
归档数据库版本脚本并清理历史地图资源,补充焊口查询和焊接任务相关逻辑,降低项目资源维护成本并完善焊接业务查询。
This commit is contained in:
@@ -186,7 +186,13 @@ namespace BLL
|
||||
var pipeLineMats = db.HJGL_PipeLineMat
|
||||
.Where(e => idList.Contains(e.PipeLineMatId) && e.MaterialCode != null && e.MaterialCode != "")
|
||||
.ToList();
|
||||
foreach (var item in pipeLineMats)
|
||||
var weldJointIds = pipeLineMats.Select(x => x.WeldJointId).Distinct().ToList();
|
||||
var taskWeldJointIds = db.HJGL_WeldTask
|
||||
.Where(x => weldJointIds.Contains(x.WeldJointId))
|
||||
.Select(x => x.WeldJointId)
|
||||
.Distinct()
|
||||
.ToList();
|
||||
foreach (var item in pipeLineMats.Where(x => !taskWeldJointIds.Contains(x.WeldJointId)))
|
||||
{
|
||||
item.MaterialCode = null;
|
||||
count++;
|
||||
|
||||
Reference in New Issue
Block a user