2023-06-29
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
@@ -30,7 +31,36 @@ namespace WebAPI.Controllers
|
||||
|
||||
return responeData;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据管线号查找pipelinid
|
||||
/// </summary>
|
||||
/// <param name="pipelineCode"></param>
|
||||
/// <param name="projectid"></param>
|
||||
/// <param name="pageindex"></param>
|
||||
/// <param name="pageSize"></param>
|
||||
/// <returns></returns>
|
||||
public Model.ResponeData GetPipelineidListByCode(string pipelineCode, string projectid,int pageindex, int pageSize)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
var pipelineidList = APIPipeJointService.GetPipelineidListByCode(pipelineCode,projectid);
|
||||
|
||||
int pageCount = pipelineidList.Count;
|
||||
if (pageCount > 0 && pageindex > 0 && pageSize > 0)
|
||||
{
|
||||
pipelineidList = pipelineidList.Skip(pageSize * (pageindex - 1)).Take(pageSize).ToList();
|
||||
}
|
||||
responeData.data = new { pageCount, pipelineidList };
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据管线ID获取未焊接的焊口信息
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user