小程序接口修改
This commit is contained in:
@@ -51,7 +51,7 @@ namespace BLL
|
||||
DutyPersonName = db.Sys_User.First(u => u.UserId == x.DutyPersonId).UserName,
|
||||
DutyPersonDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.DutyPersonDate),
|
||||
ProfessionalEngineerId = x.ProfessionalEngineerId,
|
||||
ProfessionalEngineerName = UserService.getUserNamesUserIds(x.ProfessionalEngineerId),
|
||||
ProfessionalEngineerName = UserService.getUserNamesUserIdsForApi(x.ProfessionalEngineerId),
|
||||
ProfessionalEngineerTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ProfessionalEngineerTime),
|
||||
ConstructionManagerId = x.ConstructionManagerId,
|
||||
ConstructionManagerName = db.Sys_User.First(u => u.UserId == x.ConstructionManagerId).UserName,
|
||||
@@ -203,7 +203,7 @@ namespace BLL
|
||||
db.Check_PauseNotice.InsertOnSubmit(newPauseNotice);
|
||||
db.SubmitChanges();
|
||||
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectPauseNoticeMenuId, newPauseNotice.ProjectId, newPauseNotice.UnitId, newPauseNotice.PauseNoticeId, newPauseNotice.CompileDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectPauseNoticeMenuId, newPauseNotice.ProjectId, newPauseNotice.UnitId, newPauseNotice.PauseNoticeId, newPauseNotice.CompileDate);
|
||||
//// 回写巡检记录表
|
||||
if (!string.IsNullOrEmpty(newItem.HazardRegisterId))
|
||||
{
|
||||
@@ -360,7 +360,7 @@ namespace BLL
|
||||
|
||||
if (newItem.PauseStates == Const.State_0 || newItem.PauseStates == Const.State_1)
|
||||
{ //// 通知单附件
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(newItem.PauseNoticeAttachUrl, 10, null), newItem.PauseNoticeAttachUrl, Const.ProjectPauseNoticeMenuId, newPauseNotice.PauseNoticeId);
|
||||
UploadFileService.SaveAttachUrlForApi(UploadFileService.GetSourceByAttachUrl(newItem.PauseNoticeAttachUrl, 10, null), newItem.PauseNoticeAttachUrl, Const.ProjectPauseNoticeMenuId, newPauseNotice.PauseNoticeId);
|
||||
}
|
||||
if (getUpdate != null && getUpdate.States == Const.State_2)
|
||||
{
|
||||
@@ -373,7 +373,7 @@ namespace BLL
|
||||
getcheck.CompletedDate = DateTime.Now;
|
||||
db.SubmitChanges();
|
||||
//// 根据明细ID判断是否全部整改完成 并更新专项检查状态
|
||||
Check_CheckSpecialService.UpdateCheckSpecialStates(getcheck.CheckSpecialId);
|
||||
Check_CheckSpecialService.UpdateCheckSpecialStatesForApi(getcheck.CheckSpecialId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -397,11 +397,11 @@ namespace BLL
|
||||
////保存附件
|
||||
if (!string.IsNullOrEmpty(attachUrl))
|
||||
{
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(attachUrl, 10, null), attachUrl, menuId, getPauseNotice.PauseNoticeId);
|
||||
UploadFileService.SaveAttachUrlForApi(UploadFileService.GetSourceByAttachUrl(attachUrl, 10, null), attachUrl, menuId, getPauseNotice.PauseNoticeId);
|
||||
}
|
||||
else
|
||||
{
|
||||
CommonService.DeleteAttachFileById(menuId, getPauseNotice.PauseNoticeId);
|
||||
CommonService.DeleteAttachFileByIdForApi(menuId, getPauseNotice.PauseNoticeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user