This commit is contained in:
2026-03-11 11:45:23 +08:00
parent 5e3df582da
commit 24cbcc97f8
4 changed files with 139 additions and 0 deletions
@@ -1248,5 +1248,26 @@ namespace WebAPI.Controllers
return responeData;
}
#endregion
#region
/// <summary>
/// 获取焊接位置
/// </summary>
/// <returns></returns>
public Model.ResponeData getWeldingLocation()
{
var responeData = new Model.ResponeData();
try
{
responeData.data = APIBaseInfoService.GetWeldingLocationList();
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
}
}
@@ -169,6 +169,38 @@ namespace WebAPI.Controllers
}
return responeData;
}
/// <summary>
/// 根据焊口id保存到日报(增加焊接位置参数)
/// </summary>
/// <param name="WeldJointId"></param>
/// <param name="Personid"></param>
/// <param name="time"></param>
/// <param name="weldingLocation"></param>
/// <returns></returns>
[HttpGet]
public Model.ResponeData SaveWeldingDailyByWeldJointId(string WeldJointId, string Personid, string time,string weldingLocation)
{
var responeData = new Model.ResponeData();
try
{
string res = APIPreWeldingDailyService.SaveWeldingDailyByWeldJointId(WeldJointId, Personid, time, weldingLocation);
if (!string.IsNullOrEmpty(res))
{
responeData.code = 0;
responeData.message = res;
}
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
#endregion
#region