Browse Source

超支费用基础数据配置修改

jiangjc 11 months ago
parent
commit
84d8569489
1 changed files with 3 additions and 2 deletions
  1. 3 2
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 3 - 2
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -1724,11 +1724,12 @@ namespace OASystem.API.Controllers
 
             //超支费用类型
             List<Sys_SetData> PriceType = _sqlSugar.Queryable<Sys_SetData>().Where(a => a.STid == 79 && a.IsDel == 0).ToList();
-            List<SetDataInfoView> _PriceType = _mapper.Map<List<SetDataInfoView>>(Payment);
+            List<SetDataInfoView> _PriceType = _mapper.Map<List<SetDataInfoView>>(PriceType);
 
             //超支费用详细类型
             List<Sys_SetData> PriceDetailType = _sqlSugar.Queryable<Sys_SetData>().Where(a => a.STid == 80 && a.IsDel == 0).ToList();
-            List<SetDataInfoView> _PriceDetailType = _mapper.Map<List<SetDataInfoView>>(Payment);
+            PriceDetailType.ForEach(a => { a.Name = a.Name.Replace("n", ""); });
+            List<SetDataInfoView> _PriceDetailType = _mapper.Map<List<SetDataInfoView>>(PriceDetailType);
 
             var data = new
             {