Commit 0dfb30cc by lcx

Merge branch 'hotfix/银行卡号'

parents ddb13f30 cc72121c
......@@ -309,6 +309,7 @@ public ApiResponse AllComputeByPM([FromBody] ComputerRequest request)
RealGiveFee = t.Sum(s => s.RealGiveFee),
ReservedRatio = t.Sum(s => s.ReservedRatio),
ReservedRatioFee = t.Sum(s => s.ReservedRatioFee),
BankCard = t.FirstOrDefault()?.BankCard
}).OrderBy(t =>
{
string value = t.JobNumber;
......
......@@ -103,5 +103,10 @@ public ComputeResponse(string source, string accountingUnit, string employeeName
///
/// </summary>
public Nullable<decimal> AdjustLaterOtherFee { get; set; }
/// <summary>
/// 银行卡号
/// </summary>
public string BankCard { get; set; }
}
}
......@@ -115,7 +115,12 @@ public class per_employee
/// 预留比例
/// </summary>
public Nullable<decimal> ReservedRatio { get; set; }
/// <summary>
/// 银行卡号
/// </summary>
public string BankCard { get; set; }
/// <summary>
/// 备注
/// </summary>
......
......@@ -761,6 +761,8 @@ public List<ComputeResponse> AllCompute(int allotId, int hospitalId, int isShowM
item.ReservedRatio = empDic?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.ReservedRatio ?? 0;
item.ReservedRatioFee = Math.Round(real * (item.ReservedRatio ?? 0), 2, MidpointRounding.AwayFromZero);
item.RealGiveFee = Math.Round(item.ShouldGiveFee - (item.ReservedRatioFee ?? 0) ?? 0, 2, MidpointRounding.AwayFromZero);
item.BankCard = empDic?.FirstOrDefault(w => w.PersonnelNumber == item.JobNumber)?.BankCard ?? "";
// 人员信息使用人员字典中数据
if (isEmpDic)
{
......
......@@ -92,6 +92,8 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
{
var entity = new per_employee
{
HospitalId = t.HospitalId,
AllotId = allotId,
AccountingUnit = t.AccountingUnit,
Department = t.Department,
DoctorName = t.DoctorName,
......@@ -106,10 +108,9 @@ public void CreateAllotPersons(int hospitalId, int allotId, int prevAllotId = -1
WorkTime = t.WorkTime,
BirthDate = t.BirthDate,
Age = t.Age,
Remark = t.Remark,
HospitalId = t.HospitalId,
AllotId = allotId,
ReservedRatio = t.ReservedRatio,
BankCard = t.BankCard,
Remark = t.Remark,
CreateTime = DateTime.Now,
};
if (!string.IsNullOrEmpty(t.PersonnelNumber) && !string.IsNullOrEmpty(t.JobNumber))
......@@ -244,10 +245,12 @@ public bool UpdatePerson(PerEmployeeResponse request)
employee.WorkTime = request.WorkTime == null ? null : ConvertHelper.To<DateTime?>(request.WorkTime);
employee.BirthDate = request.BirthDate == null ? null : ConvertHelper.To<DateTime?>(request.BirthDate);
employee.Age = request.Age;
employee.BankCard = request.BankCard;
employee.Remark = request.Remark;
employee.EfficiencyNumber = request.EfficiencyNumber;
employee.PermanentStaff = request.PermanentStaff;
employee.AttendanceDay = request.AttendanceDay;
employee.ReservedRatio = request.ReservedRatio;
// 出勤率
var allot = perallotRepository.GetEntity(t => t.ID == request.AllotId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment