DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
4e38f18d40
  1. 40
      src/Shentun.Peis.Application.Contracts/CustomerOrgs/CustomerOrgTreeChildDto.cs
  2. 2
      src/Shentun.Peis.Application.Contracts/PatientRegisters/UpdatePatientRegisterAuditorDoctorDto.cs
  3. 20
      src/Shentun.Peis.Application.Contracts/ThirdPartyPublicInterfaces/UpdateCheckNoInputDto.cs
  4. 50
      src/Shentun.Peis.Application/CustomerOrgs/CustomerOrgAppService.cs
  5. 43
      src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
  6. 8
      src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs
  7. 31
      src/Shentun.Peis.Application/Reports/ReportAppService.cs
  8. 33
      src/Shentun.Peis.Application/ThirdPartyPublicInterfaces/ThirdPartyPublicInterfaceAppService.cs
  9. 18
      src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs
  10. 7
      src/Shentun.Peis.Domain/CustomerOrgs/CustomerOrg.cs
  11. 53
      src/Shentun.Peis.Domain/CustomerOrgs/CustomerOrgManager.cs
  12. 14964
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605024928_init20240605001.Designer.cs
  13. 52
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605024928_init20240605001.cs
  14. 14969
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605134759_init20240605002.Designer.cs
  15. 26
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605134759_init20240605002.cs
  16. 24
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
  17. 21
      src/Shentun.Peis.HttpApi.Host/Filter/CustomerActionFilterAttribute.cs
  18. 2
      src/Shentun.Peis.HttpApi.Host/Filter/CustomerExceptionFilterAttribute.cs

40
src/Shentun.Peis.Application.Contracts/CustomerOrgs/CustomerOrgTreeChildDto.cs

@ -0,0 +1,40 @@
using Shentun.Peis.OrganizationUnits;
using System;
using System.Collections.Generic;
using System.Text;
namespace Shentun.Peis.CustomerOrgs
{
public class CustomerOrgTreeChildDto
{
//组织Id
public Guid Id { get; set; }
//组织名称
public string DisplayName { get; set; }
//父节点Id
public Guid? ParentId { get; set; }
/// <summary>
/// 用来做递归的 新用法
/// </summary>
public string Code { get; set; }
/// <summary>
/// 短名称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public string CustomerOrgCode { get; set; }
/// <summary>
/// 拼音简码
/// </summary>
public string SimpleCode { get; set; }
public int DisplayOrder { get; set; }
public List<CustomerOrgTreeChildDto> TreeChildren { get; set; }
}
}

2
src/Shentun.Peis.Application.Contracts/PatientRegisters/UpdatePatientRegisterAuditorDoctorDto.cs

@ -14,7 +14,7 @@ namespace Shentun.Peis.PatientRegisters
/// <summary>
/// 审核医生(不传默认为当前用户)
/// </summary>
public string? AuditDoctor { get; set; }
public string? AuditDoctorId { get; set; }
/// <summary>
/// 审核日期(格式:2023-07-18) 空值跟null取当前日期
/// </summary>

20
src/Shentun.Peis.Application.Contracts/ThirdPartyPublicInterfaces/UpdateCheckNoInputDto.cs

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Shentun.Peis.ThirdPartyPublicInterfaces
{
public class UpdateCheckNoInputDto
{
/// <summary>
/// 体检编号
/// </summary>
public string tjbh { get; set; }
/// <summary>
/// 1 登记 0 取消登记
/// </summary>
public string zxpb { get; set; }
}
}

50
src/Shentun.Peis.Application/CustomerOrgs/CustomerOrgAppService.cs

