Commit d0f4cf6c by lcx

Merge tag '吴江放射科' into develop

二次绩效职称判空为0
parents e2f79e1f c01b3c46
...@@ -501,6 +501,7 @@ public void SaveSecondAllotHeadData(int secondId, string json) ...@@ -501,6 +501,7 @@ public void SaveSecondAllotHeadData(int secondId, string json)
agheadsourceRepository.Remove(exist); agheadsourceRepository.Remove(exist);
headsource.SecondId = secondId; headsource.SecondId = secondId;
headsource.SeniorityTitlesAccountedPerformance ??= 0;
agheadsourceRepository.Add(headsource); agheadsourceRepository.Add(headsource);
string[] prefix = new string[] { "Workload_Ratio_", "Workload_Amount_" }; string[] prefix = new string[] { "Workload_Ratio_", "Workload_Amount_" };
...@@ -536,7 +537,7 @@ public void SaveSecondAllotHeadData(int secondId, string json) ...@@ -536,7 +537,7 @@ public void SaveSecondAllotHeadData(int secondId, string json)
SecondId = secondId, SecondId = secondId,
FieldId = fieldId, FieldId = fieldId,
FieldName = i == 0 ? typeName + "占比" : typeName + "金额", FieldName = i == 0 ? typeName + "占比" : typeName + "金额",
Value = prefix[i].StartsWith(prefix[0]) ? (decimal?)Convert.ToDecimal(dict[fieldId.ToLower()]) : null, Value = prefix[i].StartsWith(prefix[0]) ? ConvertHelper.To<decimal?>(dict[fieldId.ToLower()]) : null,
}; };
insertData.Add(source); insertData.Add(source);
......
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