This commit is contained in:
佘春生 2024-05-24 22:21:09 +08:00
commit 4b2bf7020b
1 changed files with 10 additions and 0 deletions

View File

@ -314,6 +314,11 @@ namespace BLL
}
return isoRate;
}
/// <summary>
/// 获取基础焊口数量
/// </summary>
/// <param name="pipelineId"></param>
/// <returns></returns>
public static int countBaseWeldJointCode(string pipelineId)
{
string sql = "select count(1) from Pipeline_WeldJoint where PipelineId=@PipelineId";
@ -323,6 +328,11 @@ namespace BLL
int count = SQLHelper.getIntValue(sql, parameters);
return count;
}
/// <summary>
/// 获取试压包明细表焊口数量
/// </summary>
/// <param name="pipelineId"></param>
/// <returns></returns>
public static int countWeldJointCode(string pipelineId)
{
string sql = @"select WeldJointCode=(stuff((select ','+ WeldJonintCode from PTP_PipelineList where PipelineId=@PipelineId and isALL=0 for xml path('')),1,1,''))";