模板重新生成可空类型
This commit is contained in:
@@ -391,41 +391,6 @@
|
||||
<param name="ids"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Create(Yi.Framework.DtoModel.RABC.Student.StudentCreateInput)">
|
||||
<summary>
|
||||
增
|
||||
</summary>
|
||||
<param name="studentCreateInput"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.GetById(System.Guid)">
|
||||
<summary>
|
||||
查
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.GetLsit">
|
||||
<summary>
|
||||
查
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Del(System.Collections.Generic.List{System.Guid})">
|
||||
<summary>
|
||||
删
|
||||
</summary>
|
||||
<param name="ids"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Update(System.Guid,Yi.Framework.DtoModel.RABC.Student.StudentUpdateInput)">
|
||||
<summary>
|
||||
更
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<param name="studentUpdateInput"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:Yi.Framework.ApiMicroservice.Controllers.AccountController">
|
||||
<summary>
|
||||
账户管理
|
||||
|
||||
@@ -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<StudentController> _logger;
|
||||
private readonly IStudentService _studentService;
|
||||
public StudentController(ILogger<StudentController> logger, IStudentService studentService)
|
||||
{
|
||||
_logger = logger;
|
||||
_studentService = studentService;
|
||||
}
|
||||
|
||||
[HttpDelete]
|
||||
[Route("ErrorTest")]
|
||||
public Result<bool> ErrorTest()
|
||||
{
|
||||
_studentService.GetError();
|
||||
return Result<bool>.Success();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="studentCreateInput"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<Result<StudentGetOutput>> Create(StudentCreateInput studentCreateInput)
|
||||
{
|
||||
var result = await _studentService.CreateAsync(studentCreateInput);
|
||||
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("{id}")]
|
||||
public async Task<Result<StudentGetOutput>> GetById(Guid id)
|
||||
{
|
||||
var result = await _studentService.GetByIdAsync(id);
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<Result<List<StudentListOutput>>> GetLsit()
|
||||
{
|
||||
var result = await _studentService.GetListAsync();
|
||||
|
||||
return Result<List<StudentListOutput>>.Success().SetData(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ɾ
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete]
|
||||
public async Task<Result<bool>> Del(List<Guid> ids)
|
||||
{
|
||||
await _studentService.DeleteAsync(ids);
|
||||
return Result<bool>.Success();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="studentUpdateInput"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[Route("{id}")]
|
||||
public async Task<Result<StudentGetOutput>> Update(Guid id, StudentUpdateInput studentUpdateInput)
|
||||
{
|
||||
var result = await _studentService.UpdateAsync(id, studentUpdateInput);
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -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;
|
||||
|
||||
@@ -12,6 +12,6 @@ namespace Yi.Framework.Common.Models
|
||||
public long ParentId { get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
|
||||
public List<T> Children { get; set; }
|
||||
public List<T>? Children { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace Yi.Framework.Common.Models
|
||||
/// </summary>
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<object>
|
||||
|
||||
@@ -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<VueRouterModel> Children { get; set; }
|
||||
public List<VueRouterModel>? 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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Yi.Framework.Common.IOCOptions
|
||||
{
|
||||
public class SqlConnOptions
|
||||
{
|
||||
public string WriteUrl { get; set; }
|
||||
public List<string> ReadUrl { get; set; }
|
||||
public string WriteUrl { get; set; } = string.Empty;
|
||||
public List<string>? ReadUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Yi.Framework.Common.QueueModel
|
||||
/// <summary>
|
||||
/// sku ID 集合
|
||||
/// </summary>
|
||||
public List<long> SkuIdList { get; set; }
|
||||
public List<long>? SkuIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 尝试次数
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,14 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<NoWarn>1701;1702;CS8618</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<NoWarn>1701;1702;CS8618</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
|
||||
<PackageReference Include="EPPlus" Version="5.8.4" />
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Yi.Framework.DtoModel.Base.Dto
|
||||
{
|
||||
public class GiveRoleSetMenuDto
|
||||
{
|
||||
public List<long> RoleIds { get; set; }
|
||||
public List<long> MenuIds { get; set; }
|
||||
public List<long>? RoleIds { get; set; }
|
||||
public List<long>? MenuIds { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.Base.Dto
|
||||
{
|
||||
public class RoleInfoDto
|
||||
{
|
||||
public RoleEntity Role { get; set; }
|
||||
public List<long> DeptIds { get; set; }
|
||||
public List<long> MenuIds { get; set; }
|
||||
public RoleEntity Role { get; set; }=new ();
|
||||
public List<long> DeptIds { get; set; } = new ();
|
||||
public List<long> MenuIds { get; set; } = new ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Material
|
||||
{
|
||||
public class MaterialCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,9 @@ namespace Yi.Framework.DtoModel.ERP.Material
|
||||
{
|
||||
public class MaterialGetListOutput: EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Purchase
|
||||
{
|
||||
public class PurchaseGetListOutput: EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
|
||||
@@ -10,12 +10,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails
|
||||
{
|
||||
public class PurchaseDetailsCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -9,11 +9,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails
|
||||
{
|
||||
public class PurchaseDetailsGetListOutput: EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -10,8 +10,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit
|
||||
{
|
||||
public class UnitCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit
|
||||
{
|
||||
public class UnitGetListOutput: EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse
|
||||
{
|
||||
public class WarehouseCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse
|
||||
{
|
||||
public class WarehouseGetListOutput: EntityDto<long>
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<StudentCreateInput, StudentEntity>();
|
||||
CreateMap<StudentUpdateInput, StudentEntity>();
|
||||
CreateMap<StudentCreateUpdateInput, StudentEntity>();
|
||||
CreateMap<StudentEntity, StudentGetOutput>();
|
||||
CreateMap<StudentEntity, StudentListOutput>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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<Guid>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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<Guid>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BBS\" />
|
||||
<Folder Include="RABC\" />
|
||||
<Folder Include="Shop\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace Yi.Framework.DtoModel.ERP.Purchase
|
||||
{
|
||||
public class PurchaseUpdateInput : EntityDto<long>
|
||||
{
|
||||
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; }
|
||||
|
||||
@@ -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<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商编码
|
||||
/// </summary>
|
||||
public string? Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商名称
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商地址
|
||||
/// </summary>
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Name { get; set; }= string.Empty;
|
||||
public string? Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电话
|
||||
/// </summary>
|
||||
public long? Phone { get; set; }
|
||||
/// <summary>
|
||||
/// 传真
|
||||
/// </summary>
|
||||
public string? Fax { get; set; }
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
public string? Email { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商编码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商地址
|
||||
/// </summary>
|
||||
public string Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电话
|
||||
/// </summary>
|
||||
public long Phone { get; set; }
|
||||
/// <summary>
|
||||
/// 传真
|
||||
/// </summary>
|
||||
public string Fax { get; set; }
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
@@ -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<StudentGetOutput, StudentListOutput, Guid, StudentCreateInput, StudentUpdateInput>
|
||||
{
|
||||
void GetError();
|
||||
}
|
||||
}
|
||||
@@ -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<Guid>, 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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
|
||||
@@ -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<StudentEntity, StudentGetOutput, StudentListOutput, Guid, StudentCreateInput, StudentUpdateInput>, IStudentService
|
||||
{
|
||||
public void GetError()
|
||||
{
|
||||
throw new ApplicationException(StudentConst.学生异常错误);
|
||||
}
|
||||
public void GetError2()
|
||||
{
|
||||
throw new UserFriendlyException(StudentConst.学生友好错误);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 校验配置项是否已存在
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="UserFriendlyException"></exception>
|
||||
//private async Task ValidateKeyAsync(string key, Guid? id = null)
|
||||
//{
|
||||
// Expression<Func<StudentEntity, bool>> 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();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ namespace Yi.Framework.Template.Abstract
|
||||
AddIgnoreEntityField("Id", "TenantId");
|
||||
}
|
||||
|
||||
private string entityPath;
|
||||
private string entityPath=string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 实体路径,该类生成需要实体与模板两个同时构建成
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="文章标题" prop="title" >
|
||||
<el-form-item label="部门名称" prop="deptName" >
|
||||
<el-input
|
||||
v-model="queryParams.title"
|
||||
placeholder="请输入文章标题"
|
||||
v-model="queryParams.deptName"
|
||||
placeholder="请输入部门名称"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter="handleQuery"
|
||||
@@ -58,7 +58,7 @@
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['business:article:add']"
|
||||
v-hasPermi="['business:dept:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
@@ -69,7 +69,7 @@
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['business:article:edit']"
|
||||
v-hasPermi="['business:dept:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
@@ -80,7 +80,7 @@
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['business:article:remove']"
|
||||
v-hasPermi="['business:dept:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
@@ -90,7 +90,7 @@
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['business:article:export']"
|
||||
v-hasPermi="['business:dept:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
@@ -102,21 +102,21 @@
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="articleList"
|
||||
:data="deptList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
|
||||
<el-table-column
|
||||
label="文章标题"
|
||||
label="部门标题"
|
||||
align="center"
|
||||
prop="title"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="文章部分内容"
|
||||
label="部门部分内容"
|
||||
align="left"
|
||||
prop="content"
|
||||
:show-overflow-tooltip="true"
|
||||
@@ -165,21 +165,21 @@
|
||||
icon="Edit"
|
||||
@click="handleOpen(scope.row)"
|
||||
|
||||
>文章详情</el-button
|
||||
>部门详情</el-button
|
||||
>
|
||||
|
||||
<el-button
|
||||
type="text"
|
||||
icon="Edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['business:article:edit']"
|
||||
v-hasPermi="['business:dept:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['business:article:remove']"
|
||||
v-hasPermi="['business:dept:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
@@ -196,8 +196,8 @@
|
||||
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="dataRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="文章标题" prop="title">
|
||||
<el-input v-model="form.title" placeholder="请输入文章标题" />
|
||||
<el-form-item label="部门标题" prop="title">
|
||||
<el-input v-model="form.title" placeholder="请输入部门标题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="isDeleted">
|
||||
<el-radio-group v-model="form.isDeleted">
|
||||
@@ -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();
|
||||
</script>
|
||||
@@ -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");
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user