Browse Source

自增价格

master
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
6b236042d0
  1. 2
      src/Shentun.WebPeis.Application.Contracts/PatientRegisters/PatientRegisterDto.cs
  2. 3
      src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
  3. 2
      src/Shentun.WebPeis.Domain/AppointPatientRegisters/AppointPatientRegisterManager.cs

2
src/Shentun.WebPeis.Application.Contracts/PatientRegisters/PatientRegisterDto.cs

@ -64,6 +64,8 @@ namespace Shentun.WebPeis.PatientRegisters
/// </summary> /// </summary>
public decimal? Price { get; set; } public decimal? Price { get; set; }
public decimal? CanAddMoney { get; set; }
/// <summary> /// <summary>
/// 姓名 /// 姓名
/// </summary> /// </summary>

3
src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs

@ -475,7 +475,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters
CustomerOrgRegisterId = patientRegister.CustomerOrgRegisterId, CustomerOrgRegisterId = patientRegister.CustomerOrgRegisterId,
CustomerOrgGroupId = patientRegister.CustomerOrgGroupId, CustomerOrgGroupId = patientRegister.CustomerOrgGroupId,
CustomerOrgGroupName = haveCustomerOrgGroup == null?"": haveCustomerOrgGroup.CustomerOrgGroupName, CustomerOrgGroupName = haveCustomerOrgGroup == null?"": haveCustomerOrgGroup.CustomerOrgGroupName,
Price = haveCustomerOrgGroup == null ? 0:haveCustomerOrgGroup.Price
Price = haveCustomerOrgGroup == null ? 0:haveCustomerOrgGroup.Price,
CanAddMoney = haveCustomerOrgGroup == null ? 0 : haveCustomerOrgGroup.CanAddMoney,
}).FirstOrDefault(); }).FirstOrDefault();
if (patientRegisterDto == null) if (patientRegisterDto == null)
{ {

2
src/Shentun.WebPeis.Domain/AppointPatientRegisters/AppointPatientRegisterManager.cs

@ -239,7 +239,7 @@ namespace Shentun.WebPeis.AppointPatientRegisters
var appoentPatientRegisters = await _repository.GetListAsync(o => o.PersonId == entity.PersonId && var appoentPatientRegisters = await _repository.GetListAsync(o => o.PersonId == entity.PersonId &&
o.AppointDate >= DateTime.Now.Date); o.AppointDate >= DateTime.Now.Date);
if(appoentPatientRegisters.Count > 1)
if(appoentPatientRegisters.Count >= 1)
{ {
throw new UserFriendlyException("已有今天及之后的预约订单,必须先取消订单才能重新预约"); throw new UserFriendlyException("已有今天及之后的预约订单,必须先取消订单才能重新预约");
} }

Loading…
Cancel
Save