From 4a2d607621651f355c00f25e2610e13240ecdefa Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期日, 21 一月 2024 15:20:27 +0800 Subject: [PATCH] 引用升级,代码微调 --- Yw.Application.DOCS.Core/2-attach-file/1-mgr/SysAttachFile_Controller.cs | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/Yw.Application.DOCS.Core/2-attach-file/1-mgr/SysAttachFile_Controller.cs b/Yw.Application.DOCS.Core/2-attach-file/1-mgr/SysAttachFile_Controller.cs index bc38b26..13db789 100644 --- a/Yw.Application.DOCS.Core/2-attach-file/1-mgr/SysAttachFile_Controller.cs +++ b/Yw.Application.DOCS.Core/2-attach-file/1-mgr/SysAttachFile_Controller.cs @@ -95,7 +95,7 @@ model.FileSuffix = Path.GetExtension(uploadFile.FileName); model.StorageHouse = ConfigHelper.DataFolder; model.StorageCode = Yw.Service.FileHelper.UploadSubFile(ConfigHelper.DataFolder, uploadFile.OpenReadStream(), Path.GetExtension(uploadFile.FileName)); - model.SortCode = _service.GetMaxSortCodeByAttachTypeAndAttachID(input.AttachType, input.AttachID) + 1; + model.SortCode = _service.GetMaxSortCode(input.AttachType, input.AttachID) + 1; var filePath = Yw.Service.FileHelper.GetFilePath(model.StorageHouse, model.StorageCode); var fileInfo = new FileInfo(filePath); model.FileSize = fileInfo.Length; @@ -148,10 +148,6 @@ [HttpPut] public bool UpdateSorter([Required] List<UpdateSortCodeInput> inputList) { - if (inputList == null || inputList.Count < 1) - { - return false; - } var list = inputList.Select(x => x.Adapt<Yw.Model.Sorter>()).ToList(); var bol = _service.UpdateSorter(list); return bol; -- Gitblit v1.9.3