Commit afcde2a7 by lcx

二次绩效数据保存年资职称绩效占比判空为0

parent 66fd829d
......@@ -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