小程序接口修改
This commit is contained in:
@@ -220,7 +220,7 @@ namespace BLL
|
||||
newPunishNotice.PunishNoticeCode = CodeRecordsService.ReturnCodeByMenuIdProjectId(Const.ProjectPunishNoticeMenuId, newPunishNotice.ProjectId, newPunishNotice.UnitId);
|
||||
db.Check_PunishNotice.InsertOnSubmit(newPunishNotice);
|
||||
db.SubmitChanges();
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectPunishNoticeMenuId, newPunishNotice.ProjectId, newPunishNotice.UnitId, newPunishNotice.PunishNoticeId, newPunishNotice.CompileDate);
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectPunishNoticeMenuId, newPunishNotice.ProjectId, newPunishNotice.UnitId, newPunishNotice.PunishNoticeId, newPunishNotice.CompileDate);
|
||||
|
||||
//// 回写巡检记录表
|
||||
if (!string.IsNullOrEmpty(newItem.HazardRegisterId))
|
||||
@@ -438,7 +438,7 @@ namespace BLL
|
||||
getcheck.CompletedDate = DateTime.Now;
|
||||
db.SubmitChanges();
|
||||
//// 根据明细ID判断是否全部整改完成 并更新专项检查状态
|
||||
Check_CheckSpecialService.UpdateCheckSpecialStates(getcheck.CheckSpecialId);
|
||||
Check_CheckSpecialService.UpdateCheckSpecialStatesForApi(getcheck.CheckSpecialId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -466,11 +466,11 @@ namespace BLL
|
||||
////保存附件
|
||||
if (!string.IsNullOrEmpty(attachUrl))
|
||||
{
|
||||
UploadFileService.SaveAttachUrl(UploadFileService.GetSourceByAttachUrl(attachUrl, 10, null), attachUrl, menuId, getPunishNotice.PunishNoticeId);
|
||||
UploadFileService.SaveAttachUrlForApi(UploadFileService.GetSourceByAttachUrl(attachUrl, 10, null), attachUrl, menuId, getPunishNotice.PunishNoticeId);
|
||||
}
|
||||
else
|
||||
{
|
||||
CommonService.DeleteAttachFileById(menuId, getPunishNotice.PunishNoticeId);
|
||||
CommonService.DeleteAttachFileByIdForApi(menuId, getPunishNotice.PunishNoticeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user