提交代码

This commit is contained in:
2023-11-28 18:53:48 +08:00
parent 7c20d53ed3
commit dcb9ef5f6c
2 changed files with 8 additions and 1 deletions
@@ -848,7 +848,7 @@ namespace BLL
}
if (isExitWPQId)
{
string strSql = "SELECT distinct PipelineId, PipelineCode FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL AND UnitWorkId =@UnitWorkId AND WPQId IS NULL" + pipeAreasql + " order by PipelineCode";
string strSql = "SELECT distinct PipelineId, PipelineCode FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL AND UnitWorkId =@UnitWorkId AND WPQId IS NULL" + pipeAreasql;
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@UnitWorkId", node.NodeID));
if (!string.IsNullOrEmpty(pipecode))
@@ -857,6 +857,7 @@ namespace BLL
listStr.Add(new SqlParameter("@PipelineCode", "" + pipecode + ""));
}
strSql += " order by PipelineCode";
SqlParameter[] parameter = listStr.ToArray();
System.Data.DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
var pipeline = Funs.TableToEntity<Model.PipeLineIdCodeItem>(dt);