diff --git a/src/Shentun.Peis.Domain/InvoiceApplys/InvoiceApply.cs b/src/Shentun.Peis.Domain/InvoiceApplys/InvoiceApply.cs
new file mode 100644
index 00000000..bda942e1
--- /dev/null
+++ b/src/Shentun.Peis.Domain/InvoiceApplys/InvoiceApply.cs
@@ -0,0 +1,128 @@
+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;
+using Volo.Abp.Domain.Entities.Auditing;
+
+namespace Shentun.Peis.Models
+{
+ ///
+ /// 发票申请
+ ///
+ [Table("invoice_apply")]
+ public class InvoiceApply : AuditedEntity, IHasConcurrencyStamp
+ {
+ public InvoiceApply() { }
+
+ public InvoiceApply(Guid id) : base(id)
+ {
+ }
+
+ ///
+ /// 单位编号
+ ///
+ [Column("customer_org_id")]
+ public Guid CustomerOrgId { get; set; }
+
+
+
+ ///
+ ///客户单位登记ID 体检次数
+ ///
+ [Column("customer_org_register_id")]
+ public Guid CustomerOrgRegisterId { get; set; }
+
+ ///
+ /// 业务员
+ ///
+ [Column("sales_person")]
+ [StringLength(50)]
+ public string SalesPerson { get; set; }
+
+ ///
+ /// 申请时间
+ ///
+ [Column("apply_time")]
+ public DateTime? ApplyTime { get; set; }
+
+
+ ///
+ /// 申请金额
+ ///
+ [Column("apply_amount")]
+ public decimal ApplyAmount { get; set; }
+
+
+ ///
+ /// 开票名称
+ ///
+ [Column("invoice_name")]
+ [StringLength(100)]
+ public string InvoiceName { get; set; }
+
+ ///
+ /// 国家组织机构代码
+ ///
+ [Column("country_org_code")]
+ [StringLength(30)]
+ public string CountryOrgCode { get; set; }
+
+ ///
+ /// 业务银行
+ ///
+ [Column("bank")]
+ [StringLength(100)]
+ public string Bank { get; set; }
+
+
+ ///
+ /// 银行帐号
+ ///
+ [Column("accounts")]
+ [StringLength(100)]
+ public string Accounts { get; set; }
+
+ ///
+ /// 联系人
+ ///
+ [Column("contact")]
+ [StringLength(30)]
+ public string Contact { get; set; }
+
+ ///
+ /// 联系电话
+ ///
+ [Column("contact_phone")]
+ [StringLength(20)]
+ public string ContactPhone { get; set; }
+
+ ///
+ /// 是否完成开票
+ ///
+ [Column("is_complete_invoicing")]
+ public char IsCompleteInvoicing { get; set; }
+
+ ///
+ /// 是否完成收款
+ ///
+ [Column("is_complete_payment")]
+ public char IsCompletePayment { get; set; }
+
+ ///
+ /// 备注
+ ///
+ [Column("remark")]
+ [StringLength(200)]
+ public string Remark { get; set; }
+
+ [Column("concurrency_stamp")]
+ public string ConcurrencyStamp { get; set; }
+
+
+
+ }
+}
diff --git a/src/Shentun.Peis.Domain/InvoiceRecords/InvoiceRecord.cs b/src/Shentun.Peis.Domain/InvoiceRecords/InvoiceRecord.cs
new file mode 100644
index 00000000..3a17646c
--- /dev/null
+++ b/src/Shentun.Peis.Domain/InvoiceRecords/InvoiceRecord.cs
@@ -0,0 +1,65 @@
+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;
+using Volo.Abp.Domain.Entities.Auditing;
+
+namespace Shentun.Peis.Models
+{
+
+ ///
+ /// 开票记录
+ ///
+ [Table("invoice_record")]
+ public class InvoiceRecord : AuditedEntity, IHasConcurrencyStamp
+ {
+ public InvoiceRecord() { }
+
+ public InvoiceRecord(Guid id) : base(id)
+ {
+ }
+
+ ///
+ ///发票申请表id
+ ///
+ [Column("invoice_apply_id")]
+ public Guid InvoiceApplyId { get; set; }
+
+ ///
+ /// 开票人
+ ///
+ [Column("invoice_person")]
+ [StringLength(50)]
+ public string InvoicePerson { get; set; }
+
+ ///
+ /// 开票时间
+ ///
+ [Column("invoice_time")]
+ public DateTime? InvoiceTime { get; set; }
+
+
+ ///
+ /// 开票金额
+ ///
+ [Column("invoice_amount")]
+ public decimal InvoiceAmount { get; set; }
+
+ ///
+ /// 备注
+ ///
+ [Column("remark")]
+ [StringLength(200)]
+ public string Remark { get; set; }
+
+ [Column("concurrency_stamp")]
+ public string ConcurrencyStamp { get; set; }
+
+
+
+ }
+}
diff --git a/src/Shentun.Peis.Domain/PaymentRecords/PaymentRecord.cs b/src/Shentun.Peis.Domain/PaymentRecords/PaymentRecord.cs
new file mode 100644
index 00000000..6bf84744
--- /dev/null
+++ b/src/Shentun.Peis.Domain/PaymentRecords/PaymentRecord.cs
@@ -0,0 +1,96 @@
+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;
+using Volo.Abp.Domain.Entities.Auditing;
+
+namespace Shentun.Peis.Models
+{
+ ///
+ /// 收款记录
+ ///
+ [Table("payment_record")]
+ public class PaymentRecord : AuditedEntity, IHasConcurrencyStamp
+ {
+ public PaymentRecord() { }
+
+ public PaymentRecord(Guid id) : base(id)
+ {
+ }
+
+ ///
+ ///发票申请表id
+ ///
+ [Column("invoice_apply_id")]
+ public Guid InvoiceApplyId { get; set; }
+
+ ///
+ /// 付款账户
+ ///
+ [Column("payment_account")]
+ [StringLength(50)]
+ public string PaymentAccount { get; set; }
+
+ ///
+ /// 付款银行
+ ///
+ [Column("payment_bank")]
+ [StringLength(50)]
+ public string PaymentBank { get; set; }
+
+
+ ///
+ /// 付款金额
+ ///
+ [Column("payment_amount")]
+ public decimal PaymentAmount { get; set; }
+
+
+ ///
+ /// 付款时间
+ ///
+ [Column("payment_time")]
+ public DateTime? PaymentTime { get; set; }
+
+
+
+ ///
+ /// 收款账户
+ ///
+ [Column("collection_account")]
+ [StringLength(50)]
+ public string CollectionAccount { get; set; }
+
+ ///
+ /// 收款银行
+ ///
+ [Column("collection_bank")]
+ [StringLength(50)]
+ public string CollectionBank { get; set; }
+
+
+ ///
+ /// 交易流水号
+ ///
+ [Column("Transaction_Id")]
+ [StringLength(30)]
+ public string TransactionId{ get; set; }
+
+ ///
+ /// 备注
+ ///
+ [Column("remark")]
+ [StringLength(200)]
+ public string Remark { get; set; }
+
+ [Column("concurrency_stamp")]
+ public string ConcurrencyStamp { get; set; }
+
+
+
+ }
+}
diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceApplys/InvoiceApplyDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceApplys/InvoiceApplyDbMapping.cs
new file mode 100644
index 00000000..ecdb2879
--- /dev/null
+++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceApplys/InvoiceApplyDbMapping.cs
@@ -0,0 +1,41 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Metadata.Builders;
+using Shentun.Peis.EntityFrameworkCore;
+using Shentun.Peis.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Shentun.Peis.DbMapping
+{
+ internal class InvoiceApplyDbMapping : IEntityTypeConfiguration
+ {
+ public void Configure(EntityTypeBuilder entity)
+ {
+ entity.HasComment("发票申请");
+ entity.Property(t => t.CustomerOrgId).HasComment("单位编号").IsRequired();
+ entity.Property(t => t.CustomerOrgRegisterId).HasComment("单位体检次数id").IsRequired();
+ entity.Property(t => t.SalesPerson).HasComment("业务员");
+ entity.Property(t => t.ApplyTime).HasComment("申请时间");
+ entity.Property(t => t.ApplyAmount).HasComment("申请金额").IsRequired();
+ entity.Property(t => t.InvoiceName).HasComment("开票名称");
+ entity.Property(t => t.CountryOrgCode).HasComment("税号");
+ entity.Property(t => t.Bank).HasComment("业务银行");
+ entity.Property(t => t.Accounts).HasComment("银行帐号");
+ entity.Property(t => t.Contact).HasComment("联系人");
+ entity.Property(t => t.ContactPhone).HasComment("联系电话");
+ entity.Property(t => t.IsCompleteInvoicing).HasComment("是否完成开票").IsRequired().HasDefaultValueSql("'N'");
+ entity.Property(t => t.IsCompletePayment).HasComment("是否完成收款").IsRequired().HasDefaultValueSql("'N'");
+ entity.Property(t => t.Remark).HasComment("备注");
+
+
+ entity.Property(e => e.Id)
+ .IsFixedLength()
+ .HasComment("编号").HasColumnName("id");
+
+ entity.ConfigureByConvention();
+ }
+ }
+}
diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceRecords/InvoiceRecordDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceRecords/InvoiceRecordDbMapping.cs
new file mode 100644
index 00000000..8e4ad5d8
--- /dev/null
+++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/InvoiceRecords/InvoiceRecordDbMapping.cs
@@ -0,0 +1,33 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Metadata.Builders;
+using Shentun.Peis.EntityFrameworkCore;
+using Shentun.Peis.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Shentun.Peis.DbMapping
+{
+
+ internal class InvoiceRecordDbMapping : IEntityTypeConfiguration
+ {
+ public void Configure(EntityTypeBuilder entity)
+ {
+ entity.HasComment("开票记录");
+ entity.Property(t => t.InvoiceApplyId).HasComment("发票申请表id").IsRequired();
+ entity.Property(t => t.InvoicePerson).HasComment("开票人");
+ entity.Property(t => t.InvoiceTime).HasComment("开票时间");
+ entity.Property(t => t.InvoiceAmount).HasComment("开票金额").IsRequired();
+ entity.Property(t => t.Remark).HasComment("备注");
+
+
+ entity.Property(e => e.Id)
+ .IsFixedLength()
+ .HasComment("编号").HasColumnName("id");
+
+ entity.ConfigureByConvention();
+ }
+ }
+}
diff --git a/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PaymentRecords/PaymentRecordDbMapping.cs b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PaymentRecords/PaymentRecordDbMapping.cs
new file mode 100644
index 00000000..29f6ecc2
--- /dev/null
+++ b/src/Shentun.Peis.EntityFrameworkCore/DbMapping/PaymentRecords/PaymentRecordDbMapping.cs
@@ -0,0 +1,36 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Metadata.Builders;
+using Shentun.Peis.EntityFrameworkCore;
+using Shentun.Peis.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Shentun.Peis.DbMapping
+{
+ internal class PaymentRecordDbMapping : IEntityTypeConfiguration
+ {
+ public void Configure(EntityTypeBuilder entity)
+ {
+ entity.HasComment("收款记录");
+ entity.Property(t => t.InvoiceApplyId).HasComment("发票申请表id").IsRequired();
+ entity.Property(t => t.PaymentAccount).HasComment("付款账户");
+ entity.Property(t => t.PaymentBank).HasComment("付款银行");
+ entity.Property(t => t.PaymentAmount).HasComment("付款金额").IsRequired();
+ entity.Property(t => t.PaymentTime).HasComment("付款时间");
+ entity.Property(t => t.CollectionAccount).HasComment("收款账户");
+ entity.Property(t => t.CollectionBank).HasComment("收款银行");
+ entity.Property(t => t.TransactionId).HasComment("交易流水号");
+ entity.Property(t => t.Remark).HasComment("备注");
+
+
+ entity.Property(e => e.Id)
+ .IsFixedLength()
+ .HasComment("编号").HasColumnName("id");
+
+ entity.ConfigureByConvention();
+ }
+ }
+}
diff --git a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
index 1518e0d8..1b41cff8 100644
--- a/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
+++ b/src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
@@ -409,6 +409,11 @@ public class PeisDbContext :
public DbSet GiveUpCheckTemplates { get; set; } = null!;
+ public DbSet InvoiceApplys { get; set; } = null!;
+
+ public DbSet InvoiceRecords { get; set; } = null!;
+
+ public DbSet PaymentRecords { get; set; } = null!;
public PeisDbContext(DbContextOptions options)
: base(options)
{
@@ -672,7 +677,10 @@ public class PeisDbContext :
.ApplyConfiguration(new InterfaceSendLogDbMapping())
.ApplyConfiguration(new PreCheckAsbitemDbMapping())
.ApplyConfiguration(new InformedConsentTemplateDbMapping())
- .ApplyConfiguration(new GiveUpCheckTemplateDbMapping());
+ .ApplyConfiguration(new GiveUpCheckTemplateDbMapping())
+ .ApplyConfiguration(new InvoiceApplyDbMapping())
+ .ApplyConfiguration(new PaymentRecordDbMapping())
+ .ApplyConfiguration(new InvoiceRecordDbMapping());
#endregion