@ -278,27 +278,56 @@ namespace Shentun.Peis.CustomerOrgs
/// <param name="Filter">名字搜索,支持模糊查找</param>
/// <returns></returns>
[HttpGet("api/app/customerorg/getbycodeall")]
public async Task<List<TreeChildViewDto>> GetByCodeAllAsync(string Filter, int IsHidePerson = 0)
public async Task<List<CustomerOrgTreeChildDto>> GetByCodeAllAsync(string Filter, int IsHidePerson = 0)
{
var dataList = await Repository.GetListAsync();
List<CustomerOrgTreeChildDto> result = new List<CustomerOrgTreeChildDto>();
var customerOrgPerson = await Repository.FirstOrDefaultAsync(f => f.Id == GuidFlag.PersonCustomerOrgId);
var dataList = (await Repository.GetQueryableAsync());
if (!string.IsNullOrEmpty(Filter))
dataList = dataList.Where(m => m.DisplayName.Contains(Filter) || m.ShortName.Contains(Filter)).ToList();
dataList = dataList.Where(m => m.DisplayName.Contains(Filter) || m.ShortName.Contains(Filter));
if (IsHidePerson == 1)
{
dataList = dataList.Where(m => m.Id != GuidFlag.PersonCustomerOrgId).ToList();
dataList = dataList.Where(m => m.Id != GuidFlag.PersonCustomerOrgId);
}
else
{
if (customerOrgPerson != null)
{
result.Add(new CustomerOrgTreeChildDto
{
Code = customerOrgPerson.PathCode,
CustomerOrgCode = customerOrgPerson.CustomerOrgCode,
DisplayName = customerOrgPerson.DisplayName,
DisplayOrder = customerOrgPerson.DisplayOrder,
Id = customerOrgPerson.Id,
ParentId = customerOrgPerson.ParentId,
ShortName = customerOrgPerson.ShortName,
SimpleCode = customerOrgPerson.SimpleCode,
TreeChildren = null
});
}
}
var items = from p in dataList.OrderBy(o => o.DisplayOrder)
select new TreeChildViewDto()
var items = from p in dataList.Where(m => m.Id != GuidFlag.PersonCustomerOrgId).OrderByDescending(o => o.DisplayOrder)
select new CustomerOrgTreeChildDto()
{
Id = p.Id,
ParentId = p.ParentId,
Code = p.PathCode,
DisplayName = p.DisplayName,
SimpleCode = p.SimpleCode,
ShortName = p.ShortName
ShortName = p.ShortName,
CustomerOrgCode = p.CustomerOrgCode
};
return GetTree(items.ToList(), 0, "");
var customerOrgTreeChildList = GetTree(items.ToList(), 0, "");
result.AddRange(customerOrgTreeChildList);
return result;
}
/// <summary>
@ -308,12 +337,12 @@ namespace Shentun.Peis.CustomerOrgs
/// <param name="deep"></param>
/// <param name="prefix"></param>
/// <returns></returns>
private List<TreeChildViewDto> GetTree(List<TreeChildViewDto> items, int deep, string prefix)
private List<CustomerOrgTreeChildDto> GetTree(List<CustomerOrgTreeChildDto> items, int deep, string prefix)
{
return (from p in items
where p.Code.StartsWith(prefix) && p.Code.Count(a => a == '.') == deep
let subs = GetTree(items, deep + 1, p.Code)
select new TreeChildViewDto()
select new CustomerOrgTreeChildDto()
{
Id = p.Id,
ParentId = p.ParentId,
@ -321,6 +350,7 @@ namespace Shentun.Peis.CustomerOrgs
DisplayName = p.DisplayName,
SimpleCode = p.SimpleCode,
ShortName = p.ShortName,
CustomerOrgCode = p.CustomerOrgCode,
TreeChildren = subs.ToList()
}
).ToList();

43
src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs

@ -3114,24 +3114,24 @@ namespace Shentun.Peis.DataMigrations
foreach (var item in TempDate)
{
using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
{
{
#region 修复建议头ID
var sumDiagnosisList = await _sumDiagnosisRepository.GetListAsync(m => m.PatientRegisterId == item.Id);
foreach (var sumDiagnosis in sumDiagnosisList)
{
var isSumSuggestionHeaderId = await _sumSuggestionHeaderRepository.CountAsync(c => c.Id == sumDiagnosis.SumSuggestionHeaderId);
if (isSumSuggestionHeaderId == 0)
foreach (var sumDiagnosis in sumDiagnosisList)
{
var sumSuggestionContentEnt = await _sumSuggestionContentRepository.FirstOrDefaultAsync(m => m.Id == sumDiagnosis.SumSuggestionHeaderId);
if (sumSuggestionContentEnt != null)
var isSumSuggestionHeaderId = await _sumSuggestionHeaderRepository.CountAsync(c => c.Id == sumDiagnosis.SumSuggestionHeaderId);
if (isSumSuggestionHeaderId == 0)
{
sumDiagnosis.SumSuggestionHeaderId = sumSuggestionContentEnt.SumSuggestionHeaderId;
var sumSuggestionContentEnt = await _sumSuggestionContentRepository.FirstOrDefaultAsync(m => m.Id == sumDiagnosis.SumSuggestionHeaderId);
if (sumSuggestionContentEnt != null)
{
sumDiagnosis.SumSuggestionHeaderId = sumSuggestionContentEnt.SumSuggestionHeaderId;
}
}
}
}
await _sumDiagnosisRepository.UpdateManyAsync(sumDiagnosisList);
await _sumDiagnosisRepository.UpdateManyAsync(sumDiagnosisList);
#endregion
@ -5241,6 +5241,29 @@ namespace Shentun.Peis.DataMigrations
return "";
}
/// <summary>
/// 同步单位编号
/// </summary>
/// <returns></returns>
public async Task UpdateCustomerOrgData()
{
var customerOrgs = await _customerOrgRepository.GetListAsync();
foreach (var item in customerOrgs)
{
var oldKeyEnt = await _fieldComparisonRepository.FirstOrDefaultAsync(m => m.TableName == "customer_org" && m.NewKeyValue == item.Id.ToString());
if (oldKeyEnt != null)
{
item.CustomerOrgCode = oldKeyEnt.OldKeyValue;
}
else
{
item.CustomerOrgCode = "";
}
await _customerOrgRepository.UpdateAsync(item);
}
}
}

8
src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs

@ -243,10 +243,10 @@ namespace Shentun.Peis.PeisReports
{
sumquery = sumquery.Where(m => m.a.CompleteFlag == input.CompleteFlag);
}
else
{
sumquery = sumquery.Where(m => m.a.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration);
}
//else
//{
// sumquery = sumquery.Where(m => m.a.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration);
//}
if (input.IsAudit != null)
{

31
src/Shentun.Peis.Application/Reports/ReportAppService.cs

@ -80,21 +80,30 @@ namespace Shentun.Peis.Reports
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("api/app/Report/GetList")]
public async Task<List<ReportDto>> GetListAsync(PagedAndSortedResultRequestDto input)
public async Task<List<ReportDto>> GetListAsync(ReportIdInputDto input)
{
var reportList = await _repository.GetListAsync();
// var reportList = await _repository.GetListAsync();
var entity = await _repository.GetAsync(input.Id);
var aEntity = ObjectMapper.Map<Report, ReportDto>(entity);
List<ReportDto> reports= new List<ReportDto>();
var userList = await _userRepository.GetListAsync();
aEntity.IsActived = entity.IsActive.Equals('Y');
aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, entity.CreatorId);
aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, entity.LastModifierId);
foreach(var report in reportList)
List<ReportDto> reports = new List<ReportDto>
{
var aEntity= ObjectMapper.Map<Report, ReportDto>(report);
var userList = await _userRepository.GetListAsync();
aEntity.IsActived = report.IsActive.Equals('Y');
aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, report.CreatorId);
aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, report.LastModifierId);
reports.Add(aEntity);
}
aEntity
};
//foreach(var report in reportList)
//{
// var aEntity= ObjectMapper.Map<Report, ReportDto>(report);
// var userList = await _userRepository.GetListAsync();
// aEntity.IsActived = report.IsActive.Equals('Y');
// aEntity.CreatorName = EntityHelper.GetSurnameNoSql(userList, report.CreatorId);
// aEntity.LastModifierName = EntityHelper.GetSurnameNoSql(userList, report.LastModifierId);
// reports.Add(aEntity);
//}
return reports;
}

