Commit 0dfb30cc by lcx

Merge branch 'hotfix/银行卡号'

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