diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml index 6c6c0a3b..7024d905 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml @@ -391,41 +391,6 @@ - - - 增 - - - - - - - 查 - - - - - - - 查 - - - - - - 删 - - - - - - - 更 - - - - - 账户管理 diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs deleted file mode 100644 index b436afe9..00000000 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs +++ /dev/null @@ -1,96 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Yi.Framework.Common.Models; -using Yi.Framework.DtoModel.RABC.Student; -using Yi.Framework.Interface.RABC; - -namespace Yi.Framework.ApiMicroservice.Controllers.ERP -{ - [ApiController] - [Route("[controller]")] - public class StudentController : ControllerBase - { - - private readonly ILogger _logger; - private readonly IStudentService _studentService; - public StudentController(ILogger logger, IStudentService studentService) - { - _logger = logger; - _studentService = studentService; - } - - [HttpDelete] - [Route("ErrorTest")] - public Result ErrorTest() - { - _studentService.GetError(); - return Result.Success(); - } - - /// - /// - /// - /// - /// - [HttpPost] - public async Task> Create(StudentCreateInput studentCreateInput) - { - var result = await _studentService.CreateAsync(studentCreateInput); - - return Result.Success().SetData(result); - - } - - /// - /// - /// - /// - /// - [HttpGet] - [Route("{id}")] - public async Task> GetById(Guid id) - { - var result = await _studentService.GetByIdAsync(id); - return Result.Success().SetData(result); - } - - /// - /// - /// - /// - [HttpGet] - public async Task>> GetLsit() - { - var result = await _studentService.GetListAsync(); - - return Result>.Success().SetData(result); - } - - /// - /// ɾ - /// - /// - /// - [HttpDelete] - public async Task> Del(List ids) - { - await _studentService.DeleteAsync(ids); - return Result.Success(); - } - - /// - /// - /// - /// - /// - /// - [HttpPut] - [Route("{id}")] - public async Task> Update(Guid id, StudentUpdateInput studentUpdateInput) - { - var result = await _studentService.UpdateAsync(id, studentUpdateInput); - return Result.Success().SetData(result); - } - - - } -} \ No newline at end of file diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db index 22b2f850..a24a9d37 100644 Binary files a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db and b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db differ diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs b/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs index 5629592d..b750054f 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs @@ -9,10 +9,10 @@ namespace Yi.Framework.Common.Helper { public class EmailHelper { - public static string fromMail { get; set; } - public static string pwdMail { get; set; } - public static string senderMail { get; set; } - public static string subjectMail { get; set; } + public static string fromMail { get; set; } = string.Empty; + public static string pwdMail { get; set; } = string.Empty; + public static string senderMail { get; set; } = string.Empty; + public static string subjectMail { get; set; } = string.Empty; public static void Init(string fromMail,string pwdMail,string senderMail, string subjectMail) { EmailHelper.fromMail = fromMail; diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs index ed6bb3af..fe3e72f3 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs @@ -12,6 +12,6 @@ namespace Yi.Framework.Common.Models public long ParentId { get; set; } public int OrderNum { get; set; } - public List Children { get; set; } + public List? Children { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs index 1c7b779f..40698657 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs @@ -11,8 +11,8 @@ namespace Yi.Framework.Common.Models /// public class LogModel { - public string OriginalClassName { get; set; } - public string OriginalMethodName { get; set; } - public string Remark { get; set; } + public string OriginalClassName { get; set; } = string.Empty; + public string OriginalMethodName { get; set; } = string.Empty; + public string? Remark { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs index b1a6004c..7f090ade 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs @@ -16,7 +16,7 @@ namespace Yi.Framework.Common.Models Total = total; } public int Total { get; set; } - public T Data { get; set; } + public T Data { get; set; } = default(T)!; } public class PageModel : PageModel diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/VueRouterModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/VueRouterModel.cs index 30af6f11..3384a985 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Models/VueRouterModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/VueRouterModel.cs @@ -12,22 +12,22 @@ namespace Yi.Framework.Common.Models public long ParentId { get; set; } public int OrderNum { get; set; } - public string Name { get; set; } - public string Path { get; set; } + public string Name { get; set; } = string.Empty; + public string Path { get; set; } = string.Empty; public bool Hidden { get; set; } - public string Redirect { get; set; } - public string Component { get; set; } + public string Redirect { get; set; } = string.Empty; + public string Component { get; set; } = string.Empty; public bool AlwaysShow { get; set; } public Meta Meta { get; set; } = new Meta(); - public List Children { get; set; } + public List? Children { get; set; } } public class Meta { - public string Title { get; set; } - public string Icon { get; set; } + public string Title { get; set; } = string.Empty; + public string Icon { get; set; } = string.Empty; public bool NoCache { get; set; } - public string link { get; set; } + public string link { get; set; } = string.Empty; } } diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Options/SqlConnOptions.cs b/Yi.Framework.Net6/Yi.Framework.Common/Options/SqlConnOptions.cs index 5e177b00..c4646a05 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Options/SqlConnOptions.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/Options/SqlConnOptions.cs @@ -5,7 +5,7 @@ namespace Yi.Framework.Common.IOCOptions { public class SqlConnOptions { - public string WriteUrl { get; set; } - public List ReadUrl { get; set; } + public string WriteUrl { get; set; } = string.Empty; + public List? ReadUrl { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/OrderCreateQueueModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/OrderCreateQueueModel.cs index 0f715418..b71a1af2 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/OrderCreateQueueModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/OrderCreateQueueModel.cs @@ -22,7 +22,7 @@ namespace Yi.Framework.Common.QueueModel /// /// sku ID 集合 /// - public List SkuIdList { get; set; } + public List? SkuIdList { get; set; } /// /// 尝试次数 diff --git a/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/SMSQueueModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/SMSQueueModel.cs index 242a75c9..1bcdab4f 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/SMSQueueModel.cs +++ b/Yi.Framework.Net6/Yi.Framework.Common/QueueModel/SMSQueueModel.cs @@ -8,7 +8,7 @@ namespace Yi.Framework.Common.QueueModel { public class SMSQueueModel { - public string code { get; set; } - public string phone { get; set; } + public string? code { get; set; } + public string? phone { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj index 784b6b95..22079ff5 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj +++ b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj @@ -5,6 +5,14 @@ enable + + 1701;1702;CS8618 + + + + 1701;1702;CS8618 + + diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/GiveRoleSetMenuDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/GiveRoleSetMenuDto.cs index 055469a7..cebd105b 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/GiveRoleSetMenuDto.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/GiveRoleSetMenuDto.cs @@ -8,7 +8,7 @@ namespace Yi.Framework.DtoModel.Base.Dto { public class GiveRoleSetMenuDto { - public List RoleIds { get; set; } - public List MenuIds { get; set; } + public List? RoleIds { get; set; } + public List? MenuIds { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/RoleInfoDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/RoleInfoDto.cs index 50b3404a..f5538682 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/RoleInfoDto.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/RoleInfoDto.cs @@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.Base.Dto { public class RoleInfoDto { - public RoleEntity Role { get; set; } - public List DeptIds { get; set; } - public List MenuIds { get; set; } + public RoleEntity Role { get; set; }=new (); + public List DeptIds { get; set; } = new (); + public List MenuIds { get; set; } = new (); } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/UpdatePasswordDto.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/UpdatePasswordDto.cs index c91c487c..267e4e80 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/UpdatePasswordDto.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/Base/Dto/UpdatePasswordDto.cs @@ -8,7 +8,7 @@ namespace Yi.Framework.DtoModel.Base.Dto { public class UpdatePasswordDto { - public string NewPassword { get; set; } - public string OldPassword { get; set; } + public string NewPassword { get; set; }=string.Empty; + public string OldPassword { get; set; } = string.Empty; } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialCreateUpdateInput.cs index 3ac90f21..24ad8348 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialCreateUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialCreateUpdateInput.cs @@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Material { public class MaterialCreateUpdateInput : EntityDto { - public string? Code { get; set; } - public string? Name { get; set; } - public string? UnitName { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; + public string UnitName { get; set; }=string.Empty; public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListInput.cs new file mode 100644 index 00000000..deba3ca4 --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListInput.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.DtoModel.ERP.Material +{ + public class MaterialGetListInput + { + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; + public string UnitName { get; set; }=string.Empty; + public string? Remarks { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListOutput.cs index 71f5c573..b5baa527 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Material/MaterialGetListOutput.cs @@ -9,9 +9,9 @@ namespace Yi.Framework.DtoModel.ERP.Material { public class MaterialGetListOutput: EntityDto { - public string Code { get; set; } - public string Name { get; set; } - public string UnitName { get; set; } - public string Remarks { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; + public string UnitName { get; set; }=string.Empty; + public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Purchase/PurchaseGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Purchase/PurchaseGetListOutput.cs index 1a746dfd..f7ecdfdf 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Purchase/PurchaseGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Purchase/PurchaseGetListOutput.cs @@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Purchase { public class PurchaseGetListOutput: EntityDto { - public string Code { get; set; } + public string Code { get; set; } = string.Empty; public DateTime NeedTime { get; set; } - public string Buyer { get; set; } + public string Buyer { get; set; } = string.Empty; public long TotalMoney { get; set; } public long PaidMoney { get; set; } public PurchaseStateEnum PurchaseState { get; set; } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsCreateUpdateInput.cs index c371f87f..c81d02dc 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsCreateUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsCreateUpdateInput.cs @@ -10,12 +10,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails { public class PurchaseDetailsCreateUpdateInput : EntityDto { - public string? MaterialUnit { get; set; } - - public string? MaterialName { get; set; } - public float UnitPrice { get; set; } - public long TotalNumber { get; set; } - public long? CompleteNumber { get; set; } + public string MaterialName { get; set; }=string.Empty; + public string MaterialUnit { get; set; }=string.Empty ; + public float UnitPrice { get; set; } + public long TotalNumber { get; set; } + public long CompleteNumber { get; set; } public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListInput.cs new file mode 100644 index 00000000..0b2a7b6d --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListInput.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.DtoModel.ERP.PurchaseDetails +{ + public class PurchaseDetailsGetListInput + { + public string MaterialName { get; set; }=string.Empty; + public string MaterialUnit { get; set; }=string.Empty ; + public float UnitPrice { get; set; } + public long TotalNumber { get; set; } + public long CompleteNumber { get; set; } + public string? Remarks { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListOutput.cs index 962cbe69..8fc101ba 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/PurchaseDetails/PurchaseDetailsGetListOutput.cs @@ -9,11 +9,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails { public class PurchaseDetailsGetListOutput: EntityDto { - public string MaterialName { get; set; } - public string MaterialUnit { get; set; } - public float UnitPrice { get; set; } - public long TotalNumber { get; set; } + public string MaterialName { get; set; }=string.Empty; + public string MaterialUnit { get; set; }=string.Empty ; + public float UnitPrice { get; set; } + public long TotalNumber { get; set; } public long CompleteNumber { get; set; } - public string Remarks { get; set; } + public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Supplier/SupplierGetListInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Supplier/SupplierGetListInput.cs new file mode 100644 index 00000000..a7d7bbaa --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Supplier/SupplierGetListInput.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.DtoModel.ERP.Supplier +{ + public class SupplierGetListInput + { + public string Code { get; set; } = string.Empty; + public string Name { get; set; }= string.Empty; + public string? Address { get; set; } + public long? Phone { get; set; } + public string? Fax { get; set; } + public string? Email { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitCreateUpdateInput.cs index 693925b3..ac91855c 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitCreateUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitCreateUpdateInput.cs @@ -10,8 +10,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit { public class UnitCreateUpdateInput : EntityDto { - public string? Code { get; set; } - public string? Name { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListInput.cs new file mode 100644 index 00000000..577f47c8 --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListInput.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.DtoModel.ERP.Unit +{ + public class UnitGetListInput + { + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; + public string? Remarks { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListOutput.cs index ceef9916..ee9a58d6 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Unit/UnitGetListOutput.cs @@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit { public class UnitGetListOutput: EntityDto { - public string Code { get; set; } - public string Name { get; set; } - public string Remarks { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty; + public string? Remarks { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseCreateUpdateInput.cs index 07f3f49b..5d38fee9 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseCreateUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseCreateUpdateInput.cs @@ -11,9 +11,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse { public class WarehouseCreateUpdateInput : EntityDto { - public string? Code { get; set; } - public string? Name { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty ; public string? Remarks { get; set; } - public StateEnum? State { get; set; } + public StateEnum State { get; set; } = StateEnum.Normal; } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListInput.cs new file mode 100644 index 00000000..982e4b3c --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListInput.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Common.Enum; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.DtoModel.ERP.Warehouse +{ + public class WarehouseGetListInput + { + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty ; + public string? Remarks { get; set; } + public StateEnum State { get; set; } = StateEnum.Normal; + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListOutput.cs index 57c2d626..0aac115e 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/ERP/Warehouse/WarehouseGetListOutput.cs @@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse { public class WarehouseGetListOutput: EntityDto { - public string Code { get; set; } - public string Name { get; set; } - public string Remarks { get; set; } - public StateEnum State { get; set; } + public string Code { get; set; }=string.Empty; + public string Name { get; set; }=string.Empty ; + public string? Remarks { get; set; } + public StateEnum State { get; set; } = StateEnum.Normal; } } diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/MapperConfig/StudentProfile.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/MapperConfig/StudentProfile.cs deleted file mode 100644 index 75574923..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/MapperConfig/StudentProfile.cs +++ /dev/null @@ -1,22 +0,0 @@ -using AutoMapper; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Yi.Framework.Model.RABC.Entitys; - -namespace Yi.Framework.DtoModel.RABC.Student.MapperConfig -{ - public class StudentProfile : Profile - { - public StudentProfile() - { - CreateMap(); - CreateMap(); - CreateMap(); - CreateMap(); - CreateMap(); - } - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateInput.cs deleted file mode 100644 index 8c40f254..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateInput.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace Yi.Framework.DtoModel.RABC.Student -{ - public class StudentCreateInput - { - public string Name { get; set; } - public string Remark { get; set; } - - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateUpdateInput.cs deleted file mode 100644 index 040a6aa1..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentCreateUpdateInput.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace Yi.Framework.DtoModel.RABC.Student -{ - public class StudentCreateUpdateInput - { - public string Name { get; set; } - public string Remark { get; set; } - - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentGetOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentGetOutput.cs deleted file mode 100644 index 37fb34c1..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentGetOutput.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using Yi.Framework.Model.Base; - -namespace Yi.Framework.DtoModel.RABC.Student -{ - public class StudentGetOutput : EntityDto - { - public string Name { get; set; } - public string Remark { get; set; } - - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentListOutput.cs deleted file mode 100644 index 4fa11f1f..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentListOutput.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using Yi.Framework.Model.Base; - -namespace Yi.Framework.DtoModel.RABC.Student -{ - public class StudentListOutput : EntityDto - { - public string Name { get; set; } - public string Remark { get; set; } - - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentUpdateInput.cs deleted file mode 100644 index 96978316..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/RABC/Student/StudentUpdateInput.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace Yi.Framework.DtoModel.RABC.Student -{ - public class StudentUpdateInput - { - public string Name { get; set; } - public string Remark { get; set; } - - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.DTOModel/Yi.Framework.DTOModel.csproj b/Yi.Framework.Net6/Yi.Framework.DTOModel/Yi.Framework.DTOModel.csproj index 5f0148bf..52794c21 100644 --- a/Yi.Framework.Net6/Yi.Framework.DTOModel/Yi.Framework.DTOModel.csproj +++ b/Yi.Framework.Net6/Yi.Framework.DTOModel/Yi.Framework.DTOModel.csproj @@ -7,6 +7,7 @@ + diff --git a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Purchase/PurchaseUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Purchase/PurchaseUpdateInput.cs index 691d2b73..88f05610 100644 --- a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Purchase/PurchaseUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Purchase/PurchaseUpdateInput.cs @@ -11,9 +11,9 @@ namespace Yi.Framework.DtoModel.ERP.Purchase { public class PurchaseUpdateInput : EntityDto { - public string Code { get; set; } + public string? Code { get; set; } public DateTime NeedTime { get; set; } - public string Buyer { get; set; } + public string? Buyer { get; set; } public long TotalMoney { get; set; } public long PaidMoney { get; set; } public PurchaseStateEnum PurchaseState { get; set; } diff --git a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierCreateUpdateInput.cs b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierCreateUpdateInput.cs index 482804ad..440bfa7f 100644 --- a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierCreateUpdateInput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierCreateUpdateInput.cs @@ -1,4 +1,4 @@ -using SqlSugar; +using SqlSugar; using System; using System.Collections.Generic; using System.Linq; @@ -10,32 +10,11 @@ namespace Yi.Framework.DtoModel.ERP.Supplier { public class SupplierCreateUpdateInput : EntityDto { - /// - /// 供应商编码 - /// - public string? Code { get; set; } - - /// - /// 供应商名称 - /// - public string? Name { get; set; } - - /// - /// 供应商地址 - /// + public string Code { get; set; } = string.Empty; + public string Name { get; set; }= string.Empty; public string? Address { get; set; } - - /// - /// 电话 - /// public long? Phone { get; set; } - /// - /// 传真 - /// public string? Fax { get; set; } - /// - /// 邮箱 - /// public string? Email { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierGetListOutput.cs b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierGetListOutput.cs index 7513c005..188373e7 100644 --- a/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierGetListOutput.cs +++ b/Yi.Framework.Net6/Yi.Framework.DtoModel/ERP/Supplier/SupplierGetListOutput.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -9,32 +9,11 @@ namespace Yi.Framework.DtoModel.ERP.Supplier { public class SupplierGetListOutput: EntityDto { - /// - /// 供应商编码 - /// - public string Code { get; set; } - - /// - /// 供应商名称 - /// - public string Name { get; set; } - - /// - /// 供应商地址 - /// - public string Address { get; set; } - - /// - /// 电话 - /// - public long Phone { get; set; } - /// - /// 传真 - /// - public string Fax { get; set; } - /// - /// 邮箱 - /// - public string Email { get; set; } + public string Code { get; set; } = string.Empty; + public string Name { get; set; }= string.Empty; + public string? Address { get; set; } + public long? Phone { get; set; } + public string? Fax { get; set; } + public string? Email { get; set; } } } diff --git a/Yi.Framework.Net6/Yi.Framework.DtoModel/RABC/Student/ConstConfig/StudentConst.cs b/Yi.Framework.Net6/Yi.Framework.DtoModel/RABC/Student/ConstConfig/StudentConst.cs deleted file mode 100644 index 0344a48f..00000000 --- a/Yi.Framework.Net6/Yi.Framework.DtoModel/RABC/Student/ConstConfig/StudentConst.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Yi.Framework.DtoModel.RABC.Student.ConstConfig -{ - public class StudentConst - { - public const string 学生异常错误 = nameof(学生异常错误); - public const string 学生友好错误 = nameof(学生友好错误)+",状态码将返回200"; - } -} diff --git a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IStudentService.cs b/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IStudentService.cs deleted file mode 100644 index a51c3275..00000000 --- a/Yi.Framework.Net6/Yi.Framework.Interface/RABC/IStudentService.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Yi.Framework.DtoModel.RABC.Student; -using Yi.Framework.Interface.Base.Crud; - -namespace Yi.Framework.Interface.RABC -{ - public interface IStudentService : ICrudAppService - { - void GetError(); - } -} \ No newline at end of file diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/StudentEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/StudentEntity.cs deleted file mode 100644 index a56a52f2..00000000 --- a/Yi.Framework.Net6/Yi.Framework.Model/RABC/Entitys/StudentEntity.cs +++ /dev/null @@ -1,20 +0,0 @@ -using SqlSugar; -using System; -using Yi.Framework.Model.Base; - -namespace Yi.Framework.Model.RABC.Entitys -{ - [SugarTable("Student")] - public class StudentEntity : IEntity, IMultiTenant - { - public string? Name { get; set; } - public string? Remark { get; set; } - - [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)] - public Guid Id { get; set; } - - [SugarColumn(ColumnName = "TenantId")] - public Guid? TenantId { get; set; } - - } -} \ No newline at end of file diff --git a/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs index dbc3f6a7..92d7ce97 100644 --- a/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs +++ b/Yi.Framework.Net6/Yi.Framework.Model/RABC/SeedData/MenuSeed.cs @@ -100,13 +100,13 @@ namespace Yi.Framework.Model.RABC.SeedData Entitys.Add(swagger); - //业务功能 - MenuEntity business = new MenuEntity() + //BBS + MenuEntity bbs = new MenuEntity() { Id = SnowFlakeSingle.Instance.NextId(), - MenuName = "业务功能", + MenuName = "BBS", MenuType = MenuTypeEnum.Catalogue.GetHashCode(), - Router = "/business", + Router = "/bbs", IsShow = true, IsLink = false, MenuIcon = "international", @@ -114,22 +114,22 @@ namespace Yi.Framework.Model.RABC.SeedData ParentId = 0, IsDeleted = false }; - Entitys.Add(business); + Entitys.Add(bbs); //文章管理 MenuEntity article = new MenuEntity() { Id = SnowFlakeSingle.Instance.NextId(), MenuName = "文章管理", - PermissionCode = "business:article:list", + PermissionCode = "bbs:article:list", MenuType = MenuTypeEnum.Menu.GetHashCode(), Router = "article", IsShow = true, IsLink = false, IsCache = true, - Component = "business/article/index", + Component = "bbs/article/index", MenuIcon = "education", OrderNum = 100, - ParentId = business.Id, + ParentId = bbs.Id, IsDeleted = false }; Entitys.Add(article); @@ -138,7 +138,7 @@ namespace Yi.Framework.Model.RABC.SeedData { Id = SnowFlakeSingle.Instance.NextId(), MenuName = "文章查询", - PermissionCode = "business:article:query", + PermissionCode = "bbs:article:query", MenuType = MenuTypeEnum.Component.GetHashCode(), OrderNum = 100, ParentId = article.Id, @@ -150,7 +150,7 @@ namespace Yi.Framework.Model.RABC.SeedData { Id = SnowFlakeSingle.Instance.NextId(), MenuName = "文章新增", - PermissionCode = "business:article:add", + PermissionCode = "bbs:article:add", MenuType = MenuTypeEnum.Component.GetHashCode(), OrderNum = 100, ParentId = article.Id, @@ -162,7 +162,7 @@ namespace Yi.Framework.Model.RABC.SeedData { Id = SnowFlakeSingle.Instance.NextId(), MenuName = "文章修改", - PermissionCode = "business:article:edit", + PermissionCode = "bbs:article:edit", MenuType = MenuTypeEnum.Component.GetHashCode(), OrderNum = 100, ParentId = article.Id, @@ -174,7 +174,7 @@ namespace Yi.Framework.Model.RABC.SeedData { Id = SnowFlakeSingle.Instance.NextId(), MenuName = "文章删除", - PermissionCode = "business:article:remove", + PermissionCode = "bbs:article:remove", MenuType = MenuTypeEnum.Component.GetHashCode(), OrderNum = 100, ParentId = article.Id, @@ -182,9 +182,364 @@ namespace Yi.Framework.Model.RABC.SeedData }; Entitys.Add(articleRemove); + //ERP + MenuEntity erp = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "ERP", + MenuType = MenuTypeEnum.Catalogue.GetHashCode(), + Router = "/erp", + IsShow = true, + IsLink = false, + MenuIcon = "international", + OrderNum = 96, + ParentId = 0, + IsDeleted = false + }; + Entitys.Add(erp); + //供应商定义 + MenuEntity supplier = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "供应商定义", + PermissionCode = "erp:supplier:list", + MenuType = MenuTypeEnum.Menu.GetHashCode(), + Router = "supplier", + IsShow = true, + IsLink = false, + IsCache = true, + Component = "erp/supplier/index", + MenuIcon = "education", + OrderNum = 100, + ParentId = erp.Id, + IsDeleted = false + }; + Entitys.Add(supplier); + + MenuEntity supplierQuery = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "供应商查询", + PermissionCode = "erp:supplier:query", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = supplier.Id, + IsDeleted = false + }; + Entitys.Add(supplierQuery); + + MenuEntity supplierAdd = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "供应商新增", + PermissionCode = "erp:supplier:add", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = supplier.Id, + IsDeleted = false + }; + Entitys.Add(supplierAdd); + + MenuEntity supplierEdit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "供应商修改", + PermissionCode = "erp:supplier:edit", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = supplier.Id, + IsDeleted = false + }; + Entitys.Add(supplierEdit); + + MenuEntity supplierRemove = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "供应商删除", + PermissionCode = "erp:supplier:remove", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = supplier.Id, + IsDeleted = false + }; + Entitys.Add(supplierRemove); + + + //仓库定义 + MenuEntity warehouse = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "仓库定义", + PermissionCode = "erp:warehouse:list", + MenuType = MenuTypeEnum.Menu.GetHashCode(), + Router = "warehouse", + IsShow = true, + IsLink = false, + IsCache = true, + Component = "erp/warehouse/index", + MenuIcon = "education", + OrderNum = 100, + ParentId = erp.Id, + IsDeleted = false + }; + Entitys.Add(warehouse); + + MenuEntity warehouseQuery = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "仓库查询", + PermissionCode = "erp:warehouse:query", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = warehouse.Id, + IsDeleted = false + }; + Entitys.Add(warehouseQuery); + + MenuEntity warehouseAdd = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "仓库新增", + PermissionCode = "erp:warehouse:add", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = warehouse.Id, + IsDeleted = false + }; + Entitys.Add(warehouseAdd); + + MenuEntity warehouseEdit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "仓库修改", + PermissionCode = "erp:warehouse:edit", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = warehouse.Id, + IsDeleted = false + }; + Entitys.Add(warehouseEdit); + + MenuEntity warehouseRemove = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "仓库删除", + PermissionCode = "erp:warehouse:remove", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = warehouse.Id, + IsDeleted = false + }; + Entitys.Add(warehouseRemove); + + + //单位定义 + MenuEntity unit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "单位定义", + PermissionCode = "erp:unit:list", + MenuType = MenuTypeEnum.Menu.GetHashCode(), + Router = "unit", + IsShow = true, + IsLink = false, + IsCache = true, + Component = "erp/unit/index", + MenuIcon = "education", + OrderNum = 100, + ParentId = erp.Id, + IsDeleted = false + }; + Entitys.Add(unit); + + MenuEntity unitQuery = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "单位查询", + PermissionCode = "erp:unit:query", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = unit.Id, + IsDeleted = false + }; + Entitys.Add(unitQuery); + + MenuEntity unitAdd = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "单位新增", + PermissionCode = "erp:unit:add", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = unit.Id, + IsDeleted = false + }; + Entitys.Add(unitAdd); + + MenuEntity unitEdit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "单位修改", + PermissionCode = "erp:unit:edit", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = unit.Id, + IsDeleted = false + }; + Entitys.Add(unitEdit); + + MenuEntity unitRemove = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "单位删除", + PermissionCode = "erp:unit:remove", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = unit.Id, + IsDeleted = false + }; + Entitys.Add(unitRemove); + + + //物料定义 + MenuEntity material = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "物料定义", + PermissionCode = "erp:material:list", + MenuType = MenuTypeEnum.Menu.GetHashCode(), + Router = "material", + IsShow = true, + IsLink = false, + IsCache = true, + Component = "erp/material/index", + MenuIcon = "education", + OrderNum = 100, + ParentId = erp.Id, + IsDeleted = false + }; + Entitys.Add(material); + + MenuEntity materialQuery = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "物料查询", + PermissionCode = "erp:material:query", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = material.Id, + IsDeleted = false + }; + Entitys.Add(materialQuery); + + MenuEntity materialAdd = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "物料新增", + PermissionCode = "erp:material:add", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = material.Id, + IsDeleted = false + }; + Entitys.Add(materialAdd); + + MenuEntity materialEdit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "物料修改", + PermissionCode = "erp:material:edit", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = material.Id, + IsDeleted = false + }; + Entitys.Add(materialEdit); + + MenuEntity materialRemove = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "物料删除", + PermissionCode = "erp:material:remove", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = material.Id, + IsDeleted = false + }; + Entitys.Add(materialRemove); + + + //采购订单 + MenuEntity purchase = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "采购订单", + PermissionCode = "erp:purchase:list", + MenuType = MenuTypeEnum.Menu.GetHashCode(), + Router = "purchase", + IsShow = true, + IsLink = false, + IsCache = true, + Component = "erp/purchase/index", + MenuIcon = "education", + OrderNum = 100, + ParentId = erp.Id, + IsDeleted = false + }; + Entitys.Add(purchase); + + MenuEntity purchaseQuery = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "采购订单查询", + PermissionCode = "erp:purchase:query", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = purchase.Id, + IsDeleted = false + }; + Entitys.Add(purchaseQuery); + + MenuEntity purchaseAdd = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "采购订单新增", + PermissionCode = "erp:purchase:add", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = purchase.Id, + IsDeleted = false + }; + Entitys.Add(purchaseAdd); + + MenuEntity purchaseEdit = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "采购订单修改", + PermissionCode = "erp:purchase:edit", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = purchase.Id, + IsDeleted = false + }; + Entitys.Add(purchaseEdit); + + MenuEntity purchaseRemove = new MenuEntity() + { + Id = SnowFlakeSingle.Instance.NextId(), + MenuName = "采购订单删除", + PermissionCode = "erp:purchase:remove", + MenuType = MenuTypeEnum.Component.GetHashCode(), + OrderNum = 100, + ParentId = purchase.Id, + IsDeleted = false + }; + Entitys.Add(purchaseRemove); + + //Yi框架 MenuEntity guide = new MenuEntity() diff --git a/Yi.Framework.Net6/Yi.Framework.Service/RABC/StudentService.cs b/Yi.Framework.Net6/Yi.Framework.Service/RABC/StudentService.cs deleted file mode 100644 index a0fddf0a..00000000 --- a/Yi.Framework.Net6/Yi.Framework.Service/RABC/StudentService.cs +++ /dev/null @@ -1,47 +0,0 @@ -using AutoMapper; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Yi.Framework.Common.Exceptions; -using Yi.Framework.DtoModel.RABC.Student; -using Yi.Framework.DtoModel.RABC.Student.ConstConfig; -using Yi.Framework.Interface.RABC; -using Yi.Framework.Model.RABC.Entitys; -using Yi.Framework.Repository; -using Yi.Framework.Service.Base.Crud; - -namespace Yi.Framework.Service.RABC -{ - public class StudentService : CrudAppService, IStudentService - { - public void GetError() - { - throw new ApplicationException(StudentConst.学生异常错误); - } - public void GetError2() - { - throw new UserFriendlyException(StudentConst.学生友好错误); - } - - /// - /// 校验配置项是否已存在 - /// - /// - /// - /// - /// - //private async Task ValidateKeyAsync(string key, Guid? id = null) - //{ - // Expression> expression = e => e.Name == key; - // if (id.HasValue) - // { - // expression = expression.And(e => e.Id != id.Value); - // } - // var existsData = await Repository.GetListAsync(expression); - // if (existsData != null) - // { - // throw new UserFriendlyException(); - // } - //} - } -} \ No newline at end of file diff --git a/Yi.Framework.Net6/Yi.Framework.Template/Abstract/ModelTemplateProvider.cs b/Yi.Framework.Net6/Yi.Framework.Template/Abstract/ModelTemplateProvider.cs index 758cde8a..541867f4 100644 --- a/Yi.Framework.Net6/Yi.Framework.Template/Abstract/ModelTemplateProvider.cs +++ b/Yi.Framework.Net6/Yi.Framework.Template/Abstract/ModelTemplateProvider.cs @@ -15,7 +15,7 @@ namespace Yi.Framework.Template.Abstract AddIgnoreEntityField("Id", "TenantId"); } - private string entityPath; + private string entityPath=string.Empty; /// /// 实体路径,该类生成需要实体与模板两个同时构建成 diff --git a/Yi.Framework.Net6/Yi.Framework.WebCore/AspNetCoreExtensions/AutoMapperExtension.cs b/Yi.Framework.Net6/Yi.Framework.WebCore/AspNetCoreExtensions/AutoMapperExtension.cs index 11bc1c84..303667f0 100644 --- a/Yi.Framework.Net6/Yi.Framework.WebCore/AspNetCoreExtensions/AutoMapperExtension.cs +++ b/Yi.Framework.Net6/Yi.Framework.WebCore/AspNetCoreExtensions/AutoMapperExtension.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using System; using System.IO; -using Yi.Framework.DtoModel.RABC.Student.MapperConfig; using Yi.Framework.WebCore.Mapper; namespace Yi.Framework.WebCore.AspNetCoreExtensions diff --git a/Yi.Vue3.X.RuoYi/src/api/system/dept.js b/Yi.Vue3.X.RuoYi/src/api/system/dept.js index cf28c932..a504f725 100644 --- a/Yi.Vue3.X.RuoYi/src/api/system/dept.js +++ b/Yi.Vue3.X.RuoYi/src/api/system/dept.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询部门列表 -export function listDept(query) { +export function listData(query) { return request({ url: '/dept/SelctGetList', method: 'get', @@ -18,7 +18,7 @@ export function listDept(query) { // } // 查询部门详细 -export function getDept(deptId) { +export function getData(deptId) { return request({ url: '/dept/getById/' + deptId, method: 'get' @@ -26,7 +26,7 @@ export function getDept(deptId) { } // 新增部门 -export function addDept(data) { +export function addData(data) { return request({ url: '/dept/add', method: 'post', @@ -35,7 +35,7 @@ export function addDept(data) { } // 修改部门 -export function updateDept(data) { +export function updateData(data) { return request({ url: '/dept/update', method: 'put', @@ -44,7 +44,7 @@ export function updateDept(data) { } // 删除部门 -export function delDept(deptId) { +export function delData(deptId) { if("string"==typeof(deptId)) { deptId=[deptId]; diff --git a/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue b/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue index b96bb81c..75dbdf55 100644 --- a/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue +++ b/Yi.Vue3.X.RuoYi/src/views/system/dept/index.vue @@ -8,10 +8,10 @@ v-show="showSearch" label-width="68px" > - + 新增 @@ -69,7 +69,7 @@ icon="Edit" :disabled="single" @click="handleUpdate" - v-hasPermi="['business:article:edit']" + v-hasPermi="['business:dept:edit']" >修改 @@ -80,7 +80,7 @@ icon="Delete" :disabled="multiple" @click="handleDelete" - v-hasPermi="['business:article:remove']" + v-hasPermi="['business:dept:remove']" >删除 @@ -90,7 +90,7 @@ plain icon="Download" @click="handleExport" - v-hasPermi="['business:article:export']" + v-hasPermi="['business:dept:export']" >导出 @@ -102,21 +102,21 @@ 文章详情部门详情 修改 删除 @@ -196,8 +196,8 @@ - - + + @@ -236,14 +236,14 @@ delData, addData, updateData, - } from "@/api/business/articleApi"; + } from "@/api/system/dept"; import { ref } from "@vue/reactivity"; import { computed } from "@vue/runtime-core"; const { proxy } = getCurrentInstance(); const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); - const articleList = ref([]); + const deptList = ref([]); const open = ref(false); const loading = ref(true); const showSearch = ref(true); @@ -253,18 +253,18 @@ const total = ref(0); const title = ref(""); const dateRange = ref([]); - const articleDialogVisible=ref(false); - const articleId=ref(""); + const deptDialogVisible=ref(false); + const deptId=ref(""); const data = reactive({ form: {}, queryParams: { pageNum: 1, pageSize: 10, - title: undefined, + deptName: undefined, isDeleted: undefined, }, rules: { - title: [{ required: true, message: "文章标题不能为空", trigger: "blur" }], + deptName: [{ required: true, message: "部门标题不能为空", trigger: "blur" }], }, }); @@ -276,7 +276,7 @@ loading.value = true; listData(proxy.addDateRange(queryParams.value, dateRange.value)).then( (response) => { - articleList.value = response.data.data; + deptList.value = response.data.data; total.value = response.data.total; loading.value = false; } @@ -312,7 +312,7 @@ function handleAdd() { reset(); open.value = true; - title.value = "添加文章"; + title.value = "添加部门"; } /** 多选框选中数据 */ function handleSelectionChange(selection) { @@ -327,7 +327,7 @@ getData(id).then((response) => { form.value = response.data; open.value = true; - title.value = "修改文章类型"; + title.value = "修改部门类型"; }); } /** 提交按钮 */ @@ -354,7 +354,7 @@ function handleDelete(row) { const delIds = row.id || ids.value; proxy.$modal - .confirm('是否确认删除字典编号为"' + delIds + '"的数据项?') + .confirm('是否确认删除编号为"' + delIds + '"的数据项?') .then(function () { return delData(delIds); }) @@ -367,10 +367,10 @@ /** 导出按钮操作 */ function handleExport() {} - /** 打开文章详情 */ + /** 打开部门详情 */ function handleOpen(row){ - articleId.value=row.id; - articleDialogVisible.value=true; + deptId.value=row.id; + deptDialogVisible.value=true; } getList(); \ No newline at end of file diff --git a/Yi.Vue3.X.RuoYi/src/views/system/role/index.vue b/Yi.Vue3.X.RuoYi/src/views/system/role/index.vue index 3650904e..ecdff1c5 100644 --- a/Yi.Vue3.X.RuoYi/src/views/system/role/index.vue +++ b/Yi.Vue3.X.RuoYi/src/views/system/role/index.vue @@ -379,7 +379,7 @@ import { treeselect as menuTreeselect, listMenu, } from "@/api/system/menu"; -import { listDept, roleDeptTreeselect } from "@/api/system/dept"; +import { listData as listDept, roleDeptTreeselect } from "@/api/system/dept"; const router = useRouter(); const { proxy } = getCurrentInstance(); const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); diff --git a/Yi.Vue3.X.RuoYi/src/views/system/user/index.vue b/Yi.Vue3.X.RuoYi/src/views/system/user/index.vue index 5946e12a..427006df 100644 --- a/Yi.Vue3.X.RuoYi/src/views/system/user/index.vue +++ b/Yi.Vue3.X.RuoYi/src/views/system/user/index.vue @@ -239,7 +239,7 @@ import { getToken } from "@/utils/auth"; import { changeUserStatus, listUser, resetUserPwd, delUser, getUser, updateUser, addUser } from "@/api/system/user"; import { roleOptionselect } from "@/api/system/role"; import { postOptionselect } from "@/api/system/post"; -import { listDept } from "@/api/system/dept"; +import { listData as listDept } from "@/api/system/dept"; const router = useRouter(); diff --git a/Yi.Vue3.x.RuoYi/src/api/business/articleApi.js b/Yi.Vue3.x.RuoYi/src/api/bbs/articleApi.js similarity index 100% rename from Yi.Vue3.x.RuoYi/src/api/business/articleApi.js rename to Yi.Vue3.x.RuoYi/src/api/bbs/articleApi.js diff --git a/Yi.Vue3.x.RuoYi/src/views/business/article/index.vue b/Yi.Vue3.x.RuoYi/src/views/bbs/article/index.vue similarity index 100% rename from Yi.Vue3.x.RuoYi/src/views/business/article/index.vue rename to Yi.Vue3.x.RuoYi/src/views/bbs/article/index.vue