33
src/Shentun.Peis.Application/ThirdPartyPublicInterfaces/ThirdPartyPublicInterfaceAppService.cs

@ -362,7 +362,8 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces
CheckRequestNo = registerCheck.CheckRequestNo,
asbitem,
ItemTypeName = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.DisplayName : "",
ItemTypeId = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.Id.ToString() : ""
ItemTypeId = itemTypeHaveEmpty != null ? itemTypeHaveEmpty.Id.ToString() : "",
IsSignIn = registerCheck.IsSignIn
});
@ -391,6 +392,9 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces
if (queryList.Count() == 0)
throw new UserFriendlyException($"体检编号不存在");
if (queryList.FirstOrDefault().IsSignIn == 'Y')
throw new UserFriendlyException($"体检编号已登记");
var patientInfo = new PatientPacsInfo_PatientInfoDto
{
addr = "",
@ -424,5 +428,32 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces
};
}
/// <summary>
/// 更新检查单签收状态
/// </summary>
/// <returns></returns>
[HttpPost("api/Third/ThirdPartyPublicInterface/UpdateCheckNoState")]
public async Task UpdateCheckNoStateAsync(UpdateCheckNoInputDto input)
{
var registerCheck = await _registerCheckRepository.FirstOrDefaultAsync(f => f.CheckRequestNo == input.tjbh);
if (registerCheck == null)
throw new UserFriendlyException($"体检编号不存在");
if (input.zxpb == "1")
{
registerCheck.IsSignIn = 'Y';
registerCheck.SignInTime = DateTime.Now;
}
else if (input.zxpb == "0")
{
registerCheck.IsSignIn = 'N';
registerCheck.SignInTime = DateTime.Now;
}
await _registerCheckRepository.UpdateAsync(registerCheck);
}
}
}

