using BLL; using System; using System.Web.Http; namespace WebAPI.Controllers.HJGL.WeldingManage { /// /// 管道下料检查接口。 /// public class PreWeldCuttingCheckController : ApiController { /// /// 根据焊口ID获取当前焊口的所有下料检查记录。 /// public Model.ResponeData GetRecordsByWeldJointId(string weldJointId) { var responeData = new Model.ResponeData(); try { responeData.data = APIPreWeldInspectionService.GetCuttingChecksByWeldJointId(weldJointId); } catch (Exception ex) { responeData.code = 0; responeData.message = ex.Message; } return responeData; } /// /// 保存一条管道下料检查记录。 /// [HttpPost] public Model.ResponeData SaveRecord([FromBody] Model.PreWeldCuttingCheckInput item) { var responeData = new Model.ResponeData(); try { responeData.data = APIPreWeldInspectionService.SaveCuttingCheck(item); } catch (Exception ex) { responeData.code = 0; responeData.message = ex.Message; } return responeData; } } }