diff --git a/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs b/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs index e55bb2f6..1b3a42ba 100644 --- a/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs +++ b/SGGL/BLL/API/HJGL/APIPreWeldingDailyService.cs @@ -461,9 +461,8 @@ namespace BLL weldingDaily.UnitWorkId = joint.UnitWorkId; weldingDaily.UnitId = weldTask?.UnitId; weldingDaily.Tabler = Personid; - weldingDaily.TableDate = Convert.ToDateTime(time).Date; - db.HJGL_WeldingDaily.InsertOnSubmit(weldingDaily); - db.SubmitChanges(); + weldingDaily.TableDate = Convert.ToDateTime(time).Date; + BLL.WeldingDailyService.AddWeldingDaily(weldingDaily); } BLL.HJGL_PipelineComponentjointService.UpdateStateByWeldJointId(WeldJointId, (DateTime)weldingDaily.WeldingDate);//更改预制口实际时间和状态 PipelineService.UpdataDateByWeldJointId(WeldJointId);//更改安装口时间和状态 diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 5971df32..d98a37e8 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -17019,7 +17019,7 @@ - +