18
src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs

@ -168,6 +168,12 @@ namespace Shentun.Peis.TransToWebPeis
[HttpPost("api/app/TransToWebPeis/UploadPeisReport")]
public async Task UploadPeisReportAsync(UploadPeisReportIuputDto input)
{
var isPatientRegister = await _patientRegisterRepository.FirstOrDefaultAsync(f => f.Id == input.PatientRegisterId);
if (isPatientRegister == null)
throw new UserFriendlyException("人员不存在");
if (isPatientRegister.CompleteFlag != PatientRegisterCompleteFlag.SumCheck)
throw new UserFriendlyException("人员未总检,无法上传");
//同步数据
await TransPatientRegisterByPatientRegisterIdAsync(new PatientRegisterIdInputDto { PatientRegisterId = input.PatientRegisterId });
//上传报告
@ -693,13 +699,13 @@ namespace Shentun.Peis.TransToWebPeis
{
foreach (var customerOrgGroup in customerOrgGroups)
{
await WebDb.Ado.ExecuteCommandAsync("INSERT INTO public.customer_org_group(customer_org_group_id, display_name, price, for_sex_id, marital_status_id, age_lower_limit, age_upper_limit," +
await WebDb.Ado.ExecuteCommandAsync("INSERT INTO public.customer_org_group(customer_org_group_id, customer_org_group_name, price, for_sex_id, marital_status_id, age_lower_limit, age_upper_limit," +
"job_post, job_title, remark, display_order, customer_org_register_id, concurrency_stamp, creation_time, creator_id,last_modification_time, last_modifier_id) " +
"VALUES (@customer_org_group_id,@display_name,@price,@for_sex_id,@marital_status_id,@age_lower_limit,@age_upper_limit," +
"VALUES (@customer_org_group_id,@customer_org_group_name,@price,@for_sex_id,@marital_status_id,@age_lower_limit,@age_upper_limit," +
"@job_post,@job_title,@remark,@display_order,@customer_org_register_id,@concurrency_stamp,@creation_time,@creator_id,@last_modification_time,@last_modifier_id);",
new List<SugarParameter>() {
new SugarParameter("customer_org_group_id",customerOrgGroup.Id),
new SugarParameter("display_name",customerOrgGroup.DisplayName),
new SugarParameter("customer_org_group_name",customerOrgGroup.DisplayName),
new SugarParameter("price",customerOrgGroup.Price),
new SugarParameter("for_sex_id",customerOrgGroup.ForSexId),
new SugarParameter("marital_status_id",customerOrgGroup.MaritalStatusId),
@ -779,8 +785,8 @@ namespace Shentun.Peis.TransToWebPeis
.Where(m => m.Id == PatientRegisterId).FirstOrDefault();
if (patientRegisterEnt != null)
{
if (patientRegisterEnt.CompleteFlag != PatientRegisterCompleteFlag.SumCheck)
throw new UserFriendlyException("人员未总检,不能同步");
//if (patientRegisterEnt.CompleteFlag != PatientRegisterCompleteFlag.SumCheck)
// throw new UserFriendlyException("人员未总检,不能同步");
@ -930,7 +936,7 @@ namespace Shentun.Peis.TransToWebPeis
new SugarParameter("creator_id",registerCheckWithDetail.CreatorId),
new SugarParameter("last_modification_time",registerCheckWithDetail.LastModificationTime),
new SugarParameter("last_modifier_id",registerCheckWithDetail.LastModifierId),
new SugarParameter("exec_organization_unit_id",registerCheckWithDetail.ExecOrganizationUnitId),
new SugarParameter("exec_organization_unit_id",registerCheckWithDetail.ExecOrganizationUnitId)
});
#endregion

7
src/Shentun.Peis.Domain/CustomerOrgs/CustomerOrg.cs

@ -157,6 +157,13 @@ namespace Shentun.Peis.Models
public string SalesPersonPhone { get; set; }
/// <summary>
/// 单位编码 兼容老系统
/// </summary>
[Column("customer_org_code")]
[StringLength(50)]
public string CustomerOrgCode { get; set; }
//[Column("creator_id")]
//public Guid CreatorId { get; set; }
//[Column("creation_time", TypeName = "timestamp without time zone")]

53
src/Shentun.Peis.Domain/CustomerOrgs/CustomerOrgManager.cs

@ -72,7 +72,7 @@ namespace Shentun.Peis.CustomerOrgs
CustomerOrg entity
)
{
if(entity.OrgTypeId == Guid.Empty)
if (entity.OrgTypeId == Guid.Empty)
{
entity.OrgTypeId = (await _customerOrgTypeRepository.GetListAsync()).FirstOrDefault().Id;
}
@ -206,7 +206,56 @@ namespace Shentun.Peis.CustomerOrgs
/// <returns></returns>
public async Task UpdateManySortAsync(Guid id, int SortType)
{
await EntityHelper.UpdateManySortAsync(_repository, id, SortType);
var entity = await _repository.GetAsync(id);
List<CustomerOrg> UptList = new List<CustomerOrg>();
if (SortType == 1)
{
UptList = (await _repository.GetListAsync(o => o.ParentId == entity.ParentId && o.DisplayOrder > entity.DisplayOrder)).OrderBy(o => o.DisplayOrder).ToList();
if (UptList.Count > 0)
{
int indexnum = entity.DisplayOrder; //原有值
entity.DisplayOrder = UptList[UptList.Count - 1].DisplayOrder; //修改当前排序值为最大
//置顶操作,往上一行开始,逐渐替换
foreach (var item in UptList)
{
int dqnum = item.DisplayOrder;
item.DisplayOrder = indexnum;
indexnum = dqnum;
}
}
}
else
{
UptList = (await _repository.GetListAsync(o => o.ParentId == entity.ParentId && o.DisplayOrder < entity.DisplayOrder)).OrderByDescending(o => o.DisplayOrder).ToList(); ;
if (UptList.Count > 0)
{
int indexnum = entity.DisplayOrder; //原有值
entity.DisplayOrder = UptList[UptList.Count - 1].DisplayOrder; //修改当前排序值为最小
//置底操作,往下一行开始,逐渐替换
foreach (var item in UptList)
{
int dqnum = item.DisplayOrder;
item.DisplayOrder = indexnum;
indexnum = dqnum;
}
}
}
UptList.Add(entity);
await _repository.UpdateManyAsync(UptList);
}

14964
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605024928_init20240605001.Designer.cs
File diff suppressed because it is too large
View File

52
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605024928_init20240605001.cs

@ -0,0 +1,52 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240605001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<char>(
name: "is_sign_in",
table: "register_check",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'N'",
comment: "是签收");
migrationBuilder.AddColumn<string>(
name: "sign_in_person",
table: "register_check",
type: "character varying(16)",
maxLength: 16,
nullable: true,
comment: "签收人姓名");
migrationBuilder.AddColumn<DateTime>(
name: "sign_in_time",
table: "register_check",
type: "timestamp without time zone",
nullable: true,
comment: "签收时间");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_sign_in",
table: "register_check");
migrationBuilder.DropColumn(
name: "sign_in_person",
table: "register_check");
migrationBuilder.DropColumn(
name: "sign_in_time",
table: "register_check");
}
}
}

14969
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605134759_init20240605002.Designer.cs
File diff suppressed because it is too large
View File

26
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240605134759_init20240605002.cs

@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240605002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "customer_org_code",
table: "customer_org",
type: "character varying(50)",
maxLength: 50,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "customer_org_code",
table: "customer_org");
}
}
}

