| | |
| | | using CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$; |
| | | using CMS.Plugin.$NameSpacePath$.Application.Contracts.Services; |
| | | using CMS.Plugin.$NameSpacePath$.Domain.Shared; |
| | | using CMS.Plugin.$NameSpacePath$.Domain.Shared.Util; |
| | | using CmsQueryExtensions; |
| | | using CMS.Plugin.$NameSpacePath$.Domain.$EntityName$; |
| | | using CmsQueryExtensions.Extension; |
| | | using System.Linq.Expressions; |
| | |
| | | |
| | | await $EntityInstanceName$Repository.InsertAsync(insertObj); |
| | | |
| | | if (input.Sort.HasValue && insertObj.Sort != maxSort) |
| | | { |
| | | await AdjustSortAsync(insertObj.Id, insertObj.Sort); |
| | | } |
| | | //if (input.Sort.HasValue && insertObj.Sort != maxSort) |
| | | //{ |
| | | // await AdjustSortAsync(insertObj.Id, insertObj.Sort); |
| | | //} |
| | | |
| | | return ObjectMapper.Map<$EntityName$, $EntityName$Dto>(insertObj); |
| | | } |
| | |
| | | |
| | | foreach (var impItem in importItems) |
| | | { |
| | | if (impItem.$ValidateRepeatName$.IsNullOrWhiteSpace() && impItem.MaterialName.IsNullOrWhiteSpace()) |
| | | if (impItem.$ValidateRepeatName$.IsNullOrWhiteSpace()) |
| | | { |
| | | continue; |
| | | } |
| | |
| | | ["閰嶇疆"] = ExportHelper.ConvertListToExportData(result), |
| | | }; |
| | | |
| | | var fileName = result.Count > 1 ? "$ChinaComment$鍒楄〃" : result.Count == 1 ? result[0]?.$ValidateRepeatName$ : "$EntityName$妯$増"; |
| | | var fileName = "$PageMenuName$"; |
| | | return (sheets, fileName); |
| | | } |
| | | |