Browse Source

青藏铁路

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
8bdad8dca5
  1. 3
      ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs
  2. 16
      src/Shentun.ColumnReferencePlugIns/ChargeRequests/ChargeRequestPlugInsBase.cs

3
ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs

@ -82,6 +82,7 @@ namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
patientRegister.CompleteFlag != PatientRegisterCompleteFlag.Registration)
{
//已检人员不允许删除
errorList.Add($"姓名:{patientRegister.PatientName},身份证号:{patientRegister.IdNo},已检不能删除");
continue;
}
var patientRegisterInputDto = new PatientRegisterIdInputDto()
@ -390,7 +391,7 @@ namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
{
throw new Exception("customerOrgRegisterId参数不能为空");
}
var customerOrgIdStr = InterfaceConfig.GetSection("Interface").GetSection("单位编号").Value;
var customerOrgIdStr = InterfaceConfig.GetSection("Interface").GetSection("CustomerOrgId").Value;
_hospitalId = InterfaceConfig.GetSection("Interface").GetSection("HospitalId").Value;
_aesKEY = InterfaceConfig.GetSection("Interface").GetSection("aesKEY").Value;
_answerWebApiUrl = InterfaceConfig.GetSection("Interface").GetSection("AnswerWebApiUrl").Value;

16
src/Shentun.ColumnReferencePlugIns/ChargeRequests/ChargeRequestPlugInsBase.cs

@ -165,6 +165,9 @@ where patient.id = patient_register.patient_id and
char chargeRequestFlag)
{
using (DbConnection conn = new NpgsqlConnection(AppConnctionStr))
{
var trans = conn.BeginTransaction();
try
{
//加ConcurrencyStamp,以防止并发
string sql;
@ -176,7 +179,7 @@ where patient.id = patient_register.patient_id and
{
chargeRequestForPlugIns.ChargeRequestId,
chargeRequestForPlugIns.ConcurrencyStamp
});
}, trans);
foreach (var chargeRequestAsbitem in chargeRequestForPlugIns.Asbitems)
{
@ -190,7 +193,7 @@ where patient.id = patient_register.patient_id and
{
chargeRequestForPlugIns.ChargeRequestId,
chargeRequestAsbitem.ConcurrencyStamp
});
}, trans);
}
else if (chargeRequestFlag == ChargeRequestFlag.AlreadyRefund)
{
@ -202,11 +205,18 @@ where patient.id = patient_register.patient_id and
{
chargeRequestForPlugIns.ChargeRequestId,
chargeRequestAsbitem.ConcurrencyStamp
});
}, trans);
}
}
trans.Commit();
}
catch (Exception ex)
{
trans.Rollback();
throw ex;
}
}

Loading…
Cancel
Save