Commit c01b3c46 by lcx

Merge branch 'hotfix/吴江放射科'

parents 66fd829d afcde2a7
......@@ -501,6 +501,7 @@ public void SaveSecondAllotHeadData(int secondId, string json)
agheadsourceRepository.Remove(exist);
headsource.SecondId = secondId;
headsource.SeniorityTitlesAccountedPerformance ??= 0;
agheadsourceRepository.Add(headsource);
string[] prefix = new string[] { "Workload_Ratio_", "Workload_Amount_" };
......@@ -536,7 +537,7 @@ public void SaveSecondAllotHeadData(int secondId, string json)
SecondId = secondId,
FieldId = fieldId,
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);
......
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