15 changed files with 16401 additions and 38 deletions
-
4src/Shentun.Peis.Application.Contracts/ThirdMedicalCenters/CreateThirdMedicalCenterDto.cs
-
19src/Shentun.Peis.Application.Contracts/ThirdMedicalCenters/SetThirdMedicalCenterContainCustomerOrgGroupInputDto.cs
-
6src/Shentun.Peis.Application.Contracts/ThirdMedicalCenters/ThirdMedicalCenterDto.cs
-
3src/Shentun.Peis.Application.Contracts/ThirdMedicalCenters/ThirdMedicalCenterListInputDto.cs
-
4src/Shentun.Peis.Application.Contracts/ThirdMedicalCenters/UpdateThirdMedicalCenterDto.cs
-
35src/Shentun.Peis.Application/ThirdMedicalCenters/ThirdMedicalCenterAppService.cs
-
47src/Shentun.Peis.Domain/ThirdMedicalCenterDetails/ThirdMedicalCenterDetail.cs
-
10src/Shentun.Peis.Domain/ThirdMedicalCenters/ThirdMedicalCenter.cs
-
12src/Shentun.Peis.Domain/ThirdMedicalCenters/ThirdMedicalCenterManager.cs
-
34src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdMedicalCenterDetails/ThirdMedicalCenterDetailDbMapping.cs
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/ThirdMedicalCenters/ThirdMedicalCenterDbMapping.cs
-
5src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
-
16180src/Shentun.Peis.EntityFrameworkCore/Migrations/20241122022631_add_third_medical_center_detail.Designer.cs
-
45src/Shentun.Peis.EntityFrameworkCore/Migrations/20241122022631_add_third_medical_center_detail.cs
-
33src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
@ -0,0 +1,19 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.ThirdMedicalCenters |
||||
|
{ |
||||
|
public class SetThirdMedicalCenterContainCustomerOrgGroupInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 第三方体检中心ID
|
||||
|
/// </summary>
|
||||
|
public Guid ThirdMedicalCenterId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单位分组id集合
|
||||
|
/// </summary>
|
||||
|
public List<Guid> CustomerOrgGroupIds { get; set; } = new List<Guid>(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,47 @@ |
|||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
|
namespace Shentun.Peis.Models |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分院对应的分组
|
||||
|
/// </summary>
|
||||
|
[Table("third_medical_center_detail")] |
||||
|
public class ThirdMedicalCenterDetail : Entity, IHasConcurrencyStamp |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分院id 第三方体检中心id
|
||||
|
/// </summary>
|
||||
|
[Key] |
||||
|
[Column("third_medical_center_id")] |
||||
|
public Guid ThirdMedicalCenterId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单位分组ID
|
||||
|
/// </summary>
|
||||
|
[Column("customer_org_group_id")] |
||||
|
[Key] |
||||
|
public Guid CustomerOrgGroupId { get; set; } |
||||
|
|
||||
|
|
||||
|
[Column("concurrency_stamp")] |
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public override object[] GetKeys() |
||||
|
{ |
||||
|
return new object[] { ThirdMedicalCenterId, CustomerOrgGroupId }; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,34 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Shentun.Peis.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Shentun.Peis.DbMapping |
||||
|
{ |
||||
|
|
||||
|
internal class ThirdMedicalCenterDetailDbMapping : IEntityTypeConfiguration<ThirdMedicalCenterDetail> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<ThirdMedicalCenterDetail> entity) |
||||
|
{ |
||||
|
|
||||
|
entity.HasKey(e => new { e.ThirdMedicalCenterId, e.CustomerOrgGroupId }) |
||||
|
.HasName("pk_third_medical_center_detail"); |
||||
|
|
||||
|
entity.HasComment("分院对应的分组"); |
||||
|
|
||||
|
entity.Property(t => t.ThirdMedicalCenterId).HasComment("分院ID").IsRequired().IsFixedLength(); ; |
||||
|
|
||||
|
entity.Property(e => e.CustomerOrgGroupId).HasComment("单位分组ID").IsFixedLength().IsRequired(); |
||||
|
|
||||
|
|
||||
|
entity.ConfigureByConvention(); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
16180
src/Shentun.Peis.EntityFrameworkCore/Migrations/20241122022631_add_third_medical_center_detail.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,45 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class add_third_medical_center_detail : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "customer_org_group_id", |
||||
|
table: "third_medical_center"); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "third_medical_center_detail", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
third_medical_center_id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "分院ID"), |
||||
|
customer_org_group_id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "单位分组ID"), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("pk_third_medical_center_detail", x => new { x.third_medical_center_id, x.customer_org_group_id }); |
||||
|
}, |
||||
|
comment: "分院对应的分组"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "third_medical_center_detail"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<Guid>( |
||||
|
name: "customer_org_group_id", |
||||
|
table: "third_medical_center", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
||||
|
comment: "单位分组ID"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue