This commit is contained in:
jackchenyang 2024-05-24 22:20:18 +08:00
parent 27f28efcc0
commit 68a1b882ce
2 changed files with 10 additions and 0 deletions

Binary file not shown.

View File

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