From e41df4312f47e0f0471e3fb0561b1b5c81bc1942 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Thu, 25 Apr 2024 17:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=B9=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChargeRequests/ChargeRequestDto.cs | 12 ++++++ .../ChargeRequests/CreateChargeRequestDto.cs | 18 +++++++++ .../ChargeRequests/ChargeRequestAppService.cs | 40 +++++++++++++++++++ .../ChargeRequestAsbitem.cs | 2 +- 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 src/Shentun.Peis.Application.Contracts/ChargeRequests/ChargeRequestDto.cs create mode 100644 src/Shentun.Peis.Application.Contracts/ChargeRequests/CreateChargeRequestDto.cs create mode 100644 src/Shentun.Peis.Application/ChargeRequests/ChargeRequestAppService.cs diff --git a/src/Shentun.Peis.Application.Contracts/ChargeRequests/ChargeRequestDto.cs b/src/Shentun.Peis.Application.Contracts/ChargeRequests/ChargeRequestDto.cs new file mode 100644 index 0000000..994ffcc --- /dev/null +++ b/src/Shentun.Peis.Application.Contracts/ChargeRequests/ChargeRequestDto.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Shentun.Peis.ChargeRequests +{ + public class ChargeRequestDto + { + public Guid Id { get; set; } + public string ChargeRequestNo { get; set; } + } +} diff --git a/src/Shentun.Peis.Application.Contracts/ChargeRequests/CreateChargeRequestDto.cs b/src/Shentun.Peis.Application.Contracts/ChargeRequests/CreateChargeRequestDto.cs new file mode 100644 index 0000000..0e141e0 --- /dev/null +++ b/src/Shentun.Peis.Application.Contracts/ChargeRequests/CreateChargeRequestDto.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Shentun.Peis.ChargeRequests +{ + public class CreateChargeRequestDto + { + public Guid PatientRegisterId { get; set; } + public List RegisterCheckAsbitems { get; set; } + + } + + public class CreateChargeRequestAsbitemDto + { + public Guid RegisterCheckAsbitemId { get; set; } + } +} diff --git a/src/Shentun.Peis.Application/ChargeRequests/ChargeRequestAppService.cs b/src/Shentun.Peis.Application/ChargeRequests/ChargeRequestAppService.cs new file mode 100644 index 0000000..c2bbae4 --- /dev/null +++ b/src/Shentun.Peis.Application/ChargeRequests/ChargeRequestAppService.cs @@ -0,0 +1,40 @@ +using Microsoft.AspNetCore.Mvc; +using Shentun.Peis.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Services; +using Volo.Abp.Domain.Repositories; + +namespace Shentun.Peis.ChargeRequests +{ + public class ChargeRequestAppService: ApplicationService + { + private readonly IRepository _patientRegisterRepository; + private readonly IRepository _registerCheckRepository; + private readonly IRepository _registerCheckAsbitemRepository; + public ChargeRequestAppService( + IRepository patientRegisterRepository, + IRepository registerCheckRepository, + IRepository registerCheckAsbitemRepository) + { + _patientRegisterRepository = patientRegisterRepository; + _registerCheckRepository = registerCheckRepository; + _registerCheckAsbitemRepository = registerCheckAsbitemRepository; + } + /// + /// + /// + /// + /// + [HttpPost("api/app/ChargeRequest/Create")] + public async Task CreateAsync(CreateChargeRequestDto input) + { + ChargeRequestDto result = new ChargeRequestDto(); + + return result; + } + } +} diff --git a/src/Shentun.Peis.Domain/ChargeRequestAsbitems/ChargeRequestAsbitem.cs b/src/Shentun.Peis.Domain/ChargeRequestAsbitems/ChargeRequestAsbitem.cs index c43ad3b..75ae880 100644 --- a/src/Shentun.Peis.Domain/ChargeRequestAsbitems/ChargeRequestAsbitem.cs +++ b/src/Shentun.Peis.Domain/ChargeRequestAsbitems/ChargeRequestAsbitem.cs @@ -55,7 +55,7 @@ namespace Shentun.Peis.Models public string ConcurrencyStamp { get; set; } [ForeignKey(nameof(AsbitemId))] - [InverseProperty("ChargeRequestAsbitem")] + [InverseProperty("ChargeRequestAsbitems")] public virtual Asbitem Asbitem { get; set; } = null!; [ForeignKey(nameof(ChargeRequestId))]