24
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -2628,6 +2628,11 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<string>("CustomerOrgCode")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("customer_org_code");
b.Property<string>("DisplayName")
.IsRequired()
.HasMaxLength(50)
@ -8295,6 +8300,14 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("是否锁住");
b.Property<char>("IsSignIn")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_sign_in")
.HasDefaultValueSql("'N'")
.HasComment("是签收");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
@ -8309,6 +8322,17 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid")
.HasColumnName("patient_register_id");
b.Property<string>("SignInPerson")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("sign_in_person")
.HasComment("签收人姓名");
b.Property<DateTime?>("SignInTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("sign_in_time")
.HasComment("签收时间");
b.Property<string>("ThirdInfo")
.HasMaxLength(80)
.HasColumnType("character varying(80)")

21
src/Shentun.Peis.HttpApi.Host/Filter/CustomerActionFilterAttribute.cs

@ -57,7 +57,7 @@ namespace Shentun.Peis
else
{
List<string> filterApiUrl = new List<string> { "/api/third/thirdpartypublicinterface/getpatientitems" };
List<string> filterApiUrl = new List<string> { "/api/third/thirdpartypublicinterface/getpatientitems", "api/third/thirdpartypublicinterface/updatechecknostate" };
if (filterApiUrl.Contains(context.HttpContext.Request.Path.ToString().ToLower()))
{
@ -82,7 +82,24 @@ namespace Shentun.Peis
}
else if (context.Result is EmptyResult)
{
context.Result = new OkObjectResult(ReturnValue.CreateNotFoundInstance());
List<string> filterApiUrl = new List<string> { "/api/third/thirdpartypublicinterface/getpatientitems", "/api/third/thirdpartypublicinterface/updatechecknostate" };
if (filterApiUrl.Contains(context.HttpContext.Request.Path.ToString().ToLower()))
{
ThirdReturn msg = new ThirdReturn
{
code = "200",
message = "处理成功",
data = null
};
context.Result = new OkObjectResult(msg);
}
else
{
context.Result = new OkObjectResult(ReturnValue.CreateNotFoundInstance());
}
}
else if (context.Result is ContentResult)
{

2
src/Shentun.Peis.HttpApi.Host/Filter/CustomerExceptionFilterAttribute.cs

@ -87,7 +87,7 @@ namespace Shentun.Peis
}
List<string> filterApiUrl = new List<string> { "/api/third/thirdpartypublicinterface/getpatientitems" };
List<string> filterApiUrl = new List<string> { "/api/third/thirdpartypublicinterface/getpatientitems", "api/third/thirdpartypublicinterface/updatechecknostate" };
if (filterApiUrl.Contains(exceptionContext.HttpContext.Request.Path.ToString().ToLower()))

Loading…
Cancel
Save