feat: SaveWeldingDailyByWeldJointId 支持打底和盖面焊工分别指定
新增 welderType 参数(0 全部/1 打底/2 盖面), welderType 为 1 或 2 时仅填充对应焊工字段, WeldingDate 保存和自动组批仅在打底与盖面都填充后执行。
This commit is contained in:
@@ -201,6 +201,38 @@ namespace WebAPI.Controllers
|
||||
return responeData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据焊口id保存到日报
|
||||
/// </summary>
|
||||
/// <param name="WeldJointId">焊口号</param>
|
||||
/// <param name="Personid">人员ID</param>
|
||||
/// <param name="time">时间</param>
|
||||
/// <param name="weldingLocation">焊接位置</param>
|
||||
/// <param name="welderType">焊工类型</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public Model.ResponeData SaveWeldingDailyByWeldJointId(string WeldJointId, string Personid, string time,string weldingLocation,int welderType)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
string res = APIPreWeldingDailyService.SaveWeldingDailyByWeldJointId(WeldJointId, Personid, time, weldingLocation, welderType);
|
||||
|
||||
if (!string.IsNullOrEmpty(res))
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = res;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
return responeData;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 更新焊接日报焊口信息
|
||||
|
||||
Reference in New Issue
Block a user